[jira] Commented: (DERBY-1533) ArrayIndexOutOfBoundsException in DDMReader, on a specific data size

2006-08-28 Thread Wiktor Lisowicz (JIRA)
[ 
http://issues.apache.org/jira/browse/DERBY-1533?page=comments#action_12430970 ] 

Wiktor Lisowicz commented on DERBY-1533:


OK, works for me.

 ArrayIndexOutOfBoundsException in DDMReader, on a specific data size
 

 Key: DERBY-1533
 URL: http://issues.apache.org/jira/browse/DERBY-1533
 Project: Derby
  Issue Type: Bug
  Components: Network Server
Affects Versions: 10.1.3.1, 10.1.2.1
 Environment: - Derby Network Server Information 
 Version: CSS10011/10.1.3.1  Build: 417277  DRDA Product Id: CSS10011
 -- listing properties --
 derby.drda.maxThreads=0
 derby.drda.keepAlive=true
 derby.drda.minThreads=0
 derby.drda.portNumber=1527
 derby.drda.logConnections=false
 derby.drda.timeSlice=0
 derby.drda.startNetworkServer=false
 derby.drda.host=localhost
 derby.drda.traceAll=false
 -- Java Information --
 Java Version:1.4.2_08
 Java Vendor: Sun Microsystems Inc.
 OS name: Windows XP
 OS architecture: x86
 OS version:  5.1
 java.specification.name: Java Platform API Specification
 java.specification.version: 1.4
 - Derby Information 
 JRE - JDBC: J2SE 1.4.2 - JDBC 3.0
 [C:\dev\derby\lib\derby.jar] 10.1.3.1 - (417277)
 [C:\dev\derby\lib\derbytools.jar] 10.1.3.1 - (417277)
 [C:\dev\derby\lib\derbynet.jar] 10.1.3.1 - (417277)
 --
Reporter: Wiktor Lisowicz
 Assigned To: Bryan Pendleton
 Fix For: 10.2.1.0

 Attachments: ddmreader1.diff, DerbyTest.java, DerbyTest2.java, 
 notes.html, withTests.diff


 As far as I know, this bug is not related to DERBY-428 bug.
 I got this bug both on 10.1.3.1 and 10.1.2.1 - an 
 ArrayIndexOutOfBoundsException in DDMReader (in Network Server).
 To reproduce the bug:
 1. Compile the attached DerbyTest.java
 2. Start the Network Server (startNetworkServer.bat under Windows)
 3. Run: java DerbyTest
 On client side you get:
 org.apache.derby.client.am.DisconnectException: The DDM object is not 
 supported.  Unsupported DDM object code point: 0x0
 at 
 org.apache.derby.client.net.NetConnectionReply.doObjnsprmSemantics(Unknown 
 Source)
 at 
 org.apache.derby.client.net.NetConnectionReply.parseCommonError(Unknown 
 Source)
 at 
 org.apache.derby.client.net.NetStatementReply.parseExecuteError(Unknown 
 Source)
 at 
 org.apache.derby.client.net.NetStatementReply.parseEXCSQLSTTreply(Unknown 
 Source)
 at org.apache.derby.client.net.NetStatementReply.readExecute(Unknown 
 Source)
 at org.apache.derby.client.net.StatementReply.readExecute(Unknown 
 Source)
 at 
 org.apache.derby.client.net.NetPreparedStatement.readExecute_(Unknown Source)
 at org.apache.derby.client.am.PreparedStatement.readExecute(Unknown 
 Source)
 at org.apache.derby.client.am.PreparedStatement.flowExecute(Unknown 
 Source)
 at org.apache.derby.client.am.PreparedStatement.executeX(Unknown 
 Source)
 at org.apache.derby.client.am.PreparedStatement.execute(Unknown 
 Source)
 at DerbyTest.main(DerbyTest.java:479)
 On server side you get:
 java.lang.ArrayIndexOutOfBoundsException
 at java.lang.System.arraycopy(Native Method)
 at org.apache.derby.impl.drda.DDMReader.compressBLayerData(Unknown 
 Source)
 at 
 org.apache.derby.impl.drda.DDMReader.ensureBLayerDataInBuffer(Unknown Source)
 at org.apache.derby.impl.drda.DDMReader.readNetworkShort(Unknown 
 Source)
 at org.apache.derby.impl.drda.DDMReader.readLDStringData(Unknown 
 Source)
 at org.apache.derby.impl.drda.DRDAConnThread.readAndSetParams(Unknown 
 Source)
 at org.apache.derby.impl.drda.DRDAConnThread.parseSQLDTA_work(Unknown 
 Source)
 at org.apache.derby.impl.drda.DRDAConnThread.parseSQLDTA(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)
 agentThread[DRDAConnThread_11,5,main]
 null
 java.lang.ArrayIndexOutOfBoundsException
 at java.lang.System.arraycopy(Native Method)
 at org.apache.derby.impl.drda.DDMReader.compressBLayerData(Unknown 
 Source)
 at 
 org.apache.derby.impl.drda.DDMReader.ensureBLayerDataInBuffer(Unknown Source)
 at org.apache.derby.impl.drda.DDMReader.readNetworkShort(Unknown 
 Source)
 at org.apache.derby.impl.drda.DDMReader.readLDStringData(Unknown 
 Source)
 at org.apache.derby.impl.drda.DRDAConnThread.readAndSetParams(Unknown 
 Source

RE: [jira] Resolved: (DERBY-1533) ArrayIndexOutOfBoundsException in DDMReader, on a specific data size

2006-08-28 Thread Wiktor Lisowicz
Hi,

I would like to close the bug, but I'm afraid I don;t have the
privileges, so maybe you could do it yourself?
And I have one question: do you plan any official release, with the fix
of this bug, in the nearest future?

regards,
Wiktor



-Original Message-
From: Bryan Pendleton (JIRA) [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 09, 2006 5:45 PM
To: Wiktor Lisowicz
Subject: [jira] Resolved: (DERBY-1533) ArrayIndexOutOfBoundsException in
DDMReader, on a specific data size

 [ http://issues.apache.org/jira/browse/DERBY-1533?page=all ]

Bryan Pendleton resolved DERBY-1533.


Fix Version/s: 10.2.0.0
   Resolution: Fixed
   Derby Info:   (was: [Patch Available])

Committed the withTests patch to subversion as revision 430077. Cleared
the patch available flag, and marked as resolved in 10.2.

Wiktor, if you could please verify that this problem has been fixed in
your environment, and then close the bug if true, that would be great.


 ArrayIndexOutOfBoundsException in DDMReader, on a specific data size
 

 Key: DERBY-1533
 URL: http://issues.apache.org/jira/browse/DERBY-1533
 Project: Derby
  Issue Type: Bug
  Components: Network Server
Affects Versions: 10.1.2.1, 10.1.3.1
 Environment: - Derby Network Server Information 
 
 Version: CSS10011/10.1.3.1  Build: 417277  DRDA Product Id: CSS10011
 -- listing properties --
 derby.drda.maxThreads=0
 derby.drda.keepAlive=true
 derby.drda.minThreads=0
 derby.drda.portNumber=1527
 derby.drda.logConnections=false
 derby.drda.timeSlice=0
 derby.drda.startNetworkServer=false
 derby.drda.host=localhost
 derby.drda.traceAll=false
 -- Java Information --
 Java Version:1.4.2_08
 Java Vendor: Sun Microsystems Inc.
 OS name: Windows XP
 OS architecture: x86
 OS version:  5.1
 java.specification.name: Java Platform API Specification
 java.specification.version: 1.4
 - Derby Information 
 JRE - JDBC: J2SE 1.4.2 - JDBC 3.0
 [C:\dev\derby\lib\derby.jar] 10.1.3.1 - (417277) 
 [C:\dev\derby\lib\derbytools.jar] 10.1.3.1 - (417277) 
 [C:\dev\derby\lib\derbynet.jar] 10.1.3.1 - (417277)
 --
Reporter: Wiktor Lisowicz
 Assigned To: Bryan Pendleton
 Fix For: 10.2.0.0

 Attachments: ddmreader1.diff, DerbyTest.java, DerbyTest2.java,

 notes.html, withTests.diff


 As far as I know, this bug is not related to DERBY-428 bug.
 I got this bug both on 10.1.3.1 and 10.1.2.1 - an
ArrayIndexOutOfBoundsException in DDMReader (in Network Server).
 To reproduce the bug:
 1. Compile the attached DerbyTest.java 2. Start the Network Server 
 (startNetworkServer.bat under Windows) 3. Run: java DerbyTest On 
 client side you get:
 org.apache.derby.client.am.DisconnectException: The DDM object is not
supported.  Unsupported DDM object code point: 0x0
 at
org.apache.derby.client.net.NetConnectionReply.doObjnsprmSemantics(Unkno
wn Source)
 at
org.apache.derby.client.net.NetConnectionReply.parseCommonError(Unknown
Source)
 at
org.apache.derby.client.net.NetStatementReply.parseExecuteError(Unknown
Source)
 at
org.apache.derby.client.net.NetStatementReply.parseEXCSQLSTTreply(Unknow
n Source)
 at
org.apache.derby.client.net.NetStatementReply.readExecute(Unknown
Source)
 at
org.apache.derby.client.net.StatementReply.readExecute(Unknown Source)
 at
org.apache.derby.client.net.NetPreparedStatement.readExecute_(Unknown
Source)
 at
org.apache.derby.client.am.PreparedStatement.readExecute(Unknown Source)
 at
org.apache.derby.client.am.PreparedStatement.flowExecute(Unknown Source)
 at
org.apache.derby.client.am.PreparedStatement.executeX(Unknown Source)
 at
org.apache.derby.client.am.PreparedStatement.execute(Unknown Source)
 at DerbyTest.main(DerbyTest.java:479)
 On server side you get:
 java.lang.ArrayIndexOutOfBoundsException
 at java.lang.System.arraycopy(Native Method)
 at
org.apache.derby.impl.drda.DDMReader.compressBLayerData(Unknown Source)
 at
org.apache.derby.impl.drda.DDMReader.ensureBLayerDataInBuffer(Unknown
Source)
 at
org.apache.derby.impl.drda.DDMReader.readNetworkShort(Unknown Source)
 at
org.apache.derby.impl.drda.DDMReader.readLDStringData(Unknown Source)
 at
org.apache.derby.impl.drda.DRDAConnThread.readAndSetParams(Unknown
Source)
 at
org.apache.derby.impl.drda.DRDAConnThread.parseSQLDTA_work(Unknown
Source)
 at
org.apache.derby.impl.drda.DRDAConnThread.parseSQLDTA(Unknown Source)
 at
org.apache.derby.impl.drda.DRDAConnThread.parseEXCSQLSTTobjects(Unknown
Source)
 at
org.apache.derby.impl.drda.DRDAConnThread.parseEXCSQLSTT(Unknown Source

RE: [jira] Resolved: (DERBY-1533) ArrayIndexOutOfBoundsException in DDMReader, on a specific data size

2006-08-22 Thread Wiktor Lisowicz
Hi,

Hmm, I don't really know from where to download the 10.2.0.0 version (or
10.2.1.0 version) of derby...
Should I get the sources and compile them?

Regards,
Wiktor 

-Original Message-
From: Bryan Pendleton (JIRA) [mailto:[EMAIL PROTECTED] 
Sent: 9 sierpnia 2006 17:45
To: Wiktor Lisowicz
Subject: [jira] Resolved: (DERBY-1533) ArrayIndexOutOfBoundsException in
DDMReader, on a specific data size

 [ http://issues.apache.org/jira/browse/DERBY-1533?page=all ]

Bryan Pendleton resolved DERBY-1533.


Fix Version/s: 10.2.0.0
   Resolution: Fixed
   Derby Info:   (was: [Patch Available])

Committed the withTests patch to subversion as revision 430077. Cleared
the patch available flag, and marked as resolved in 10.2.

Wiktor, if you could please verify that this problem has been fixed in
your environment, and then close the bug if true, that would be great.


 ArrayIndexOutOfBoundsException in DDMReader, on a specific data size
 

 Key: DERBY-1533
 URL: http://issues.apache.org/jira/browse/DERBY-1533
 Project: Derby
  Issue Type: Bug
  Components: Network Server
Affects Versions: 10.1.2.1, 10.1.3.1
 Environment: - Derby Network Server Information 
 
 Version: CSS10011/10.1.3.1  Build: 417277  DRDA Product Id: CSS10011
 -- listing properties --
 derby.drda.maxThreads=0
 derby.drda.keepAlive=true
 derby.drda.minThreads=0
 derby.drda.portNumber=1527
 derby.drda.logConnections=false
 derby.drda.timeSlice=0
 derby.drda.startNetworkServer=false
 derby.drda.host=localhost
 derby.drda.traceAll=false
 -- Java Information --
 Java Version:1.4.2_08
 Java Vendor: Sun Microsystems Inc.
 OS name: Windows XP
 OS architecture: x86
 OS version:  5.1
 java.specification.name: Java Platform API Specification
 java.specification.version: 1.4
 - Derby Information 
 JRE - JDBC: J2SE 1.4.2 - JDBC 3.0
 [C:\dev\derby\lib\derby.jar] 10.1.3.1 - (417277) 
 [C:\dev\derby\lib\derbytools.jar] 10.1.3.1 - (417277) 
 [C:\dev\derby\lib\derbynet.jar] 10.1.3.1 - (417277)
 --
Reporter: Wiktor Lisowicz
 Assigned To: Bryan Pendleton
 Fix For: 10.2.0.0

 Attachments: ddmreader1.diff, DerbyTest.java, DerbyTest2.java,

 notes.html, withTests.diff


 As far as I know, this bug is not related to DERBY-428 bug.
 I got this bug both on 10.1.3.1 and 10.1.2.1 - an
ArrayIndexOutOfBoundsException in DDMReader (in Network Server).
 To reproduce the bug:
 1. Compile the attached DerbyTest.java 2. Start the Network Server 
 (startNetworkServer.bat under Windows) 3. Run: java DerbyTest On 
 client side you get:
 org.apache.derby.client.am.DisconnectException: The DDM object is not
supported.  Unsupported DDM object code point: 0x0
 at
org.apache.derby.client.net.NetConnectionReply.doObjnsprmSemantics(Unkno
wn Source)
 at
org.apache.derby.client.net.NetConnectionReply.parseCommonError(Unknown
Source)
 at
org.apache.derby.client.net.NetStatementReply.parseExecuteError(Unknown
Source)
 at
org.apache.derby.client.net.NetStatementReply.parseEXCSQLSTTreply(Unknow
n Source)
 at
org.apache.derby.client.net.NetStatementReply.readExecute(Unknown
Source)
 at
org.apache.derby.client.net.StatementReply.readExecute(Unknown Source)
 at
org.apache.derby.client.net.NetPreparedStatement.readExecute_(Unknown
Source)
 at
org.apache.derby.client.am.PreparedStatement.readExecute(Unknown Source)
 at
org.apache.derby.client.am.PreparedStatement.flowExecute(Unknown Source)
 at
org.apache.derby.client.am.PreparedStatement.executeX(Unknown Source)
 at
org.apache.derby.client.am.PreparedStatement.execute(Unknown Source)
 at DerbyTest.main(DerbyTest.java:479)
 On server side you get:
 java.lang.ArrayIndexOutOfBoundsException
 at java.lang.System.arraycopy(Native Method)
 at
org.apache.derby.impl.drda.DDMReader.compressBLayerData(Unknown Source)
 at
org.apache.derby.impl.drda.DDMReader.ensureBLayerDataInBuffer(Unknown
Source)
 at
org.apache.derby.impl.drda.DDMReader.readNetworkShort(Unknown Source)
 at
org.apache.derby.impl.drda.DDMReader.readLDStringData(Unknown Source)
 at
org.apache.derby.impl.drda.DRDAConnThread.readAndSetParams(Unknown
Source)
 at
org.apache.derby.impl.drda.DRDAConnThread.parseSQLDTA_work(Unknown
Source)
 at
org.apache.derby.impl.drda.DRDAConnThread.parseSQLDTA(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

[jira] Created: (DERBY-1533) ArrayIndexOutOfBoundsException in DDMReader, on a specific data size

2006-07-19 Thread Wiktor Lisowicz (JIRA)
ArrayIndexOutOfBoundsException in DDMReader, on a specific data size


 Key: DERBY-1533
 URL: http://issues.apache.org/jira/browse/DERBY-1533
 Project: Derby
  Issue Type: Bug
  Components: Network Server
Affects Versions: 10.1.3.1, 10.1.2.1
 Environment: - Derby Network Server Information 
Version: CSS10011/10.1.3.1  Build: 417277  DRDA Product Id: CSS10011
-- listing properties --
derby.drda.maxThreads=0
derby.drda.keepAlive=true
derby.drda.minThreads=0
derby.drda.portNumber=1527
derby.drda.logConnections=false
derby.drda.timeSlice=0
derby.drda.startNetworkServer=false
derby.drda.host=localhost
derby.drda.traceAll=false
-- Java Information --
Java Version:1.4.2_08
Java Vendor: Sun Microsystems Inc.
OS name: Windows XP
OS architecture: x86
OS version:  5.1
java.specification.name: Java Platform API Specification
java.specification.version: 1.4
- Derby Information 
JRE - JDBC: J2SE 1.4.2 - JDBC 3.0
[C:\dev\derby\lib\derby.jar] 10.1.3.1 - (417277)
[C:\dev\derby\lib\derbytools.jar] 10.1.3.1 - (417277)
[C:\dev\derby\lib\derbynet.jar] 10.1.3.1 - (417277)
--
Reporter: Wiktor Lisowicz


As far as I know, this bug is not related to DERBY-428 bug.
I got this bug both on 10.1.3.1 and 10.1.2.1 - an 
ArrayIndexOutOfBoundsException in DDMReader (in Network Server).

To reproduce the bug:
1. Compile the attached DerbyTest.java
2. Start the Network Server (startNetworkServer.bat under Windows)
3. Run: java DerbyTest

On client side you get:
org.apache.derby.client.am.DisconnectException: The DDM object is not 
supported.  Unsupported DDM object code point: 0x0
at 
org.apache.derby.client.net.NetConnectionReply.doObjnsprmSemantics(Unknown 
Source)
at 
org.apache.derby.client.net.NetConnectionReply.parseCommonError(Unknown Source)
at 
org.apache.derby.client.net.NetStatementReply.parseExecuteError(Unknown Source)
at 
org.apache.derby.client.net.NetStatementReply.parseEXCSQLSTTreply(Unknown 
Source)
at org.apache.derby.client.net.NetStatementReply.readExecute(Unknown 
Source)
at org.apache.derby.client.net.StatementReply.readExecute(Unknown 
Source)
at 
org.apache.derby.client.net.NetPreparedStatement.readExecute_(Unknown Source)
at org.apache.derby.client.am.PreparedStatement.readExecute(Unknown 
Source)
at org.apache.derby.client.am.PreparedStatement.flowExecute(Unknown 
Source)
at org.apache.derby.client.am.PreparedStatement.executeX(Unknown Source)
at org.apache.derby.client.am.PreparedStatement.execute(Unknown Source)
at DerbyTest.main(DerbyTest.java:479)

On server side you get:
java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at org.apache.derby.impl.drda.DDMReader.compressBLayerData(Unknown 
Source)
at 
org.apache.derby.impl.drda.DDMReader.ensureBLayerDataInBuffer(Unknown Source)
at org.apache.derby.impl.drda.DDMReader.readNetworkShort(Unknown Source)
at org.apache.derby.impl.drda.DDMReader.readLDStringData(Unknown Source)
at org.apache.derby.impl.drda.DRDAConnThread.readAndSetParams(Unknown 
Source)
at org.apache.derby.impl.drda.DRDAConnThread.parseSQLDTA_work(Unknown 
Source)
at org.apache.derby.impl.drda.DRDAConnThread.parseSQLDTA(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)
agentThread[DRDAConnThread_11,5,main]
null
java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at org.apache.derby.impl.drda.DDMReader.compressBLayerData(Unknown 
Source)
at 
org.apache.derby.impl.drda.DDMReader.ensureBLayerDataInBuffer(Unknown Source)
at org.apache.derby.impl.drda.DDMReader.readNetworkShort(Unknown Source)
at org.apache.derby.impl.drda.DDMReader.readLDStringData(Unknown Source)
at org.apache.derby.impl.drda.DRDAConnThread.readAndSetParams(Unknown 
Source)
at org.apache.derby.impl.drda.DRDAConnThread.parseSQLDTA_work(Unknown 
Source)
at org.apache.derby.impl.drda.DRDAConnThread.parseSQLDTA(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

[jira] Updated: (DERBY-1533) ArrayIndexOutOfBoundsException in DDMReader, on a specific data size

2006-07-19 Thread Wiktor Lisowicz (JIRA)
 [ http://issues.apache.org/jira/browse/DERBY-1533?page=all ]

Wiktor Lisowicz updated DERBY-1533:
---

Attachment: DerbyTest.java

A test to get the reported error

 ArrayIndexOutOfBoundsException in DDMReader, on a specific data size
 

 Key: DERBY-1533
 URL: http://issues.apache.org/jira/browse/DERBY-1533
 Project: Derby
  Issue Type: Bug
  Components: Network Server
Affects Versions: 10.1.3.1, 10.1.2.1
 Environment: - Derby Network Server Information 
 Version: CSS10011/10.1.3.1  Build: 417277  DRDA Product Id: CSS10011
 -- listing properties --
 derby.drda.maxThreads=0
 derby.drda.keepAlive=true
 derby.drda.minThreads=0
 derby.drda.portNumber=1527
 derby.drda.logConnections=false
 derby.drda.timeSlice=0
 derby.drda.startNetworkServer=false
 derby.drda.host=localhost
 derby.drda.traceAll=false
 -- Java Information --
 Java Version:1.4.2_08
 Java Vendor: Sun Microsystems Inc.
 OS name: Windows XP
 OS architecture: x86
 OS version:  5.1
 java.specification.name: Java Platform API Specification
 java.specification.version: 1.4
 - Derby Information 
 JRE - JDBC: J2SE 1.4.2 - JDBC 3.0
 [C:\dev\derby\lib\derby.jar] 10.1.3.1 - (417277)
 [C:\dev\derby\lib\derbytools.jar] 10.1.3.1 - (417277)
 [C:\dev\derby\lib\derbynet.jar] 10.1.3.1 - (417277)
 --
Reporter: Wiktor Lisowicz
 Attachments: DerbyTest.java


 As far as I know, this bug is not related to DERBY-428 bug.
 I got this bug both on 10.1.3.1 and 10.1.2.1 - an 
 ArrayIndexOutOfBoundsException in DDMReader (in Network Server).
 To reproduce the bug:
 1. Compile the attached DerbyTest.java
 2. Start the Network Server (startNetworkServer.bat under Windows)
 3. Run: java DerbyTest
 On client side you get:
 org.apache.derby.client.am.DisconnectException: The DDM object is not 
 supported.  Unsupported DDM object code point: 0x0
 at 
 org.apache.derby.client.net.NetConnectionReply.doObjnsprmSemantics(Unknown 
 Source)
 at 
 org.apache.derby.client.net.NetConnectionReply.parseCommonError(Unknown 
 Source)
 at 
 org.apache.derby.client.net.NetStatementReply.parseExecuteError(Unknown 
 Source)
 at 
 org.apache.derby.client.net.NetStatementReply.parseEXCSQLSTTreply(Unknown 
 Source)
 at org.apache.derby.client.net.NetStatementReply.readExecute(Unknown 
 Source)
 at org.apache.derby.client.net.StatementReply.readExecute(Unknown 
 Source)
 at 
 org.apache.derby.client.net.NetPreparedStatement.readExecute_(Unknown Source)
 at org.apache.derby.client.am.PreparedStatement.readExecute(Unknown 
 Source)
 at org.apache.derby.client.am.PreparedStatement.flowExecute(Unknown 
 Source)
 at org.apache.derby.client.am.PreparedStatement.executeX(Unknown 
 Source)
 at org.apache.derby.client.am.PreparedStatement.execute(Unknown 
 Source)
 at DerbyTest.main(DerbyTest.java:479)
 On server side you get:
 java.lang.ArrayIndexOutOfBoundsException
 at java.lang.System.arraycopy(Native Method)
 at org.apache.derby.impl.drda.DDMReader.compressBLayerData(Unknown 
 Source)
 at 
 org.apache.derby.impl.drda.DDMReader.ensureBLayerDataInBuffer(Unknown Source)
 at org.apache.derby.impl.drda.DDMReader.readNetworkShort(Unknown 
 Source)
 at org.apache.derby.impl.drda.DDMReader.readLDStringData(Unknown 
 Source)
 at org.apache.derby.impl.drda.DRDAConnThread.readAndSetParams(Unknown 
 Source)
 at org.apache.derby.impl.drda.DRDAConnThread.parseSQLDTA_work(Unknown 
 Source)
 at org.apache.derby.impl.drda.DRDAConnThread.parseSQLDTA(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)
 agentThread[DRDAConnThread_11,5,main]
 null
 java.lang.ArrayIndexOutOfBoundsException
 at java.lang.System.arraycopy(Native Method)
 at org.apache.derby.impl.drda.DDMReader.compressBLayerData(Unknown 
 Source)
 at 
 org.apache.derby.impl.drda.DDMReader.ensureBLayerDataInBuffer(Unknown Source)
 at org.apache.derby.impl.drda.DDMReader.readNetworkShort(Unknown 
 Source)
 at org.apache.derby.impl.drda.DDMReader.readLDStringData(Unknown 
 Source)
 at org.apache.derby.impl.drda.DRDAConnThread.readAndSetParams(Unknown 
 Source)
 at org.apache.derby.impl.drda.DRDAConnThread.parseSQLDTA_work(Unknown 
 Source)
 at org.apache.derby.impl.drda.DRDAConnThread.parseSQLDTA(Unknown

[jira] Commented: (DERBY-1533) ArrayIndexOutOfBoundsException in DDMReader, on a specific data size

2006-07-19 Thread Wiktor Lisowicz (JIRA)
[ 
http://issues.apache.org/jira/browse/DERBY-1533?page=comments#action_12422063 ] 

Wiktor Lisowicz commented on DERBY-1533:


I guess the problem lies around the private byte[] buffer
in the class org.apache.derby.impl.drda.DDMReader and has probably something 
to do with the DEFAULT_BUFFER_SIZE = 32767.

The entered data (with DerbyTest.java) is about 32K.


 ArrayIndexOutOfBoundsException in DDMReader, on a specific data size
 

 Key: DERBY-1533
 URL: http://issues.apache.org/jira/browse/DERBY-1533
 Project: Derby
  Issue Type: Bug
  Components: Network Server
Affects Versions: 10.1.3.1, 10.1.2.1
 Environment: - Derby Network Server Information 
 Version: CSS10011/10.1.3.1  Build: 417277  DRDA Product Id: CSS10011
 -- listing properties --
 derby.drda.maxThreads=0
 derby.drda.keepAlive=true
 derby.drda.minThreads=0
 derby.drda.portNumber=1527
 derby.drda.logConnections=false
 derby.drda.timeSlice=0
 derby.drda.startNetworkServer=false
 derby.drda.host=localhost
 derby.drda.traceAll=false
 -- Java Information --
 Java Version:1.4.2_08
 Java Vendor: Sun Microsystems Inc.
 OS name: Windows XP
 OS architecture: x86
 OS version:  5.1
 java.specification.name: Java Platform API Specification
 java.specification.version: 1.4
 - Derby Information 
 JRE - JDBC: J2SE 1.4.2 - JDBC 3.0
 [C:\dev\derby\lib\derby.jar] 10.1.3.1 - (417277)
 [C:\dev\derby\lib\derbytools.jar] 10.1.3.1 - (417277)
 [C:\dev\derby\lib\derbynet.jar] 10.1.3.1 - (417277)
 --
Reporter: Wiktor Lisowicz
 Attachments: DerbyTest.java


 As far as I know, this bug is not related to DERBY-428 bug.
 I got this bug both on 10.1.3.1 and 10.1.2.1 - an 
 ArrayIndexOutOfBoundsException in DDMReader (in Network Server).
 To reproduce the bug:
 1. Compile the attached DerbyTest.java
 2. Start the Network Server (startNetworkServer.bat under Windows)
 3. Run: java DerbyTest
 On client side you get:
 org.apache.derby.client.am.DisconnectException: The DDM object is not 
 supported.  Unsupported DDM object code point: 0x0
 at 
 org.apache.derby.client.net.NetConnectionReply.doObjnsprmSemantics(Unknown 
 Source)
 at 
 org.apache.derby.client.net.NetConnectionReply.parseCommonError(Unknown 
 Source)
 at 
 org.apache.derby.client.net.NetStatementReply.parseExecuteError(Unknown 
 Source)
 at 
 org.apache.derby.client.net.NetStatementReply.parseEXCSQLSTTreply(Unknown 
 Source)
 at org.apache.derby.client.net.NetStatementReply.readExecute(Unknown 
 Source)
 at org.apache.derby.client.net.StatementReply.readExecute(Unknown 
 Source)
 at 
 org.apache.derby.client.net.NetPreparedStatement.readExecute_(Unknown Source)
 at org.apache.derby.client.am.PreparedStatement.readExecute(Unknown 
 Source)
 at org.apache.derby.client.am.PreparedStatement.flowExecute(Unknown 
 Source)
 at org.apache.derby.client.am.PreparedStatement.executeX(Unknown 
 Source)
 at org.apache.derby.client.am.PreparedStatement.execute(Unknown 
 Source)
 at DerbyTest.main(DerbyTest.java:479)
 On server side you get:
 java.lang.ArrayIndexOutOfBoundsException
 at java.lang.System.arraycopy(Native Method)
 at org.apache.derby.impl.drda.DDMReader.compressBLayerData(Unknown 
 Source)
 at 
 org.apache.derby.impl.drda.DDMReader.ensureBLayerDataInBuffer(Unknown Source)
 at org.apache.derby.impl.drda.DDMReader.readNetworkShort(Unknown 
 Source)
 at org.apache.derby.impl.drda.DDMReader.readLDStringData(Unknown 
 Source)
 at org.apache.derby.impl.drda.DRDAConnThread.readAndSetParams(Unknown 
 Source)
 at org.apache.derby.impl.drda.DRDAConnThread.parseSQLDTA_work(Unknown 
 Source)
 at org.apache.derby.impl.drda.DRDAConnThread.parseSQLDTA(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)
 agentThread[DRDAConnThread_11,5,main]
 null
 java.lang.ArrayIndexOutOfBoundsException
 at java.lang.System.arraycopy(Native Method)
 at org.apache.derby.impl.drda.DDMReader.compressBLayerData(Unknown 
 Source)
 at 
 org.apache.derby.impl.drda.DDMReader.ensureBLayerDataInBuffer(Unknown Source)
 at org.apache.derby.impl.drda.DDMReader.readNetworkShort(Unknown 
 Source)
 at org.apache.derby.impl.drda.DDMReader.readLDStringData(Unknown 
 Source