Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attempting to resolve host reverses IP address [JDBC98] #136

Closed
firebird-automations opened this issue Apr 26, 2007 · 9 comments
Closed

Comments

@firebird-automations
Copy link

Submitted by: Bernard Devlin (bjdevlin)

Assigned to: Roman Rokytskyy (rrokytskyy)

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)

Commits: 5fe0bea

@firebird-automations
Copy link
Author

Commented by: Philip Williams (unordained)

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.

@firebird-automations
Copy link
Author

Modified by: Roman Rokytskyy (rrokytskyy)

Fix Version: Jaybird 2.2 [ 10053 ]

@firebird-automations
Copy link
Author

Commented by: Philip Williams (unordained)

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?

@firebird-automations
Copy link
Author

Modified by: Roman Rokytskyy (rrokytskyy)

Fix Version: Jaybird 2.2 [ 10053 ] =>

@firebird-automations
Copy link
Author

Commented by: Roman Rokytskyy (rrokytskyy)

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.

@firebird-automations
Copy link
Author

Modified by: @mrotteveel

Fix Version: Jaybird 2.3 [ 10440 ]

@firebird-automations
Copy link
Author

Commented by: @mrotteveel

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).

@firebird-automations
Copy link
Author

Modified by: @mrotteveel

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

@firebird-automations
Copy link
Author

Modified by: @mrotteveel

status: Resolved [ 5 ] => Closed [ 6 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant