Subject Re: [IB-Java] InterClient JDBC
Author David Jencks
Hi,
It's been a long time since I got this error, but I think it might be a
symptom of using a java 1.2 compiled interclient with jdk 1.3.
So:

which jdk
which os
where did you get interbase and interclient and when

I think you can recompile just interclient ( the java portion) in jdk 1.3.

If you wish to use the firebird version of interclient
(sourceforge.net.projects.firebird) you will need to compile the c++
interserver as well; the firebird version fixes some problems with
databasemetadata. I don't know if anyone has successfully done this on
windows: if you are interested I will be happy to work with you.

david jencks

On 2001.05.30 07:05:16 -0400 Tony wrote:
>
> Hi,
>
> Can anybody help me, pleaseeee?
>
> I am sorry if this is not the correct forum
> for asking InterClient JDBC issue. I could not find
> other forum that accepted Java related issues.
>
> I am researching on the possibility of using Interbase
> in our project. I got a problem that I could not manage to
> create a PreparedStatement from the connection I obtained.
> It gives a strange error:
>
> Opening connection to
> jdbc:interbase://localhost/c:/projects/dbms/interbase/mydb.gdb
> mydb-test/test
> 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.<init>(SQLException.java:96)
> at
> interbase.interclient.RecvMessage.createSQLException(RecvMessage.java:694)
> at
> interbase.interclient.RecvMessage.makeSQLException(RecvMessage.java:593)
> at
> interbase.interclient.RecvMessage.get_EXCEPTIONS(RecvMessage.java:554)
> at
> interbase.interclient.PreparedStatement._$120007(PreparedStatement.java:133)
> at
> interbase.interclient.PreparedStatement.<init>(PreparedStatement.java:112)
> at
> interbase.interclient.Connection.prepareStatement(Connection.java:530)
> at dbsim.Pre.createDimension(Pre.java:73)
> at dbsim.Pre.createPropertyAll(Pre.java:50)
> at dbsim.Pre.doIt(Pre.java:28)
> at dbsim.Test.init(Test.java:288)
> at dbsim.Test.run(Test.java:56)
> at dbsim.Test.main(Test.java:45)
> Exception in thread "main"
>
> I got the same VerifyError message when I did not provide
> username/password.
> There must be some thing wrong.
>
> I have started ibserver and InterClient.
> It was also successful when I ran CommDiag.html
> The applet successfully queried information about mydb.
>
> Thanks a lot,
> Tony
>
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
> <HTML>
> <HEAD>
> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
> <META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2650.12">
> <TITLE>InterClient JDBC</TITLE>
> </HEAD>
> <BODY>
> <BR>
>
> <P><FONT SIZE=2>Hi, </FONT>
> </P>
>
> <P><FONT SIZE=2>Can anybody help me, pleaseeee?</FONT>
> </P>
>
> <P><FONT SIZE=2>I am sorry if this is not the correct forum</FONT>
> <BR><FONT SIZE=2>for asking InterClient JDBC issue. I could not
> find</FONT>
> <BR><FONT SIZE=2>other forum that accepted Java related issues.</FONT>
> </P>
>
> <P><FONT SIZE=2>I am researching on the possibility of using
> Interbase</FONT>
> <BR><FONT SIZE=2>in our project. I got a problem that I could not manage
> to</FONT>
> <BR><FONT SIZE=2>create a PreparedStatement from the connection I
> obtained.</FONT>
> <BR><FONT SIZE=2>It gives a strange error:</FONT>
> </P>
>
> <P><FONT SIZE=2>Opening connection to
> jdbc:interbase://localhost/c:/projects/dbms/interbase/mydb.gdb
> mydb-test/test</FONT>
> <BR><FONT SIZE=2>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</FONT></P>
>
> <P>        <FONT SIZE=2>at
> interbase.interclient.SQLException.<init>(SQLException.java:96)</FONT>
> <BR>        <FONT SIZE=2>at
> interbase.interclient.RecvMessage.createSQLException(RecvMessage.java:694)</FONT>
> <BR>        <FONT SIZE=2>at
> interbase.interclient.RecvMessage.makeSQLException(RecvMessage.java:593)</FONT>
> <BR>        <FONT SIZE=2>at
> interbase.interclient.RecvMessage.get_EXCEPTIONS(RecvMessage.java:554)</FONT>
> <BR>        <FONT SIZE=2>at
> interbase.interclient.PreparedStatement._$120007(PreparedStatement.java:133)</FONT>
> <BR>        <FONT SIZE=2>at
> interbase.interclient.PreparedStatement.<init>(PreparedStatement.java:112)</FONT>
> <BR>        <FONT SIZE=2>at
> interbase.interclient.Connection.prepareStatement(Connection.java:530)</FONT>
> <BR>        <FONT SIZE=2>at
> dbsim.Pre.createDimension(Pre.java:73)</FONT>
> <BR>        <FONT SIZE=2>at
> dbsim.Pre.createPropertyAll(Pre.java:50)</FONT>
> <BR>        <FONT SIZE=2>at
> dbsim.Pre.doIt(Pre.java:28)</FONT>
> <BR>        <FONT SIZE=2>at
> dbsim.Test.init(Test.java:288)</FONT>
> <BR>        <FONT SIZE=2>at
> dbsim.Test.run(Test.java:56)</FONT>
> <BR>        <FONT SIZE=2>at
> dbsim.Test.main(Test.java:45)</FONT>
> <BR><FONT SIZE=2>Exception in thread "main"</FONT>
> </P>
>
> <P><FONT SIZE=2>I got the same VerifyError message when I did not provide
> username/password.</FONT>
> <BR><FONT SIZE=2>There must be some thing wrong.</FONT>
> </P>
>
> <P><FONT SIZE=2>I have started ibserver and InterClient.</FONT>
> <BR><FONT SIZE=2>It was also successful when I ran CommDiag.html</FONT>
> <BR><FONT SIZE=2>The applet successfully queried information about
> mydb.</FONT>
> </P>
>
> <P><FONT SIZE=2>Thanks a lot,</FONT>
> <BR><FONT SIZE=2>Tony</FONT>
> </P>
>
>
> <br>
>
> <!-- |**|begin egp html banner|**| -->
>
> <table border=0 cellspacing=0 cellpadding=2>
> <tr bgcolor=#FFFFCC>
> <td align=center><font size="-1" color=#003399><b>Yahoo! Groups
> Sponsor</b></font></td>
> </tr>
> <tr bgcolor=#FFFFFF>
> <td width=470><a href="http://rd.yahoo.com/M=202225.1433492.3029752.1269402/D=egroupmail/S=1700006764:N/A=675622/*http://altfarm.mediaplex.com/ad/ck/1177-3936-1039-2?mpt=991220669"
> target="_top"><img width=468 height=60
> src="http://altfarm.mediaplex.com/ad/bn/1177-3936-1039-2?mpt=991220669"
> alt="[]" border=0></a></td>
> </tr>
> <tr><td><img alt="" width=1 height=1
> src="http://us.adserver.yahoo.com/l?M=202225.1433492.3029752.1269402/D=egroupmail/S=1700006764:N/A=675622/rand=887241297"></td></tr>
> </table>
>
> <!-- |**|end egp html banner|**| -->
>
>
> <br>
> <tt>
> To unsubscribe from this group, send an email to:<BR>
> IB-Java-unsubscribe@egroups.com<BR>
> <BR>
> </tt>
> <br>
>
> <br>
> <tt>Your use of Yahoo! Groups is subject to the <a
> href="http://docs.yahoo.com/info/terms/">Yahoo! Terms of
> Service</a>.</tt>
> </br>
>
> </BODY>
> </HTML>