Subject Re: Problem with Jaybird Junit embedded tests
Author Bill Oliver
Looks like the create database is failing, and the native side is
seeing the "localhost" string for some reason in the file name.

I tried a java program to create a database using my setup, also, and
it didn't work.

[GDS_Impl,INFO] Attempting to loadLibrary for "jaybird"
[GDS_Impl,INFO] loadLibrary for "java_gds" returned OK.
[GDS_Impl,INFO] Attempting to initilize native library.
[GDS_Impl,INFO] Successfully loaded client library # 0 -
"fbembed.dll".
[GDS_Impl,INFO] Initilized native library OK.
[GDS_Impl,DEBUG] Original file name: localhost/3050:C:\temp\client-
java/output/db/fbtest.gdb
[GDS_Impl,DEBUG] File name for native code:
localhost/3050:C:\temp\client-java/output/db/fbtest.gdb
[GDS_Impl,DEBUG] Original file name: localhost/3050:C:\temp\client-
java/output/db/fbtest.gdb
[GDS_Impl,DEBUG] File name for native code:
localhost/3050:C:\temp\client-java/output/db/fbtest.gdb
[FBManager,ERROR] Exception creating database
org.firebirdsql.gds.GDSException: Unable to complete network request
to host "localhost".
Failed to establish a connection.
null
at org.firebirdsql.ngds.GDS_Impl.native_isc_create_database
(Native Method)
at org.firebirdsql.ngds.GDS_Impl.isc_create_database
(GDS_Impl.java:219)
at org.firebirdsql.management.FBManager.createDatabase
(FBManager.java:376)
at org.firebirdsql.common.FBTestBase.setUp
(FBTestBase.java:182)
at junit.framework.TestCase.runBare(TestCase.java:125)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected
(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run
(JUnitTestRunner.java:325)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main
(JUnitTestRunner.java:524)