Java Connection Sybase15 report language name in login record ' Chinese ' isn't ' a official name on this ASE exception

Source: Internet
Author: User
Tags sybase

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~


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.