Subject | Problem with Jaybird Junit embedded tests |
---|---|
Author | Bill Oliver |
Post date | 2004-09-16T14:37:52Z |
Hi,
First off, good job on version 1.5 of the JDBC driver! It looks
great, and is a good piece of coding. I have already learned much
from looking at the code and the build scripts.
I am testing the Vulcan build that Starkey is working on, and I am
hoping to use the embedded Junit test suite against his changes.
However, I am not able to run to run the junit embedded tests against
Firebird 1.5 embedded. I must be doing something wrong, but I am
totally stumped. Help!
Here is what I've done so far...
o) Java installed at c:\j2sdk1.4.2_05
o) Firebird embedded 1.5 installed at c:\fbembed
o) MS Visual Studio.net 2003 installed
o) client-java downloaded from cvs to c:\temp\client-java
At this point, my path is:
PATH=C:\Program Files\Microsoft Visual Studio .NET 2003\Common7
\IDE;C:\Program Files\Microsoft Visual Studio .NET 2003\VC7
\BIN;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7
\Tools;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7
\Tools\bin\prerelease;C:\Program Files\Microsoft Visual Studio .NET
2003\Common7\Tools\bin;C:\Program Files\Microsoft.NET\SDK\v1.1
\bin;C:\WINNT\Microsoft.NET\Framework\v1.1.4322;c:\fbembed;c:\j2sdk1.4
.2_05\bin;c:\j2sdk1.4.2_05
\jre\bin;C:\Perl\bin;c:\scripts;C:\WINNT\system32;C:\WINNT;C:\WINNT\Sy
stem32\Wbem;C:\Program Files\Hummingbird\Connectivity\7.10
\Accessories\;C:\PROGRA~1\ULTRAE~1;C:\Program
Files\PRISM;c:\mysql\bin;c:\cygwin\bin;\\ronco\public\javatools\bin;\\
ronco\public\dnt\tools;C:\Program Files\Windows Resource
Kits\Tools\;C:\Program Files\Mercury Interactive\LoadRunner\bin;
Note inclusion of c:\fbembed and c:\j2sdk1.4.2_05\jre\bin in path
Now I run the tests
C:\temp\client-java>build clean
...
C:\temp\client-java>build all-tests-embedded
...
java classes are built. jaybird.dll is built. The embedded tests
don't pass, they show errors...
all-tests-embedded:
[junit] Running org.firebirdsql.jca.TestDataSourceSerialization
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed:
16.394 sec
[junit] TEST org.firebirdsql.jca.TestDataSourceSerialization
FAILED
This is what is in the output xml file for
TestDataSourceSerialization:
<testcase name="testDataSourceSerialization" time="16.207">
<error message="Problem getting connection:
org.firebirdsql.jca.FBResourceException: Unable to complete network
request to host "localhost".
Failed to establish a connection.
null
Reason: Unable to complete network request to host
"localhost".
Failed to establish a connection.
null"
type="org.firebirdsql.jdbc.FBSQLException">org.firebirdsql.jdbc.FBSQLE
xception: Problem getting connection:
org.firebirdsql.jca.FBResourceException: Unable to complete network
request to host "localhost".
Failed to establish a connection.
null
Reason: Unable to complete network request to host
"localhost".
Failed to establish a connection.
null
at org.firebirdsql.jdbc.FBDataSource.getConnection
(FBDataSource.java:88)
at
org.firebirdsql.jca.TestDataSourceSerialization.testDataSourceSerializ
ation(TestDataSourceSerialization.java:52)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
</error>
</testcase>
I am stumped. Any help would be appreciated.
Thanks,
Bill Oliver
bill.oliver@...
First off, good job on version 1.5 of the JDBC driver! It looks
great, and is a good piece of coding. I have already learned much
from looking at the code and the build scripts.
I am testing the Vulcan build that Starkey is working on, and I am
hoping to use the embedded Junit test suite against his changes.
However, I am not able to run to run the junit embedded tests against
Firebird 1.5 embedded. I must be doing something wrong, but I am
totally stumped. Help!
Here is what I've done so far...
o) Java installed at c:\j2sdk1.4.2_05
o) Firebird embedded 1.5 installed at c:\fbembed
o) MS Visual Studio.net 2003 installed
o) client-java downloaded from cvs to c:\temp\client-java
At this point, my path is:
PATH=C:\Program Files\Microsoft Visual Studio .NET 2003\Common7
\IDE;C:\Program Files\Microsoft Visual Studio .NET 2003\VC7
\BIN;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7
\Tools;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7
\Tools\bin\prerelease;C:\Program Files\Microsoft Visual Studio .NET
2003\Common7\Tools\bin;C:\Program Files\Microsoft.NET\SDK\v1.1
\bin;C:\WINNT\Microsoft.NET\Framework\v1.1.4322;c:\fbembed;c:\j2sdk1.4
.2_05\bin;c:\j2sdk1.4.2_05
\jre\bin;C:\Perl\bin;c:\scripts;C:\WINNT\system32;C:\WINNT;C:\WINNT\Sy
stem32\Wbem;C:\Program Files\Hummingbird\Connectivity\7.10
\Accessories\;C:\PROGRA~1\ULTRAE~1;C:\Program
Files\PRISM;c:\mysql\bin;c:\cygwin\bin;\\ronco\public\javatools\bin;\\
ronco\public\dnt\tools;C:\Program Files\Windows Resource
Kits\Tools\;C:\Program Files\Mercury Interactive\LoadRunner\bin;
Note inclusion of c:\fbembed and c:\j2sdk1.4.2_05\jre\bin in path
Now I run the tests
C:\temp\client-java>build clean
...
C:\temp\client-java>build all-tests-embedded
...
java classes are built. jaybird.dll is built. The embedded tests
don't pass, they show errors...
all-tests-embedded:
[junit] Running org.firebirdsql.jca.TestDataSourceSerialization
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed:
16.394 sec
[junit] TEST org.firebirdsql.jca.TestDataSourceSerialization
FAILED
This is what is in the output xml file for
TestDataSourceSerialization:
<testcase name="testDataSourceSerialization" time="16.207">
<error message="Problem getting connection:
org.firebirdsql.jca.FBResourceException: Unable to complete network
request to host "localhost".
Failed to establish a connection.
null
Reason: Unable to complete network request to host
"localhost".
Failed to establish a connection.
null"
type="org.firebirdsql.jdbc.FBSQLException">org.firebirdsql.jdbc.FBSQLE
xception: Problem getting connection:
org.firebirdsql.jca.FBResourceException: Unable to complete network
request to host "localhost".
Failed to establish a connection.
null
Reason: Unable to complete network request to host
"localhost".
Failed to establish a connection.
null
at org.firebirdsql.jdbc.FBDataSource.getConnection
(FBDataSource.java:88)
at
org.firebirdsql.jca.TestDataSourceSerialization.testDataSourceSerializ
ation(TestDataSourceSerialization.java:52)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
</error>
</testcase>
I am stumped. Any help would be appreciated.
Thanks,
Bill Oliver
bill.oliver@...