Subject Re: [Firebird-Java] Re: Problems finding error messages
Author Roman Rokytskyy
>> I'm using the latest version of Jaybird on Windows. I'm using it to
>> execute SQL scripts from ant. Whenever I get an error, I get
>> messages that look like this: org.firebirdsql.jdbc.FBSQLException: GDS
>> Exception. <errorcode>. No message for code <errorcode> found I
>> looked in the jar and there is an ics_error_msg.properties file. I
>> see that otheres have reported similar errors. Does anyone know
>> why This occurs and how to correct the problem?
>
> I'm having the same problems. I do get the correct error messages
> when running isql.
>
> Any ideas?

The following code is used to load error messages:

InputStream in = GDSException.class.getResourceAsStream(res);

if (in == null) {
ClassLoader cl = Thread.currentThread().getContextClassLoader();
in = cl.getResourceAsStream(res);
}

if (in != null)
messages.load(in);

It is relatively standard way to manually load resources. Please specify
your deployment environment (web/application server, where firebirdsql*.jar
files are located, if possible, what classloader loads the driver, etc.)

Roman