Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B13BA10811 for ; Mon, 3 Mar 2014 17:29:23 +0000 (UTC) Received: (qmail 38426 invoked by uid 500); 3 Mar 2014 17:29:22 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 38389 invoked by uid 500); 3 Mar 2014 17:29:21 -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 38379 invoked by uid 99); 3 Mar 2014 17:29:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Mar 2014 17:29:21 +0000 Date: Mon, 3 Mar 2014 17:29:21 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: derby-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DERBY-5317) NullPointerException in org.apache.derby.client.net.Request.sendBytes() with client MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-5317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13918292#comment-13918292 ] ASF subversion and git services commented on DERBY-5317: -------------------------------------------------------- Commit 1573624 from mikem@apache.org in branch 'code/branches/10.10' [ https://svn.apache.org/r1573624 ] DERBY-5317: Detect attempts to reuse a connection that in the middle of sending a request to the server. Use this to provide a better error message and avoid the NPE. DERBY-6386 - Errors in jdbc4.LobStreamTest if derbyclient.jar is first in the classpath backing out change #1573334 which caused problems in nightly 10.10 test runs. > NullPointerException in org.apache.derby.client.net.Request.sendBytes() with client > ------------------------------------------------------------------------------------- > > Key: DERBY-5317 > URL: https://issues.apache.org/jira/browse/DERBY-5317 > Project: Derby > Issue Type: Bug > Components: Network Client > Affects Versions: 10.9.1.0 > Reporter: Kathey Marsden > Assignee: Mike Matrigali > Labels: derby_triage10_11 > Fix For: 10.11.0.0 > > Attachments: Repro5317.java, Repro5317.java, derby-5317a.diff, derby-5317b.diff, derby-5317c.diff, derby-5317d.diff, traces_10_2and10_9.zip > > > Investigating DERBY-5308, I found that the LobLimits.java test run with client fails with a NullPointerException. > > END setup > ======================================== > START ClobTest #1 -insertClob of size = 2147483647 > Rows inserted with clob of size (2147483647) = 2 > ======================================== > ======================================== > START ClobTest #2 - SELECT CLOB of size = 2147483647 > Matched rows selected with clob of size(2147483647) =1 > ======================================== > ======================================== > START ClobTest #3 - SELECT CLOB of size = 2147483647 > Matched rows selected with clob of size(2147483647) =1 > ======================================== > ======================================== > START ClobTest #4 - select and then update clob of size= 2147483647 - Uses setClob api > FAIL -- Unexpected exception: > java.lang.NullPointerException > at org.apache.derby.client.net.Request.sendBytes(Unknown Source) > at org.apache.derby.client.net.Request.flushScalarStreamSegment(Unknown Source) > at org.apache.derby.client.net.Request.padScalarStreamForError(Unknown Source) > at org.apache.derby.client.net.Request.writePlainScalarStream(Unknown Source) > at org.apache.derby.client.net.Request.writeScalarStream(Unknown Source) > at org.apache.derby.client.net.Request.writeScalarStream(Unknown Source) > at org.apache.derby.client.net.NetStatementRequest.buildEXTDTA(Unknown Source) > at org.apache.derby.client.net.NetStatementRequest.writeExecute(Unknown Source) > at org.apache.derby.client.net.NetPreparedStatement.writeExecute_(Unknown Source) > at org.apache.derby.client.am.PreparedStatement.writeExecute(Unknown Source) > at org.apache.derby.client.am.PreparedStatement.flowExecute(Unknown Source) > at org.apache.derby.client.am.PreparedStatement.executeUpdateX(Unknown Source) > at org.apache.derby.client.am.PreparedStatement.executeUpdate(Unknown Source) > at org.apache.derbyTesting.functionTests.tests.largedata.LobLimits.selectUpdateClob(LobLimits.java:115 > 7) > at org.apache.derbyTesting.functionTests.tests.largedata.LobLimits.clobTests(LobLimits.java:313) > at org.apache.derbyTesting.functionTests.tests.largedata.LobLimits.runTests(LobLimits.java:177) > at org.apache.derbyTesting.functionTests.tests.largedata.LobLimits.main(LobLimits.java:151) > ======================================== > START ClobTest #12.1 -insertClob of size = 104857600 > NEGATIVE TEST - Expected Exception: > EXPECTED SQL Exception: (08003) No current connection. > ======================================== > START ClobTest #12.2 - SELECT CLOB of size = 104857600 > FAIL -- Unexpected exception: > java.sql.SQLNonTransientConnectionException: No current connection. > at org.apache.derby.client.am.SQLExceptionFactory40.getSQLException(Unknown Source) > at org.apache.derby.client.am.SqlException.getSQLException(Unknown Source) > at org.apache.derby.client.am.PreparedStatement.setInt(Unknown Source) > at org.apache.derbyTesting.functionTests.tests.largedata.LobLimits.selectClob(LobLimits.java:1007) > In the derby.log I see > derby.system.home=/local0/kmarsden/repro/largeData/testtrunkdnc/DerbyNetClient/LobLimits > Database Class Loader started - derby.database.classpath='' > Tue Jul 05 17:50:01 PDT 2011 Thread[DRDAConnThread_11,5,main] (DATABASE = wombat), (DRDAID = .-580681567053183 > 269{2}), Execution failed because of a Distributed Protocol Error: DRDA_Proto_SYNTAXRM; CODPNT arg = 200d; E > rror Code Value = 1d. Plaintext connection attempt from an SSL enabled client? > Tue Jul 05 17:50:01 PDT 2011 : Execution failed because of a Distributed Protocol Error: DRDA_Proto_SYNTAXRM; > CODPNT arg = 200d; Error Code Value = 1d. Plaintext connection attempt from an SSL enabled client? > org.apache.derby.impl.drda.DRDAProtocolException: Execution failed because of a Distributed Protocol Error: D > RDA_Proto_SYNTAXRM; CODPNT arg = 200d; Error Code Value = 1d. Plaintext connection attempt from an SSL enable > d client? > at org.apache.derby.impl.drda.DRDAConnThread.throwSyntaxrm(Unknown Source) > at org.apache.derby.impl.drda.DRDAConnThread.invalidCodePoint(Unknown Source) > at org.apache.derby.impl.drda.DRDAConnThread.parseEXCSQLSTTobjects(Unknown Source) > at org.apache.derby.impl.drda.DRDAConnThread.parseEXCSQLSTT(Unknown Source) > at org.apache.derby.impl.drda.DRDAConnThread.processCommands(Unknown Source) > at org.apache.derby.impl.drda.DRDAConnThread.run(Unknown Source) > Tue Jul 05 17:50:01 PDT 2011 Thread[DRDAConnThread_11,5,main] (DATABASE = wombat), (DRDAID = .-580681567053183 > 269{2}), Execution failed because of a Distributed Protocol Error: DRDA_Proto_SYNTAXRM; CODPNT arg = 200d; E > rror Code Value = 1d. Plaintext connection attempt from an SSL enabled client? > Tue Jul 05 17:50:01 PDT 2011 : Execution failed because of a Distributed Protocol Error: DRDA_Proto_SYNTAXRM; > CODPNT arg = 200d; Error Code Value = 1d. Plaintext connection attempt from an SSL enabled client? > org.apache.derby.impl.drda.DRDAProtocolException: Execution failed because of a Distributed Protocol Error: D > RDA_Proto_SYNTAXRM; CODPNT arg = 200d; Error Code Value = 1d. Plaintext connection attempt from an SSL enable > d client? > at org.apache.derby.impl.drda.DRDAConnThread.throwSyntaxrm(Unknown Source) > at org.apache.derby.impl.drda.DRDAConnThread.invalidCodePoint(Unknown Source) > at org.apache.derby.impl.drda.DRDAConnThread.parseEXCSQLSTTobjects(Unknown Source) > at org.apache.derby.impl.drda.DRDAConnThread.parseEXCSQLSTT(Unknown Source) > at org.apache.derby.impl.drda.DRDAConnThread.processCommands(Unknown Source) > at org.apache.derby.impl.drda.DRDAConnThread.run(Unknown Source) > ---------------------------------------------------------------- > Tue Jul 05 17:50:07 PDT 2011: Shutting down Derby engine > ---------------------------------------------------------------- > Tue Jul 05 17:50:07 PDT 2011: > To run the test, you have to remove largeData from DerbyNetClient.exclude and run > java -Dframework=DerbyNetClient org.apache.derbyTesting.functionTests.harness.RunTest org.apache.derbyTesting.functionTests.tests.lageData.LobLimits. > It took about 3.5 hours to occur. > I will work on a smaller reproduction. > 5,9 36% -- This message was sent by Atlassian JIRA (v6.2#6252)