Thread View: borland.public.interbase.interclient
1 messages
1 total messages
Started by Shicheng Tian
Fri, 12 Apr 2002 09:28
InterClient: "Undefined service D/tcp"?!
Author: Shicheng Tian
Date: Fri, 12 Apr 2002 09:28
Date: Fri, 12 Apr 2002 09:28
100 lines
4691 bytes
4691 bytes
Hi there,
We have installed interbase and interclient from the accompanying CD of
JBuilder5 (Enterprise).
A sample interbase database file is put at our Win2k PC under the dir -
D:\Borland\InterBase\examples\Database\employee.gdb
The interbase server and the interserver driver is running on the PC!
The PC is called cms-2313-06 and connected to the Internet at all time; we
can
access the Web from this PC without any problem.
When trying to run an interclient sample from JBuilder, however, we got the
following errors!
Basically the error is "Undefined service D/tcp"?!
Any advice on getting around this problem is appreciated!
Thanks,
Shicheng
=================the code=================
...
Database database1 = new Database();
database1.setConnection(new
com.borland.dx.sql.dataset.ConnectionDescriptor("jdbc:interbase://localhost/
/D://Borland/InterBase/examples/Database/employee.gdb", "SYSDBA",
"masterkey", false, "interbase.interclient.Driver"));
...
=================the errors=======================
D:\jbuilder5\jdk1.3\bin\javaw -classpath
"D:\jbuilder5\samples\DataExpress\SimpleStoredProcedure\ProcedureSetup\class
es;D:\jbuilder5\lib\dbswing.jar;D:\jbuilder5\lib\dx.jar;D:\jbuilder5\lib\bea
ndt.jar;D:\jbuilder5\lib\jds.jar;D:\Borland\InterClient\interclient.jar;D:\j
builder5\jdk1.3\demo\jfc\Java2D\Java2Demo.jar;D:\jbuilder5\jdk1.3\jre\lib\i1
8n.jar;D:\jbuilder5\jdk1.3\jre\lib\jaws.jar;D:\jbuilder5\jdk1.3\jre\lib\rt.j
ar;D:\jbuilder5\jdk1.3\jre\lib\sunrsasign.jar;D:\jbuilder5\jdk1.3\lib\dt.jar
;D:\jbuilder5\jdk1.3\lib\tools.jar"
com.borland.samples.dx.proceduresetup.CreateProcedures
See com.borland.dx.dataset.DataSetException error code: BASE+66
com.borland.dx.dataset.DataSetException: [interclient][interbase] Unable to
complete network request to host "cms-2313-06".
Failed to locate host machine.
Undefined service D/tcp.
at com.borland.dx.dataset.DataSetException.a(Unknown Source)
at com.borland.dx.dataset.DataSetException.throwException(Unknown Source)
at com.borland.dx.dataset.DataSetException.SQLException(Unknown Source)
at com.borland.dx.sql.dataset.Database.openConnection(Unknown Source)
at com.borland.dx.sql.dataset.Database.getJdbcConnection(Unknown Source)
at com.borland.dx.sql.dataset.Database.executeStatement(Unknown Source)
at
com.borland.samples.dx.proceduresetup.CreateProcedures.main(CreateProcedures
.java:39)
Chained exception:
interbase.interclient.SQLException: [interclient][interbase] Unable to
complete network request to host "cms-2313-06".
Failed to locate host machine.
Undefined service D/tcp.
at interbase.interclient.RecvMessage.createSQLException(Unknown Source)
at interbase.interclient.RecvMessage.makeSQLException(Unknown Source)
at interbase.interclient.RecvMessage.get_EXCEPTIONS(Unknown Source)
at interbase.interclient.Connection.remote_ATTACH_DATABASE(Unknown Source)
at interbase.interclient.Connection.connect(Unknown Source)
at interbase.interclient.Connection.<init>(Unknown Source)
at interbase.interclient.Driver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:517)
at java.sql.DriverManager.getConnection(DriverManager.java:177)
at com.borland.dx.sql.dataset.Database.openConnection(Unknown Source)
at com.borland.dx.sql.dataset.Database.getJdbcConnection(Unknown Source)
at com.borland.dx.sql.dataset.Database.executeStatement(Unknown Source)
at
com.borland.samples.dx.proceduresetup.CreateProcedures.main(CreateProcedures
.java:39)
Exception in thread "main"
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads