Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 99977 invoked from network); 24 Jul 2008 19:51:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jul 2008 19:51:54 -0000 Received: (qmail 318 invoked by uid 500); 24 Jul 2008 19:51:53 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 99989 invoked by uid 500); 24 Jul 2008 19:51:52 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 99975 invoked by uid 99); 24 Jul 2008 19:51:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jul 2008 12:51:52 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jul 2008 19:51:06 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B0321234C182 for ; Thu, 24 Jul 2008 12:51:31 -0700 (PDT) Message-ID: <455935330.1216929091720.JavaMail.jira@brutus> Date: Thu, 24 Jul 2008 12:51:31 -0700 (PDT) From: "Kristian Waagan (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-3795) BlobMemTest fails for network client with OutOfMemory errror with 16M heap In-Reply-To: <1263886640.1216917451917.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-3795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12616612#action_12616612 ] Kristian Waagan commented on DERBY-3795: ---------------------------------------- Which JVMs have people tried this with? I can reproduce this most of the time with Sun JVM 1.4.2. I have observed both failures; 2 errors and 4 errors. With Sun JDK 1.5.0 and Sun JDK 1.6 I haven't been able to provoke the errors. > BlobMemTest fails for network client with OutOfMemory errror with 16M heap > --------------------------------------------------------------------------- > > Key: DERBY-3795 > URL: https://issues.apache.org/jira/browse/DERBY-3795 > Project: Derby > Issue Type: Bug > Components: Test > Affects Versions: 10.5.0.0 > Reporter: Kathey Marsden > Priority: Minor > > The test memory.BlobMemTest should run with 16M heap, but now gives an OOM exception for client. This appears to be a regression in the client driver. > 1) testBlobLength(org.apache.derbyTesting.functionTests.tests.memory.BlobMemTest)java.sql.SQLException: Attempt to fully > materialize lob data that is too large for the JVM. The connection has been terminated. > at org.apache.derby.client.am.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:46) > at org.apache.derby.client.am.SqlException.getSQLException(SqlException.java:362) > at org.apache.derby.client.am.ResultSet.next(ResultSet.java:281) > at org.apache.derbyTesting.functionTests.tests.memory.BlobMemTest.testBlobLength(BlobMemTest.java:136) > at org.apache.derbyTesting.functionTests.tests.memory.BlobMemTest.testBlobLength(BlobMemTest.java:190) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:104) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) > at junit.extensions.TestSetup$1.protect(TestSetup.java:19) > at junit.extensions.TestSetup.run(TestSetup.java:23) > at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) > at junit.extensions.TestSetup$1.protect(TestSetup.java:19) > at junit.extensions.TestSetup.run(TestSetup.java:23) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) > at junit.extensions.TestSetup$1.protect(TestSetup.java:19) > at junit.extensions.TestSetup.run(TestSetup.java:23) > at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) > at junit.extensions.TestSetup$1.protect(TestSetup.java:19) > at junit.extensions.TestSetup.run(TestSetup.java:23) > Caused by: org.apache.derby.client.am.DisconnectException: Attempt to fully materialize lob data that is too large for t > he JVM. The connection has been terminated. > at org.apache.derby.client.net.NetStatementReply.copyEXTDTA(NetStatementReply.java:1528) > at org.apache.derby.client.net.NetResultSetReply.parseCNTQRYreply(NetResultSetReply.java:143) > at org.apache.derby.client.net.NetResultSetReply.readFetch(NetResultSetReply.java:42) > at org.apache.derby.client.net.ResultSetReply.readFetch(ResultSetReply.java:41) > at org.apache.derby.client.net.NetResultSet.readFetch_(NetResultSet.java:206) > at org.apache.derby.client.am.ResultSet.flowFetch(ResultSet.java:4275) > at org.apache.derby.client.net.NetCursor.getMoreData_(NetCursor.java:1243) > at org.apache.derby.client.am.Cursor.stepNext(Cursor.java:176) > at org.apache.derby.client.am.Cursor.next(Cursor.java:195) > at org.apache.derby.client.am.ResultSet.nextX(ResultSet.java:302) > at org.apache.derby.client.am.ResultSet.next(ResultSet.java:272) > ... 38 more > Caused by: java.lang.OutOfMemoryError > at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:116) > at org.apache.derby.client.net.Reply.getData(Reply.java:787) > at org.apache.derby.client.net.NetStatementReply.copyEXTDTA(NetStatementReply.java:1520) > ... 48 more > 2) testBlobLengthWithLengthlessInsert(org.apache.derbyTesting.functionTests.tests.memory.BlobMemTest)java.sql.SQLExcepti > on: Network protocol exception: DSS chained with same id at end of same id chain parse. The connection has been termina > ted. > at org.apache.derby.client.am.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:46) > at org.apache.derby.client.am.SqlException.getSQLException(SqlException.java:362) > at org.apache.derby.jdbc.ClientDriver.connect(ClientDriver.java:149) > at java.sql.DriverManager.getConnection(DriverManager.java:562) > at java.sql.DriverManager.getConnection(DriverManager.java:186) > at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:76) > at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:43) > at org.apache.derbyTesting.junit.TestConfiguration.openDefaultConnection(TestConfiguration.java:1314) > at org.apache.derbyTesting.junit.BaseJDBCTestCase.openDefaultConnection(BaseJDBCTestCase.java:419) > at org.apache.derbyTesting.junit.BaseJDBCTestCase.getConnection(BaseJDBCTestCase.java:101) > at org.apache.derbyTesting.junit.BaseJDBCTestCase.rollback(BaseJDBCTestCase.java:378) > at org.apache.derbyTesting.functionTests.tests.memory.BlobMemTest.tearDown(BlobMemTest.java:58) > at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:104) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) > at junit.extensions.TestSetup$1.protect(TestSetup.java:19) > at junit.extensions.TestSetup.run(TestSetup.java:23) > at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) > at junit.extensions.TestSetup$1.protect(TestSetup.java:19) > at junit.extensions.TestSetup.run(TestSetup.java:23) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) > at junit.extensions.TestSetup$1.protect(TestSetup.java:19) > at junit.extensions.TestSetup.run(TestSetup.java:23) > at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) > at junit.extensions.TestSetup$1.protect(TestSetup.java:19) > at junit.extensions.TestSetup.run(TestSetup.java:23) > Caused by: org.apache.derby.client.am.DisconnectException: Network protocol exception: DSS chained with same id at end o > f same id chain parse. The connection has been terminated. > at org.apache.derby.client.net.Reply.endOfSameIdChainData(Reply.java:1166) > at org.apache.derby.client.net.NetConnectionReply.readExchangeServerAttributes(NetConnectionReply.java:56) > at org.apache.derby.client.net.NetConnection.readServerAttributesAndKeyExchange(NetConnection.java:794) > at org.apache.derby.client.net.NetConnection.flowServerAttributesAndKeyExchange(NetConnection.java:722) > at org.apache.derby.client.net.NetConnection.flowUSRIDPWDconnect(NetConnection.java:565) > at org.apache.derby.client.net.NetConnection.flowConnect(NetConnection.java:383) > at org.apache.derby.client.net.NetConnection.(NetConnection.java:218) > at org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newNetConnection(ClientJDBCObjectFactoryImpl.java:270 > ) > at org.apache.derby.jdbc.ClientDriver.connect(ClientDriver.java:140) > ... 40 more > FAILURES!!! > Tests run: 6, Failures: 0, Errors: 2 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.