Subject Re: [IB-Java] Re: GDS in Java file
Author David Jencks
Hi,
If I understand you correctly the cvs download resulted in for instance an
unusable ant.jar?

Probably your cvs client did not realize these were binary files. I think
there is a switch to tell it to downlaod somethingas binary, maybe -kb, but
I've never had to use it. I think there is a zip file of some earlier
stuff including the jars at my "website",
http://home.earthlink.net/~davidjencks/

Hope this helps

david jencks

On 2001.06.07 05:01:23 -0400 ren_breeze@... wrote:
> Hi.
> Ok.I check out client-java project from sourceforge.net but can't
> build - all used jar-files is incorrect -:(
> I think, that these mistakes turn out at download
>
>
> Where still I can take all used libraries (jars)?
>
> Can you write to me on Email?
>
>
> --- In IB-Java@y..., David Jencks <davidjencks@e...> wrote:
> > Hi,
> >
> > 1. I would really appreciate it if you would consider working with
> the
> > version in cvs at sourceforge.net/cvs/?group_id=9028. The project is
> > client-java. This is the version I am working with, it uses
> exceptions
> > rather than error codes, has made the responses into an object, etc.
> >
> > 2. I also have noticed that most of the handles coming back from
> this code
> > are 0. I am very curious about why, although the code seems to be
> able to
> > distinguish between the different objects referenced anyway. If
> you can
> > figure out what is going on, especially with the transaction ids, I
> would
> > be very grateful.
> >
> > 3. It is not clear to me if you solved your original problem. Can
> you now
> > connect or create databases?
> >
> > thanks
> > david jencks
> >
> >
> > On 2001.06.02 08:43:39 -0400 ren_breeze@y... wrote:
> > > Hi,
> > >
> > > Today I had free time for debugging an Example GDS-API and has
> found
> > > there one place which causes in me difficulty:
> > >
> > > We have private declaration variable:
> > >
> > > // Temporal response packet data
> > > private int resp_object;
> > > private long resp_blob_id;
> > > private byte[] resp_data;
> > >
> > > and method for recive responce from server
> > > private boolean receiveResponse(Object[] status,
> isc_db_handle_impl
> > > db) {
> > > try {
> > > System.out.print("op_response ");
> > > if (readOperation(db) == op_response) {
> > > resp_object = db.in.readInt();
> > > resp_blob_id = db.in.readLong();
> > > resp_data = db.in.readBuffer();
> > > readStatusVector(status, db);
> > > System.out.println("received");
> > > return true;
> > > } else {
> > > System.out.println("not received");
> > > error(status, isc_net_read_err);
> > > return false;
> > > }
> > > } catch (IOException ex) {
> > > error(status, isc_net_read_err);
> > > ex.printStackTrace();
> > > return false;
> > > }
> > > }
> > >
> > > After return from this method resp_object==0 but methot returns
> true
> > > and further we use resp_object value in db.Rdb_id.
> > > Even if I connect to the existing database - I have the same
> result -
> > > resp_object==0 I do not know the reason -:(.
> > >
> > > Db.Rdb_id - is number of identification of a Database? I am right?
> > >
> > > >
> > > > Hi,
> > > > Yes, I use interbase on the windows. and I modified path to a
> > > checked
> > > > database. (My path : "localhost:C:\\interbase\\Test.gdb")
> > > > I use standard Interbase 6.0, but FireBird return The same
> result
> > > >
> > > > May be debugging information can help to be defined my problem?
> > > >
> > > >
> > > >
> > > > op_connect sent
> > > > op_accept received
> > > > op_create sent
> > > > op_response received
> > > > isc_create_database = 335544472
> > > > op_detach sent
> > > > op_response (System error message) java.net.SocketException:
> > > > Connection reset by peer: JVM_recv in socket input stream read
> > > > at java.net.SocketInputStream.socketRead(Native Method)
> > > > at java.net.SocketInputStream.read(SocketInputStream.java:86)
> > > > at java.net.SocketInputStream.read(SocketInputStream.java:102)
> > > > at org.firebirdsql.jgds.XdrInputStream.readInt
> > > > (XdrInputStream.java:48)
> > > > at org.firebirdsql.jgds.GDS_Impl.nextOperation
> > > > (GDS_Impl.java:1110)
> > > > at org.firebirdsql.jgds.GDS_Impl.readOperation
> > > > (GDS_Impl.java:1119)
> > > > at org.firebirdsql.jgds.GDS_Impl.receiveResponse
> > > > (GDS_Impl.java:1089)
> > > > at org.firebirdsql.jgds.GDS_Impl.isc_detach_database
> > > > (GDS_Impl.java:303)
> > > > at org.firebirdsql.Example1.<init>(Example1.java:64)
> > > > at org.firebirdsql.Example1.main(Example1.java:224)
> > > > isc_detach_database = 335544726
> > > > isc_attach_database = 335544721
> > > > op_transaction isc_start_transaction = 335544721
> > > > op_exec_immediate isc_dsql_exec_inmed2 = 335544726
> > > > op_commit java.lang.NullPointerException
> > > > at org.firebirdsql.jgds.GDS_Impl.isc_commit_transaction
> > > > (GDS_Impl.java:393)
> > > > at org.firebirdsql.Example1.<init>(Example1.java:92)
> > > > at org.firebirdsql.Example1.main(Example1.java:224)
> > > > Exception in thread "main" Process exited with exit code 1
> > > >
> > > >
> > >
> > >
> > >
> > > To unsubscribe from this group, send an email to:
> > > IB-Java-unsubscribe@egroups.com
> > >
> > >
> > >
> > > Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
> > >
> > >
> > >
> > >
>
>
> To unsubscribe from this group, send an email to:
> IB-Java-unsubscribe@egroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
>