[
http://issues.apache.org/jira/browse/DERBY-1219?page=comments#action_12383400 ]
Bryan Pendleton commented on DERBY-1219:
----------------------------------------
I've been trying to run this test in one of my alternate environments, and I'd
like to be able to run the server on a port other than 1527. Unfortunately,
when I change the value of ij.database so that it specifies a different port
number, the test runs partway, then fails with:
java.sql.SQLException: java.security.PrivilegedActionException : Error
connecting to server localhost on port 1,527 with message Connection refused.
at
org.apache.derby.client.am.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:45)
at
org.apache.derby.client.am.SqlException.getSQLException(SqlException.java:342)
at
org.apache.derby.jdbc.ClientDataSource.getConnection(ClientDataSource.java:191)
at
org.apache.derby.jdbc.ClientDataSource.getConnection(ClientDataSource.java:162)
at
org.apache.derbyTesting.functionTests.tests.jdbcapi.checkDataSource.runTest(checkDataSource.java:190)
at
org.apache.derbyTesting.functionTests.tests.jdbcapi.checkDataSource.main(checkDataSource.java:132)
Line 190 of checkDataSource.java is the last line of the following snippet:
DataSource dscs = TestUtil.getDataSource(attrs);
if (testConnectionToString)
checkToString(dscs);
DataSource ds = dscs;
checkConnection("DataSource", ds.getConnection());
Is it possible to configure this test to run on a port other than 1527?
> jdbcapi/checkDataSource.java and jdbcapi/checkDataSource30.java hang
> intermittently with client
> -----------------------------------------------------------------------------------------------
>
> Key: DERBY-1219
> URL: http://issues.apache.org/jira/browse/DERBY-1219
> Project: Derby
> Type: Test
> Components: Network Server, Network Client
> Versions: 10.2.0.0
> Environment: More often on jdk 1.5 or jdk 1.6 but hangs on jdk 1.4.2 as well
> Reporter: Kathey Marsden
> Assignee: Bryan Pendleton
> Priority: Minor
> Attachments: client_stack_trace_050306.txt, drda_traces_050206.zip,
> interrupt.diff, no-sessions-for-closed-threads.diff,
> server_stack_trace_050306.txt, skipThreads.diff, testfiles_afterhang.zip,
> traces_on_hang.txt
>
> The tests checkDataSource.java and checkDataSource30.java
> hang intermittently especially with jdk 1.5.
> Attached is the test run output and traces when the server is started
> separately.
> 1) Enable checkDataSource30.java by taking it out of
> functionTests/suites/DerbyNetClient.exclude.
> 2) Run the test with client.
> java -Dij.exceptionTrace=true -Dkeepfiles=true -Dframework=DerbyNetClient
> org.apache.derbyTesting.functionTests.harness.RunTest
> jdbcapi/checkDataSource30.java
> Attachements:
> testfiles_after_hang.zip - Test directory.
> traces_on_hang.txt - Server side traces obtained by starting the server
> separately before running the test.
> I wish I had time to work on this right now as I would really like to see
> this valuable test in the suite, but hopefully someone else will pick it up.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira