Subject | Can't use JDBC with Firebird RC2 |
---|---|
Author | Ken Freeman |
Post date | 2002-01-02T19:21:05Z |
Env: Windows 2K, Firebird RC2, Interclient 2.01. I
had removed all traces (I think) of Interbase before installing Firebird. When I
try to use JDBC, I get the following error:
interbase.interclient.CommunicationException:
[interclient] Communication error: A socket exception occurred while trying to
establish a socket connection to server localhost.
The message of the SocketException is "Connection refused: connect".
See API reference for exception interbase.interclient.CommunicationException
at interbase.interclient.JDBCNet.establishSocketStreams(JDBCNet.java:92)
at interbase.interclient.JDBCNet.<init>(JDBCNet.java:74)
at interbase.interclient.Connection.connect(Connection.java:317)
at interbase.interclient.Connection.<init>(Connection.java:285)
at interbase.interclient.DataSource.getConnection(DataSource.java:532)
The message of the SocketException is "Connection refused: connect".
See API reference for exception interbase.interclient.CommunicationException
at interbase.interclient.JDBCNet.establishSocketStreams(JDBCNet.java:92)
at interbase.interclient.JDBCNet.<init>(JDBCNet.java:74)
at interbase.interclient.Connection.connect(Connection.java:317)
at interbase.interclient.Connection.<init>(Connection.java:285)
at interbase.interclient.DataSource.getConnection(DataSource.java:532)
I'm pretty sure that the problem is because nothing
is listening to port 3060. I'm running a utility to check for port listeners,
and it reports the same exception for localhost/3060. It does find a listener on
port 3050, but JDBC can't talk to that.
Here's the lines I added to my SERVICES
file:
gds_db 3050/tcp
# do I need
this?
interserver 3060/tcp # InterBase InterServer
interserver 3060/tcp # InterBase InterServer
I tried stopping and restarting the Interbase
Server service, and rebooting.
One more thing: I noticed that the service runs
ibserver.exe. There are no interserver.exe or gds_db.exe processes.
Thanks,
Ken Freeman
Senior Architect
AppIQ, Inc.
6 New England Executive Park, 4th Floor
Burlington, MA 01803
781-425-6260 x114
Senior Architect
AppIQ, Inc.
6 New England Executive Park, 4th Floor
Burlington, MA 01803
781-425-6260 x114