Derby
  1. Derby
  2. DERBY-1727

Test lang/streams.java fails with ArrayIndexOutOfBoundsException using IBM JDK 1.3.1 SR10

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Invalid
    • Affects Version/s: 10.2.1.6
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Linux SLES 9 and WIndows 2003 Server running IBM 1.3.1 JVM: build cxia32131-20060605 (SR10)

      Description

      Test fails with stack trace in the derby log of:

      2006-08-15 21:45:06.825 GMT Thread[main,5,main] (XID = 147), (SESSIONID = 0), (D
      ATABASE = wombat), (DRDAID = null), Failed Statement is: insert into t1 values(
      ?, ?, ?,?)
      java.lang.ArrayIndexOutOfBoundsException: 136019356
      . . .iapi.types.ReaderToUTF8Stream.fillBuffer(Unk)(Compiled Code)
      . . .iapi.types.ReaderToUTF8Stream.read(Unk)
      at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:309)
      . . .iapi.types.SQLChar.readExternal(Unk)
      . . .iapi.types.SQLChar.getString(Unk)(Compiled Code)
      . . .iapi.types.SQLVarchar.normalize(Unk)
      . . .iapi.types.DataTypeDescriptor.normalize(Unk)
      . . .impl.sql.execute.NormalizeResultSet.normalizeRow(Unk)
      . . .impl.sql.execute.NormalizeResultSet.getNextRowCore(Unk)
      . . .impl.sql.execute.DMLWriteResultSet.getNextRowCore(Unk)
      . . .impl.sql.execute.InsertResultSet.open(Unk)
      . . .impl.sql.GenericPreparedStatement.execute(Unk)
      . . .impl.jdbc.EmbedStatement.executeStatement(Unk)
      . . .impl.jdbc.EmbedPreparedStatement.executeStatement(Unk)
      . . .impl.jdbc.EmbedPreparedStatement.executeUpdate(Unk)
      . . Testing.functionTests.tests.lang.streams.insertLongString(Unk)
      . . Testing.functionTests.tests.lang.streams.doWork(Unk)
      . . Testing.functionTests.tests.lang.streams.main(Unk)
      Cleanup action completed

      === Found similar report from 10.1 testing - Exception differs from the above:

      The test lang/streams.java fails with ibm131 jvm
      with NullPointerException. There is no stack in test output,
      but derby.log has this:

      ------------------
      java.lang.NullPointerException
      at
      org.apache.derby.impl.jdbc.ReaderToUTF8Stream.fillBuffer(ReaderToUTF8Stream.java(Compiled Code))
      org.apache.derby.impl.jdbc.ReaderToUTF8Stream.read(ReaderToUTF8Stream.java)
      java.io.DataInputStream.readUnsignedShort(DataInputStream.java:309)
      org.apache.derby.iapi.types.SQLChar.readExternal(SQLChar.java)
      org.apache.derby.iapi.types.SQLChar.getString(SQLChar.java(Compiled Code))
      org.apache.derby.iapi.types.SQLVarchar.normalize(SQLVarchar.java)
      org.apache.derby.iapi.types.DataTypeDescriptor.normalize(DataTypeDescriptor.java)
      org.apache.derby.impl.sql.execute.NormalizeResultSet.normalizeRow(NormalizeResultSet.java)
      org.apache.derby.impl.sql.execute.NormalizeResultSet.getNextRowCore(NormalizeResultSet.java)
      org.apache.derby.impl.sql.execute.DMLWriteResultSet.getNextRowCore(DMLWriteResultSet.java)
      org.apache.derby.impl.sql.execute.InsertResultSet.open(InsertResultSet.java)
      org.apache.derby.impl.sql.GenericPreparedStatement.execute(GenericPreparedStatement.java)
      org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(EmbedStatement.java)
      org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(EmbedPreparedStatement.java)
      org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeUpdate(EmbedPreparedStatement.java)
      org.apache.derbyTesting.functionTests.tests.lang.streams.insertLongString(streams.java)
      org.apache.derbyTesting.functionTests.tests.lang.streams.doWork(streams.java)
      org.apache.derbyTesting.functionTests.tests.lang.streams.main(streams.java)
      ------------------

        Activity

        Gavin made changes -
        Workflow jira [ 12382021 ] Default workflow, editable Closed status [ 12799588 ]
        Myrna van Lunteren made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Kristian Waagan made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Invalid [ 6 ]
        Stan Bradbury created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Stan Bradbury
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development