db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Myrna van Lunteren (JIRA)" <derby-...@db.apache.org>
Subject [jira] Updated: (DERBY-877) zOS - with DerbyClient getDate(#) fails with IllegalArgumentException - unsupported date format - resultset.java
Date Thu, 26 Jan 2006 13:41:10 GMT
     [ http://issues.apache.org/jira/browse/DERBY-877?page=all ]

Myrna van Lunteren updated DERBY-877:
-------------------------------------

    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' .



  was:
The test 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.jav
a: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.ma
in(Unknown Source)
------------------
Note: does not fail with jcc.

Also note, that conversely, e.g. test  lang/updatableResultset failed with errors like these:
The test 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.jav
a: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.ma
in(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' .




> zOS - with DerbyClient getDate(#) fails with IllegalArgumentException - unsupported date
format - resultset.java
> ----------------------------------------------------------------------------------------------------------------
>
>          Key: DERBY-877
>          URL: http://issues.apache.org/jira/browse/DERBY-877
>      Project: Derby
>         Type: Bug
>   Components: Network Client
>     Versions: 10.1.1.0
>  Environment: OS/390 with classic (IBM) jvm142
>     Reporter: Myrna van Lunteren

>
> 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' .

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message