[ 
https://issues.apache.org/jira/browse/DERBY-5317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kathey Marsden updated DERBY-5317:
----------------------------------

    Attachment: Repro5317.java

Here is a short running reproduction for the issue.
It is just an excerpt from LobLimits.java and uses just 2MB Clobs, so the 
problem is not associated with large data but rather the case that is being 
tested, which is described as:

  /*
    * Basically this test will do an update using setClob api -
    *  select row from clobtbl and then update a row in clobtbl 
    * and verify updated data in clobtbl 
    */    



Here is the output. The server is started by the program and  output goes to 
the console so is here as well:
$java Repro5317

Thu Jul 07 11:39:02 PDT 2011 : Apache Derby Network Server - 10.9.0.0 alpha - (1
143485) started and ready to accept connections on port 1527
========================================
START insert 2M clob  -insertClob of size = 2097152
Insert Clob (2097152) rows= 2 = 3188
Rows inserted with clob of size (2097152) = 2
========================================
========================================
START ClobTest #4 - select and then update clob of size= 2097152 - Uses setClob
api
Thu Jul 07 11:39:11 PDT 2011 : Execution failed because of a Distributed Protoco
l Error:  DRDA_Proto_SYNTAXRM; CODPNT arg  = 200d; Error Code Value = 1d. Plaint
ext connection attempt from an SSL enabled client?
org.apache.derby.impl.drda.DRDAProtocolException: 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?
        at org.apache.derby.impl.drda.DRDAConnThread.throwSyntaxrm(DRDAConnThrea
d.java:517)
        at org.apache.derby.impl.drda.DRDAConnThread.invalidCodePoint(DRDAConnTh
read.java:8205)
        at org.apache.derby.impl.drda.DRDAConnThread.parseEXCSQLSTTobjects(DRDAC
onnThread.java:4324)
        at org.apache.derby.impl.drda.DRDAConnThread.parseEXCSQLSTT(DRDAConnThre
ad.java:4133)
        at org.apache.derby.impl.drda.DRDAConnThread.processCommands(DRDAConnThr
ead.java:1021)
        at org.apache.derby.impl.drda.DRDAConnThread.run(DRDAConnThread.java:294
)
Thu Jul 07 11:39:11 PDT 2011 : Execution failed because of a Distributed Protoco
l Error:  DRDA_Proto_SYNTAXRM; CODPNT arg  = 200d; Error Code Value = 1d. Plaint
ext connection attempt from an SSL enabled client?
org.apache.derby.impl.drda.DRDAProtocolException: 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?
        at org.apache.derby.impl.drda.DRDAConnThread.throwSyntaxrm(DRDAConnThrea
d.java:517)
        at org.apache.derby.impl.drda.DRDAConnThread.invalidCodePoint(DRDAConnTh
read.java:8205)
        at org.apache.derby.impl.drda.DRDAConnThread.parseEXCSQLSTTobjects(DRDAC
onnThread.java:4324)
        at org.apache.derby.impl.drda.DRDAConnThread.parseEXCSQLSTT(DRDAConnThre
ad.java:4133)
        at org.apache.derby.impl.drda.DRDAConnThread.processCommands(DRDAConnThr
ead.java:1021)
        at org.apache.derby.impl.drda.DRDAConnThread.run(DRDAConnThread.java:294
)
Exception in thread "main" java.lang.NullPointerException
        at org.apache.derby.client.net.Request.sendBytes(Request.java:1212)
        at org.apache.derby.client.net.Request.flushScalarStreamSegment(Request.
java:604)
        at org.apache.derby.client.net.Request.padScalarStreamForError(Request.j
ava:660)
        at org.apache.derby.client.net.Request.writePlainScalarStream(Request.ja
va:323)
        at org.apache.derby.client.net.Request.writeScalarStream(Request.java:24
7)
        at org.apache.derby.client.net.Request.writeScalarStream(Request.java:50
0)
        at org.apache.derby.client.net.NetStatementRequest.buildEXTDTA(NetStatem
entRequest.java:1043)
        at org.apache.derby.client.net.NetStatementRequest.writeExecute(NetState
mentRequest.java:152)
        at org.apache.derby.client.net.NetPreparedStatement.writeExecute_(NetPre
paredStatement.java:174)
        at org.apache.derby.client.am.PreparedStatement.writeExecute(PreparedSta
tement.java:1800)
        at org.apache.derby.client.am.PreparedStatement.flowExecute(PreparedStat
ement.java:2030)
        at org.apache.derby.client.am.PreparedStatement.executeUpdateX(PreparedS
tatement.java:417)
        at org.apache.derby.client.am.PreparedStatement.executeUpdate(PreparedSt
atement.java:403)
        at Repro5317.selectUpdateClob(Repro5317.java:163)
        at Repro5317.main(Repro5317.java:35)


I ran with IBM 1.6.

java version "1.6.0"
Java(TM) SE Runtime Environment (build pwi3260sr9fp1-20110208_03(SR9 FP1))
IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Windows XP x86-32 jvmwi3260sr9-201102
03_74623 (JIT enabled, AOT enabled)
J9VM - 20110203_074623
JIT  - r9_20101028_17488ifx3
GC   - 20101027_AA)
JCL  - 20110203_01


> largeData/LobLimits.java  fails with 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.0.0
>            Reporter: Kathey Marsden
>         Attachments: Repro5317.java
>
>
> 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 is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to