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-issue-importer opened this issue Apr 26, 2007 · 9 comments
Closed

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

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

Comments

@firebird-issue-importer

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-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Apr 29, 2008

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-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jul 18, 2008

Modified by: Roman Rokytskyy (rrokytskyy)

Fix Version: Jaybird 2.2 [ 10053 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Aug 1, 2008

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-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Oct 24, 2008

Modified by: Roman Rokytskyy (rrokytskyy)

Fix Version: Jaybird 2.2 [ 10053 ] =>

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Oct 24, 2008

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-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Aug 18, 2012

Modified by: @mrotteveel

Fix Version: Jaybird 2.3 [ 10440 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Nov 23, 2012

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-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Nov 23, 2012

Modified by: @mrotteveel

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

resolution: Fixed [ 1 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented May 7, 2017

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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant