Subject FireBird RC1 / InterClient 2.00
Author ala
Hello all!
I'm trying to use FireBird RC1 / InterClient 2.00 from a servlet (in
tomcat 4.0 standalone).
The IC sends extrange exceptions, but only from the servlet, and not from
a standalone test class with very similar code (except the servlet
stuff).
There is somebody using FB/IC?
Thanks!

Adrián Allende

Here is the core of (familiar) code

Class.forName ("interbase.interclient.Driver");
d = java.sql.DriverManager.getDriver (databaseURL);
out.println ("InterClient version " <br>");
c = java.sql.DriverManager.getConnection (databaseURL, user, password);
out.println ("Connection established.<br>");
c.setAutoCommit (false);
out.println ("Auto-commit is disabled.<br>");
s = c.createStatement ();
rs = s.executeQuery ("select full_name from employee where salary <
50000<br>");

the last line sends these output on a browser

java.lang.VerifyError: (class: interbase/interclient/ErrorKey, method:
_$372 signature: (Ljava/lang/String;Ljava/lang/String;I)V) Expecting to
find unitialized object on stack
at interbase.interclient.SQLException.(SQLException.java:96)
at
interbase.interclient.RecvMessage.createSQLException(RecvMessage.java:69
4)
at
interbase.interclient.RecvMessage.makeSQLException(RecvMessage.java:593)
at
interbase.interclient.RecvMessage.get_EXCEPTIONS(RecvMessage.java:554)
at
interbase.interclient.Statement.remote_EXECUTE_QUERY_STATEMENT(Statement
.java:175)
at
interbase.interclient.Statement.executeQuery(Statement.java:154)
at HelloWorldExample.doGet(HelloWorldExample.java:39)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)