載入com.microsoft.util.transliteration.properties錯誤,請教!

jacer發表於2005-11-18
環境:
sql server 2000
hibernate 3
eclipse 3.1
在用hibernate sychronizer生成對映xml檔案視窗,重新整理資料庫表的時候出現如下問題:
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error opening/loading

同時,如果手工編寫mapping檔案後,連線資料庫時會出現如下錯誤:

22:04:32,443  INFO DriverManagerConnectionProvider:41 - Using Hibernate built-in connection pool (not for production use!)
22:04:32,443  INFO DriverManagerConnectionProvider:42 - Hibernate connection pool size: 20
22:04:32,463  INFO DriverManagerConnectionProvider:45 - autocommit mode: false
22:04:32,473  INFO DriverManagerConnectionProvider:80 - using driver: com.microsoft.jdbc.sqlserver.SQLServerDriver at URL: jdbc:microsoft:sqlserver://localhost:1433;databasename=db
22:04:32,473  INFO DriverManagerConnectionProvider:86 - connection properties: {user=sa, password=****}
22:04:32,834  WARN SettingsFactory:103 - Could not obtain connection metadata
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error opening/loading com.microsoft.util.transliteration.properties.
	at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
	at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
	at com.microsoft.jdbc.sqlserver.tds.TDSConnection.setNonUnicodeTransliterator(Unknown Source)
	at com.microsoft.jdbc.sqlserver.tds.TDSConnection.setSQLCollation(Unknown Source)
	at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processEnvChange(Unknown Source)
	at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source)
	at com.microsoft.jdbc.sqlserver.tds.TDSLoginRequest.processReplyToken(Unknown Source)
	at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source)
	at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
	at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
	at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
	at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)


第一句不知道是不是和這個錯誤相關。
而且怪就怪在有時它又不出問題,但是每次出這個問題都搞得我非常難受。請教這是什麼原因啊?困擾我很久啦!謝謝!

相關文章