Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Hi Tomek.
How about the followinh ?
Add LOCALE in url string.
i.e) String url =
"jdbc:informix-sqli://.....;CLIENT_LOCALE=XXX;SERVER_LOCALE=XXX;DB_LOCALE=XXX"
OR
Properties props = new Properties();
props.put("DB_LOCALE", "ja_jp.sjis-s");
props.put("CLIENT_LOCALE", "ja_jp.ujis");
...
Connection =
DriverManager.getConnection(informixURL, props);
Regards.
--
Tsutomu Ogiwara from Tokyo Japan.
ICQ#:168106592
>From: tomasz.klaudel@gmail.com
>Reply-To: tomasz.klaudel@gmail.com
>To: informix-list@iiug.org
>Subject: jdbc - unable to load locale categories
>Date: 6 May 2005 02:08:26 -0700
>
>Hi
>
>I'm trying to connect to Informix trought jdbc using IBatis on Linux
>(Debian). I'm getting exception:
>
>java.sql.SQLException: Unable to load locale categories.
>at com.informix.jdbc.IfxSqliConnect.<init>(IfxSqliConnect.java:926)
>at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native
>Method)
>at sun.reflect.NativeConstructorAccessorImpl.newInsta
>nce(NativeConstructorAccessorImpl.java:39)
>at sun.reflect.DelegatingConstructorAccessorImpl.newI
>nstance(DelegatingConstructorAccessorImpl.java:27)
>
>the same application working on windows 2000 very well.
>I have INFORMIXDIR, DB_LOCALE, CLIENT_LOCALE variables in environment.
>
>Why it isn't working?
>Do I need ClientSDK? Or something different?
>
>i also do ./chkenv
>
>and get
>
>-23101 Unable to load locale categories.
>
>how can I fix it?
>
>Thanks for help
>Tomek
>
sending to informix-list
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.