Article View: borland.public.interbase.interclient
Article #71InterClient: "Undefined service D/tcp"?!
From: 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"
Technical Details
Message-ID:
<3cb6a8a9_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.media.kyoto-u.ac.jp!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f54da,cff041ef1f2eadf7,start X-Google-Attributes: gidf54da,public X-Google-Thread: fd38c,cff041ef1f2eadf7,start X-Google-Attributes: gidfd38c,public X-Google-ArrivalTime: 2002-04-12 02:31:42 PST Reply-To: "Shicheng Tian" <s.tian@shu.ac.uk> From: "Shicheng Tian" <s.tian@shu.ac.uk> Newsgroups: borland.public.interbase.interclient,borland.public.interbase.general Subject: InterClient: "Undefined service D/tcp"?! Date: Fri, 12 Apr 2002 10:28:04 +0100 Lines: 102 Organization: Sheffield Hallam University X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 143.52.51.94 Message-ID: <3cb6a8a9_2@dnews> X-Trace: dnews 1018603689 143.52.51.94 (12 Apr 2002 02:28:09 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.media.kyoto-u.ac.jp!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews