Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-877

zOS - with DerbyClient getDate(#) fails with IllegalArgumentException - unsupported date format - resultset.java

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.1.1.0
    • 10.1.3.1, 10.2.1.6
    • Network Client
    • None
    • OS/390 with classic (IBM) jvm142

    Description

      The test lang/resultset.java fails with DerbyNetClient on zOS
      because ResultSet.getDate(#) fails with an
      java.lang.IllegalArgumentException - unsupported date format.

      This is the stack trace with 10.2 debug version (but it fails
      with 10.1 also):
      ------------------
      ....
      getBytes(dt) got exception
      Data Conversion SQLException
      FAIL – unexpected exception:
      java.lang.IllegalArgumentException: Unsupported date format!
      java.lang.IllegalArgumentException: Unsupported date format!
      at
      org.apache.derby.client.am.DateTime.dateBytesToDate(DateTime.java:63)
      at
      org.apache.derby.client.am.Cursor.getDATE(Cursor.java:400)
      at
      org.apache.derby.client.am.Cursor.getDate(Cursor.java:712)
      at
      org.apache.derby.client.am.ResultSet.getDate(ResultSet.java:687)
      at
      org.apache.derbyTesting.functionTests.tests.jdbcapi.resultset.main(Unknown Source)
      ------------------
      Note: does not fail with jcc.

      Also, test lang/updatableResultSet.java failed with e.g.:

      • instead of 'Got expected exception : Illegal Conversion' :
        'Got expected exception : Unsupported date format!' .
      • instead of 'Got expected exception : Illegal Conversion' :
        'Got expected exception : nanos > 99999999999 or < 0' .

      Attachments

        1. TestEnc.java
          7 kB
          Katherine Marsden
        2. derby-877.diff
          16 kB
          Katherine Marsden

        Activity

          People

            kmarsden Katherine Marsden
            myrna Myrna van Lunteren
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: