[
https://issues.apache.org/jira/browse/DERBY-372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12879330#action_12879330
]
Knut Anders Hatlen commented on DERBY-372:
------------------------------------------
I tried to run DerbyNetAutoStart without setting the framework property, and I
see a failure instead of a hang:
$ java org.apache.derbyTesting.functionTests.harness.RunTest
derbynet/DerbyNetAutoStart.java
*** Start: DerbyNetAutoStart jdk1.6.0_18 2010-06-16 14:53:26 ***
-- SecurityManager not installed --
3a4
> The network server was started though derby.drda.startNetworkServer=false.
4a6
> The network server was started though derby.drda.startNetworkServer was not
> set.
6 del
< PASSED.
6 add
> Server start failed: org.apache.derby.jdbc.EmbeddedDriver is not registered
> with the JDBC driver manager
> java.sql.SQLException: org.apache.derby.jdbc.EmbeddedDriver is not registered
> with the JDBC driver manager
> FAILED.
Test Failed.
*** End: DerbyNetAutoStart jdk1.6.0_18 2010-06-16 14:55:10 ***
Running with framework=DerbyNet without db2jcc*.jar in the classpath also fails
instead of hanging:
% java -Dframework=DerbyNet
org.apache.derbyTesting.functionTests.harness.RunTest
derbynet/DerbyNetAutoStart.java
*** Start: DerbyNetAutoStart jdk1.6.0_18 DerbyNet 2010-06-16 14:57:10 ***
Initialize for framework: DerbyNet
startServer = false. Bypass server startup
-- SecurityManager not installed --
Cannot determine driver version:java.lang.ClassNotFoundException:
com.ibm.db2.jcc.DB2Driver
1 del
< Starting test case 1.
2 del
< Starting test case 2.
3 del
< Starting test case 3.
4 del
< Starting test case 4.
5 del
< Starting test case 5.
6 del
< PASSED.
6 add
> java.lang.ClassNotFoundException thrown: com.ibm.db2.jcc.DB2Driver
> java.lang.ClassNotFoundException: com.ibm.db2.jcc.DB2Driver
Test Failed.
*** End: DerbyNetAutoStart jdk1.6.0_18 DerbyNet 2010-06-16 14:57:11 ***
> derbynet/DerbyNetAutoStart.java test hangs
> ------------------------------------------
>
> Key: DERBY-372
> URL: https://issues.apache.org/jira/browse/DERBY-372
> Project: Derby
> Issue Type: Bug
> Components: Test
> Reporter: Deepa Remesh
> Priority: Minor
>
> derbynet/DerbyNetAutoStart.java test hangs when run without setting
> "-Dframework=DerbyNet" or "-Dframework=DerbyNetClient". It also hangs when
> the jar files db2jcc.jar and db2jcc_license_c.jar are not set in the
> classpath. It would be good if the test does not wait indefinitely but throws
> the exception it encountered and fails after retrying for some time.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.