Subject | Re: Events API -- NoSuchMethodError: org.firebirdsql.gds.GDS.createIscDbHandle |
---|---|
Author | Bernard Devlin |
Post date | 2007-04-23T13:30:34Z |
--- In Firebird-Java@yahoogroups.com, Roman Rokytskyy <rrokytskyy@...>
wrote:
Once again, you are right :-)
However, this is the exception that comes back from either both the
AsynchronousEventNotifier and the SynchronousEventNotifier code (and
you can see that the reference is to "1.0.0.127"):
==============
Waiting for events
Exception in thread "main" java.lang.RuntimeException:
org.firebirdsql.jdbc.FBSQLException: GDS Exception. 335544721. Unable
to complete network request to host "1.0.0.127".
at SynchronousEventNotifier.run(SynchronousEventNotifier.java:43)
at SynchronousEventNotifier.main(SynchronousEventNotifier.java:63)
Caused by: org.firebirdsql.jdbc.FBSQLException: GDS Exception.
335544721. Unable to complete network request to host "1.0.0.127".
at
org.firebirdsql.event.FBEventManager.addEventListener(FBEventManager.java:266)
at
org.firebirdsql.event.FBEventManager.waitForEvent(FBEventManager.java:348)
at SynchronousEventNotifier.run(SynchronousEventNotifier.java:28)
... 1 more
==============
I seem to remember at some stage in the IP stack the numbers get
reversed (I could be wrong on that though). I assumed that the
Jaybird code was returning that reversed address. However, it looks
to me like maybe there is a bug in the FBEventManager code. The
FBEventManager is connecting (if I supply an incorrect password, I get
an appropriate response from the Firebird server). With the correct
password I am getting passed this code (in SynchronousEventNotifier.java):
eventManager.connect();
System.out.println("Waiting for events");
However, even when a DML modification is made, no event is registered
with the java code. Instead, I get the weird error concerning the
1.0.0.127 address.
Thank you again for helping with this. I'm very pleased to see things
like the Services and Events API surfacing in Jaybird.
Bernard
wrote:
>Hi Roman,
> No, localhost has IP address 127.0.0.1, not 1.0.0.127 :)
>
Once again, you are right :-)
However, this is the exception that comes back from either both the
AsynchronousEventNotifier and the SynchronousEventNotifier code (and
you can see that the reference is to "1.0.0.127"):
==============
Waiting for events
Exception in thread "main" java.lang.RuntimeException:
org.firebirdsql.jdbc.FBSQLException: GDS Exception. 335544721. Unable
to complete network request to host "1.0.0.127".
at SynchronousEventNotifier.run(SynchronousEventNotifier.java:43)
at SynchronousEventNotifier.main(SynchronousEventNotifier.java:63)
Caused by: org.firebirdsql.jdbc.FBSQLException: GDS Exception.
335544721. Unable to complete network request to host "1.0.0.127".
at
org.firebirdsql.event.FBEventManager.addEventListener(FBEventManager.java:266)
at
org.firebirdsql.event.FBEventManager.waitForEvent(FBEventManager.java:348)
at SynchronousEventNotifier.run(SynchronousEventNotifier.java:28)
... 1 more
==============
I seem to remember at some stage in the IP stack the numbers get
reversed (I could be wrong on that though). I assumed that the
Jaybird code was returning that reversed address. However, it looks
to me like maybe there is a bug in the FBEventManager code. The
FBEventManager is connecting (if I supply an incorrect password, I get
an appropriate response from the Firebird server). With the correct
password I am getting passed this code (in SynchronousEventNotifier.java):
eventManager.connect();
System.out.println("Waiting for events");
However, even when a DML modification is made, no event is registered
with the java code. Instead, I get the weird error concerning the
1.0.0.127 address.
Thank you again for helping with this. I'm very pleased to see things
like the Services and Events API surfacing in Jaybird.
Bernard