db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Myrna van Lunteren (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DERBY-5800) test failure in AutoloadTest; AssertionFailedError: Test process failed:Spawned caused by SQLNonTransientConnectionException - Software caused connection abort: recv failed.
Date Thu, 21 Mar 2013 19:35:16 GMT

    [ https://issues.apache.org/jira/browse/DERBY-5800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13609361#comment-13609361
] 

Myrna van Lunteren commented on DERBY-5800:
-------------------------------------------

I saw another variation of this with the 10.10.1.1 release candidate - with ibm 1.5 (SR14)
on windows XP (on VMWare), which started with the following output into the test:

(emb)jdbcapi.AutoloadTest.spawnProcess:JDBCDriversEmbeddedTest START-SPAWNED:org.apache.derbyTesting.functionTests.tests.jdbcapi.JDBCDriversEmbeddedTest
ERROR OUTPUT:
java.lang.NullPointerException
	at org.apache.derby.iapi.services.monitor.Monitor.getStream(Unknown Source)
	at org.apache.derby.iapi.services.monitor.Monitor.logMessage(Unknown Source)
	at org.apache.derby.impl.drda.NetworkServerControlImpl.consoleMessage(Unknown Source)
	at org.apache.derby.impl.drda.NetworkServerControlImpl.consolePropertyMessageWork(Unknown
Source)
	at org.apache.derby.impl.drda.NetworkServerControlImpl.consolePropertyMessage(Unknown Source)
	at org.apache.derby.impl.drda.NetworkServerControlImpl.blockingStart(Unknown Source)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:619)
	at org.apache.derby.iapi.jdbc.DRDAServerStarter.run(Unknown Source)
	at java.lang.Thread.run(Thread.java:813)
java.lang.NullPointerException
	at org.apache.derby.iapi.services.monitor.Monitor.getStream(Unknown Source)
	at org.apache.derby.iapi.services.monitor.Monitor.logMessage(Unknown Source)
	at org.apache.derby.impl.drda.NetworkServerControlImpl.consoleMessage(Unknown Source)
	at org.apache.derby.impl.drda.NetworkServerControlImpl.consolePropertyMessageWork(Unknown
Source)
	at org.apache.derby.impl.drda.NetworkServerControlImpl.consolePropertyMessage(Unknown Source)
	at org.apache.derby.impl.drda.NetworkServerControlImpl.blockingStart(Unknown Source)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:619)
	at org.apache.derby.iapi.jdbc.DRDAServerStarter.run(Unknown Source)
	at java.lang.Thread.run(Thread.java:813)
END-SPAWNED  :org.apache.derbyTesting.functionTests.tests.jdbcapi.JDBCDriversEmbeddedTest
ERROR OUTPUT:
used 4141 ms .

(emb)jdbcapi.AutoloadTest.spawnProcess:JDBCDriversClientTest START-SPAWNED:org.apache.derbyTesting.functionTests.tests.jdbcapi.JDBCDriversClientTest
STANDARD OUTPUT: exit code=1
....F
Time: 11.594
There was 1 failure:
1) testExplicitLoad(org.apache.derbyTesting.functionTests.tests.jdbcapi.AutoloadTest)junit.framework.ComparisonFailure:
Unexpected SQL state. expected:<0800[4]> but was:<0800[1]>
	at org.apache.derbyTesting.junit.BaseJDBCTestCase.assertSQLState(BaseJDBCTestCase.java:853)
	at org.apache.derbyTesting.junit.BaseJDBCTestCase.assertSQLState(BaseJDBCTestCase.java:917)
	at org.apache.derbyTesting.functionTests.tests.jdbcapi.AutoloadTest.testUnsuccessfulConnect(AutoloadTest.java:415)
	at org.apache.derbyTesting.functionTests.tests.jdbcapi.AutoloadTest.explicitLoad(AutoloadTest.java:458)
	at org.apache.derbyTesting.functionTests.tests.jdbcapi.AutoloadTest.testExplicitLoad(AutoloadTest.java:427)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:117)
	at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBareOverridable(BaseJDBCTestCase.java:424)
	at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBare(BaseJDBCTestCase.java:441)
	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
	at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
	at junit.extensions.TestSetup.run(TestSetup.java:25)
	at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
	at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
	at junit.extensions.TestSetup.run(TestSetup.java:25)
Caused by: java.sql.SQLException: java.net.ConnectException : Error connecting to server localhost
on port 1527 with message Connection refused: connect.
	at org.apache.derby.client.am.SQLExceptionFactory.getSQLException(Unknown Source)
	at org.apache.derby.client.am.SqlException.getSQLException(Unknown Source)
	at org.apache.derby.jdbc.ClientDriver.connect(Unknown Source)
	at java.sql.DriverManager.getConnection(DriverManager.java:572)
	at java.sql.DriverManager.getConnection(DriverManager.java:196)
	at org.apache.derbyTesting.functionTests.tests.jdbcapi.AutoloadTest.testUnsuccessfulConnect(AutoloadTest.java:410)
	... 33 more
Caused by: org.apache.derby.client.am.DisconnectException: java.net.ConnectException : Error
connecting to server localhost on port 1527 with message Connection refused: connect.
	at org.apache.derby.client.net.NetAgent.<init>(Unknown Source)
	at org.apache.derby.client.net.NetConnection.newAgent_(Unknown Source)
	at org.apache.derby.client.am.Connection.<init>(Unknown Source)
	at org.apache.derby.client.net.NetConnection.<init>(Unknown Source)
	at org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newNetConnection(Unknown Source)
	... 37 more
Caused by: java.net.ConnectException: Connection refused: connect
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:413)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:274)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:261)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:389)
	at java.net.Socket.connect(Socket.java:556)
	at java.net.Socket.connect(Socket.java:504)
	at java.net.Socket.<init>(Socket.java:412)
	at java.net.Socket.<init>(Socket.java:226)
	at javax.net.DefaultSocketFactory.createSocket(SocketFactory.java:4)
	at org.apache.derby.client.net.OpenSocketAction.run(Unknown Source)
	at org.apache.derby.client.net.OpenSocketAction.run(Unknown Source)
	at java.security.AccessController.doPrivileged(AccessController.java:241)
	... 42 more

FAILURES!!!
Tests run: 4,  Failures: 1,  Errors: 0

END-SPAWNED  :org.apache.derbyTesting.functionTests.tests.jdbcapi.JDBCDriversClientTest STANDARD
OUTPUT:
used 20843 ms F.
(emb)jdbcapi.AutoloadTest.spawnProcess:JDBCDriversAllTest used 10719 ms .
[...more passing tests...]

Resulting in the following summary stack trace:
There were 2 failures:
1) spawnProcess:JDBCDriversClientTest(org.apache.derbyTesting.functionTests.tests.jdbcapi.AutoloadTest)junit.framework.AssertionFailedError:
Test process failed:Spawned org.apache.derbyTesting.functionTests.tests.jdbcapi.JDBCDriversClientTest
exitCode=1
STDOUT:
....F
Time: 11.594
There was 1 failure:
1) testExplicitLoad(org.apache.derbyTesting.functionTests.tests.jdbcapi.AutoloadTest)junit.framework.ComparisonFailure:
Unexpected SQL state. expected:<0800[4]> but was:<0800[1]>
	at org.apache.derbyTesting.junit.BaseJDBCTestCase.assertSQLState(BaseJDBCTestCase.java:853)
	at org.apache.derbyTesting.junit.BaseJDBCTestCase.assertSQLState(BaseJDBCTestCase.java:917)
	at org.apache.derbyTesting.functionTests.tests.jdbcapi.AutoloadTest.testUnsuccessfulConnect(AutoloadTest.java:415)
	at org.apache.derbyTesting.functionTests.tests.jdbcapi.AutoloadTest.explicitLoad(AutoloadTest.java:458)
	at org.apache.derbyTesting.functionTests.tests.jdbcapi.AutoloadTest.testExplicitLoad(AutoloadTest.java:427)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:117)
	at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBareOverridable(BaseJDBCTestCase.java:424)
	at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBare(BaseJDBCTestCase.java:441)
	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
	at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
	at junit.extensions.TestSetup.run(TestSetup.java:25)
	at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
	at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
	at junit.extensions.TestSetup.run(TestSetup.java:25)
Caused by: java.sql.SQLException: java.net.ConnectException : Error connecting to server localhost
on port 1527 with message Connection refused: connect.
	at org.apache.derby.client.am.SQLExceptionFactory.getSQLException(Unknown Source)
	at org.apache.derby.client.am.SqlException.getSQLException(Unknown Source)
	at org.apache.derby.jdbc.ClientDriver.connect(Unknown Source)
	at java.sql.DriverManager.getConnection(DriverManager.java:572)
	at java.sql.DriverManager.getConnection(DriverManager.java:196)
	at org.apache.derbyTesting.functionTests.tests.jdbcapi.AutoloadTest.testUnsuccessfulConnect(AutoloadTest.java:410)
	... 33 more
Caused by: org.apache.derby.client.am.DisconnectException: java.net.ConnectException : Error
connecting to server localhost on port 1527 with message Connection refused: connect.
	at org.apache.derby.client.net.NetAgent.<init>(Unknown Source)
	at org.apache.derby.client.net.NetConnection.newAgent_(Unknown Source)
	at org.apache.derby.client.am.Connection.<init>(Unknown Source)
	at org.apache.derby.client.net.NetConnection.<init>(Unknown Source)
	at org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newNetConnection(Unknown Source)
	... 37 more
Caused by: java.net.ConnectException: Connection refused: connect
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:413)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:274)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:261)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:389)
	at java.net.Socket.connect(Socket.java:556)
	at java.net.Socket.connect(Socket.java:504)
	at java.net.Socket.<init>(Socket.java:412)
	at java.net.Socket.<init>(Socket.java:226)
	at javax.net.DefaultSocketFactory.createSocket(SocketFactory.java:4)
	at org.apache.derby.client.net.OpenSocketAction.run(Unknown Source)
	at org.apache.derby.client.net.OpenSocketAction.run(Unknown Source)
	at java.security.AccessController.doPrivileged(AccessController.java:241)
	... 42 more

FAILURES!!!
Tests run: 4,  Failures: 1,  Errors: 0


	at org.apache.derbyTesting.functionTests.tests.jdbcapi.AutoloadTest.spawnProcess(AutoloadTest.java:257)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:117)
	at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBareOverridable(BaseJDBCTestCase.java:424)
	at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBare(BaseJDBCTestCase.java:441)
	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
	at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
	at junit.extensions.TestSetup.run(TestSetup.java:25)

                
> test failure in AutoloadTest; AssertionFailedError: Test process failed:Spawned caused
by SQLNonTransientConnectionException - Software caused connection abort: recv failed.
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-5800
>                 URL: https://issues.apache.org/jira/browse/DERBY-5800
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.9.1.0
>            Reporter: Myrna van Lunteren
>              Labels: derby_triage10_10
>
> I've seen a couple of these during my testing of the 10.9.1 release candidate.
> On AIX I saw 4 issues with this test; on rerun, it seemed to be intermittent.
> It seemed to go better when I used -Xmx512M, and also it seems using -Dderby.tests.basePort
interfered, so perhaps I was using ports already in use on the system - I'll check on that
when all other testing is complete.
> This example is from a Windows 2008 ibm 1.6 run, where there was just 1 failure:
> spawnProcess:JDBCDriversEmbeddedTest(org.apache.derbyTesting.functionTests.tests.jdbcapi.AutoloadTest)junit.framework.AssertionFailedError:
Test process failed:Spawned org.apache.derbyTesting.functionTests.tests.jdbcapi.JDBCDriversEmbeddedTest
exitCode=1
> STDOUT:
> ...........F...
> Time: 5.312
> There was 1 failure:
> 1) testExplicitLoad(org.apache.derbyTesting.functionTests.tests.jdbcapi.AutoloadTest)junit.framework.ComparisonFailure:
Unexpected SQL state. expected:<0800[4]> but was:<0800[6]>
> 	at org.apache.derbyTesting.junit.BaseJDBCTestCase.assertSQLState(BaseJDBCTestCase.java:853)
> 	at org.apache.derbyTesting.junit.BaseJDBCTestCase.assertSQLState(BaseJDBCTestCase.java:896)
> 	at org.apache.derbyTesting.functionTests.tests.jdbcapi.AutoloadTest.testUnsuccessfulConnect(AutoloadTest.java:414)
> 	at org.apache.derbyTesting.functionTests.tests.jdbcapi.AutoloadTest.explicitLoad(AutoloadTest.java:457)
> 	at org.apache.derbyTesting.functionTests.tests.jdbcapi.AutoloadTest.testExplicitLoad(AutoloadTest.java:426)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
> 	at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:113)
> 	at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBareOverridable(BaseJDBCTestCase.java:424)
> 	at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBare(BaseJDBCTestCase.java:441)
> 	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> 	at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> 	at junit.extensions.TestSetup.run(TestSetup.java:25)
> 	at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
> 	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> 	at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> 	at junit.extensions.TestSetup.run(TestSetup.java:25)
> Caused by: java.sql.SQLNonTransientConnectionException: A communications error has been
detected: Software caused connection abort: recv failed.
> 	at org.apache.derby.client.am.SQLExceptionFactory40.getSQLException(Unknown Source)
> 	at org.apache.derby.client.am.SqlException.getSQLException(Unknown Source)
> 	at org.apache.derby.jdbc.ClientDriver.connect(Unknown Source)
> 	at java.sql.DriverManager.getConnection(DriverManager.java:379)
> 	at java.sql.DriverManager.getConnection(DriverManager.java:415)
> 	at org.apache.derbyTesting.functionTests.tests.jdbcapi.AutoloadTest.testUnsuccessfulConnect(AutoloadTest.java:409)
> 	... 33 more
> Caused by: org.apache.derby.client.am.DisconnectException: A communications error has
been detected: Software caused connection abort: recv failed.
> 	at org.apache.derby.client.net.NetAgent.throwCommunicationsFailure(Unknown Source)
> 	at org.apache.derby.client.net.Reply.fill(Unknown Source)
> 	at org.apache.derby.client.net.Reply.ensureALayerDataInBuffer(Unknown Source)
> 	at org.apache.derby.client.net.Reply.readDssHeader(Unknown Source)
> 	at org.apache.derby.client.net.Reply.startSameIdChainParse(Unknown Source)
> 	at org.apache.derby.client.net.NetConnectionReply.readExchangeServerAttributes(Unknown
Source)
> 	at org.apache.derby.client.net.NetConnection.readServerAttributesAndKeyExchange(Unknown
Source)
> 	at org.apache.derby.client.net.NetConnection.flowServerAttributesAndKeyExchange(Unknown
Source)
> 	at org.apache.derby.client.net.NetConnection.flowUSRIDPWDconnect(Unknown Source)
> 	at org.apache.derby.client.net.NetConnection.flowConnect(Unknown Source)
> 	at org.apache.derby.client.net.NetConnection.<init>(Unknown Source)
> 	at org.apache.derby.client.net.NetConnection40.<init>(Unknown Source)
> 	at org.apache.derby.client.net.ClientJDBCObjectFactoryImpl40.newNetConnection(Unknown
Source)
> 	... 37 more
> Caused by: java.net.SocketException: Software caused connection abort: recv failed
> 	at java.net.SocketInputStream.read(SocketInputStream.java:140)
> 	... 49 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message