Issue Details (XML | Word | Printable)

Key: JDBC-98
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Roman Rokytskyy
Reporter: Bernard Devlin
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Jaybird JCA/JDBC Driver

attempting to resolve host reverses IP address

Created: 26/Apr/07 06:57 AM   Updated: 23/Nov/12 04:47 PM
Component/s: Events
Affects Version/s: Jaybird 2.1
Fix Version/s: Jaybird 3.0.0

Environment: Mac OS X 10.4.8 PPC


 Description  « Hide
I was using the sample code from the Jaybird wiki to test Synchronous and Asynchronous event monitoring. The classes/jars would work on Linux, but on OS X the same class file/jars produced this error:

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)

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Philip Williams added a comment - 29/Apr/08 03:48 PM - edited
An on Windows (XP), I get the following:

org.firebirdsql.jdbc.FBSQLException: GDS Exception. 335544721. Unable to complete network request to host "0.0.0.0".
        at org.firebirdsql.event.FBEventManager.addEventListener(FBEventManager.java:266)
        at eddy.document.Watcher.run(Watcher.java:58)
at org.firebirdsql.gds.GDSException: Unable to complete network request to host "0.0.0.0".
        at org.firebirdsql.gds.impl.wire.AbstractJavaGDSImpl$EventCoordinatorImp.connect(AbstractJavaGDSImpl.java:3135)
        at org.firebirdsql.gds.impl.wire.AbstractJavaGDSImpl$EventCoordinatorImp.<init>(AbstractJavaGDSImpl.java:3044)
        at org.firebirdsql.gds.impl.wire.AbstractJavaGDSImpl.iscQueueEvents(AbstractJavaGDSImpl.java:2962)
        at org.firebirdsql.event.FBEventManager$GdsEventHandler.register(FBEventManager.java:385)
        at org.firebirdsql.event.FBEventManager.registerListener(FBEventManager.java:359)
        at org.firebirdsql.event.FBEventManager.addEventListener(FBEventManager.java:264)
        at eddy.document.Watcher.run(Watcher.java:58)

I get this with local (setHost() of localhost, 127.0.0.1, or by my LAN ip address) connections, but also when connecting to another server on my LAN, with firewall services disabled on both ends. I can connect to the database (FBEventManager.connect() succeeds), but both synchronous and asynchronous attempts to wait for an event then fail, as above. Both servers are FB2.1 (local is rc2, remote is official release), and I'm using jaybird 2.1.2 for jdk 1.5, in tomcat 6, with jre 1.6.0_03. If it's unrelated, my apologies. I'll switch to using JMS for this purpose, it's no big deal, but if I do ever figure out what I did wrong I'll update this comment.

Philip Williams added a comment - 01/Aug/08 07:54 PM
This seems to have been fixed (at least it fixed my problem, above) by the time of jaybird 2.1.6, using firebird 2.1.1. I think the release notes mentioned that FB 2.0 or 2.1 broke the event mechanism in jaybird; this ticket may be a duplicate?

Roman Rokytskyy added a comment - 24/Oct/08 02:54 PM
At the moment we have no possibility to compile the library on big-endian platform, therefore I have to leave the ticket open and remove it from the 2.2 release.

Mark Rotteveel added a comment - 23/Nov/12 04:47 PM
Fixed, removed workaround code for parsing IP-addresses that caused the issue. Original issue for the workaround is no longer applicable (has been fixed in Java socket code).