Recently in writing a Jave applet, using the SYBASE15, but in the program to get the connection thrown the following exception:
Java.sql.SQLWarning:Language name in login record ' Chinese ' isn't ' a official name on this ASE. Using default ' us_english ' from syslogins instead.
At Com.sybase.jdbc3.jdbc.SybConnection.convertToWarnings (Unknown Source)
At Com.sybase.jdbc3.jdbc.SybConnection.chainWarnings (Unknown Source)
At Com.sybase.jdbc3.tds.Tds.for (Unknown Source)
At COM.SYBASE.JDBC3.TDS.TDS.A (Unknown Source)
At Com.sybase.jdbc3.tds.Tds.login (Unknown Source)
At Com.sybase.jdbc3.jdbc.sybconnection.a (Unknown Source)
At Com.sybase.jdbc3.jdbc.sybconnection.a (Unknown Source)
At com.sybase.jdbc3.jdbc.sybconnection.<init> (Unknown Source)
At com.sybase.jdbc3.jdbc.sybconnection.<init> (Unknown Source)
At Com.sybase.jdbc3.jdbc.SybDriver.connect (Unknown Source)
At Com.mchange.v2.c3p0.DriverManagerDataSource.getConnection (drivermanagerdatasource.java:134)
At Com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection (Wrapperconnectionpooldatasource.java : 182)
At Com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection (Wrapperconnectionpooldatasource.java : 171)
At Com.mchange.v2.c3p0.impl.c3p0pooledconnectionpool$1pooledconnectionresourcepoolmanager.acquireresource ( c3p0pooledconnectionpool.java:137)
At Com.mchange.v2.resourcepool.BasicResourcePool.doAcquire (basicresourcepool.java:1014)
At com.mchange.v2.resourcepool.basicresourcepool.access$800 (basicresourcepool.java:32)
At Com.mchange.v2.resourcepool.basicresourcepool$acquiretask.run (basicresourcepool.java:1810)
At Com.mchange.v2.async.threadpoolasynchronousrunner$poolthread.run (threadpoolasynchronousrunner.java:547)
I am a lot of Mother Valley Dog, did search a lot about Sybase query Chinese garbled problem, and then inadvertently in a less relevant file to get some clues, by modifying the JDBC behavior properties to solve the problem, modify the following:
The jdbc_url:jdbc:sybase:tds:1.1.1.1:0000/db of the error
Resolution of JDBC) Url:jdbc:sybase:tds:10.121.111.22:4300/db_cus2?language=us_english
I hope I can help some friends who happen to have the same problem as me, thank you, O (∩_∩) o~