You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Kathey Marsden (Created) (JIRA)" <ji...@apache.org> on 2011/10/07 03:52:29 UTC
[jira] [Created] (DERBY-5449) 10.8 client with 10.5 server gives j
ava.lang.ClassCastException: java.lang.Boolean incompatible with
java.lang.Short in NetStatementRequest.buildFDODTA with
CursorTest.testCursorParam
10.8 client with 10.5 server gives j ava.lang.ClassCastException: java.lang.Boolean incompatible with java.lang.Short in NetStatementRequest.buildFDODTA with CursorTest.testCursorParam
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: DERBY-5449
URL: https://issues.apache.org/jira/browse/DERBY-5449
Project: Derby
Issue Type: Bug
Affects Versions: 10.8.2.2
Reporter: Kathey Marsden
Using 10.8 client and 10.5 server and testing jars lang.CursorTest fails as follows:
Java Version: 1.6.0
Java Vendor: IBM Corporation
Java home: C:\cygwin\ibmsvn\ntsoftware\ibm16\jre
Java classpath: .;c:/cygwin/svn4/10.8/jars/sane/derbyclient.jar;C:/cygwin/ibmreleases/10.5.3.2.1132854/derbyTesting.jar;C:/cygwin/ibmreleases/10.5.3.
2.1132854/derbyrun.jar;C:/cygwin/svn4/trunka/tools/java/junit.jar;C:/cygwin/svn4/trunka/tools/java/jakarta-oro-2.0.8.jar
OS name: Windows XP
OS architecture: x86
OS version: 5.1 build 2600 Service Pack 3
Java user name: kmarsden
Java user home: C:\Documents and Settings\Administrator
Java user dir: C:\cygwin\home\kmarsden\repro\10_8cli10_5serverClassCast
java.specification.name: Java Platform API Specification
java.specification.version: 1.6
java.runtime.version: jvmwi3260sr9-20110203_74623
java.fullversion: JRE 1.6.0 IBM J9 2.4 Windows XP x86-32 jvmwi3260sr9-20110203_74623 (JIT enabled, AOT enabled)
J9VM - 20110203_074623
JIT - r9_20101028_17488ifx3
GC - 20101027_AA
--------- Derby Information --------
JRE - JDBC: Java SE 6 - JDBC 4.0
[C:\cygwin\ibmreleases\10.5.3.2.1132854\derby.jar] 10.5.3.2 - (1171883)
[C:\cygwin\ibmreleases\10.5.3.2.1132854\derbytools.jar] 10.5.3.2 - (1171883)
[C:\cygwin\ibmreleases\10.5.3.2.1132854\derbynet.jar] 10.5.3.2 - (1171883)
[C:\cygwin\svn4\10.8\jars\sane\derbyclient.jar] 10.8.2.2 - (1177062M)
------------------------------------------------------
----------------- Locale Information -----------------
Current Locale : [English/United States [en_US]]
Found support for locale: [cs]
version: 10.8.2.2 - (1177062M)
Found support for locale: [de_DE]
version: 10.8.2.2 - (1177062M)
Found support for locale: [es]
version: 10.8.2.2 - (1177062M)
Found support for locale: [fr]
version: 10.8.2.2 - (1177062M)
Found support for locale: [hu]
version: 10.8.2.2 - (1177062M)
Found support for locale: [it]
version: 10.8.2.2 - (1177062M)
Found support for locale: [ja_JP]
version: 10.8.2.2 - (1177062M)
Found support for locale: [ko_KR]
version: 10.8.2.2 - (1177062M)
Found support for locale: [pl]
version: 10.8.2.2 - (1177062M)
Found support for locale: [pt_BR]
version: 10.8.2.2 - (1177062M)
Found support for locale: [ru]
version: 10.8.2.2 - (1177062M)
Found support for locale: [zh_CN]
version: 10.8.2.2 - (1177062M)
Found support for locale: [zh_TW]
version: 10.8.2.2 - (1177062M)
------------------------------------------------------
+ java -Xmx512M -Xms512M -Dderby.tests.debug=false -Dderby.tests.trace=true '-DderbyTesting.oldReleasePath=C:\cygwin\svnreleases\jars' junit.textui.Te
stRunner org.apache.derbyTesting.functionTests.tests.lang.CursorTest
+ tee rju.out
.
testCursor used 312 ms .
testCursorParam used 156 ms .
testGetCursorName used 204 ms .
testCursor used 547 ms .
testCursorParam used 625 ms E.
testGetCursorName used 172 ms .
derby2417testSetCursorNextExecute used 125 ms
Time: 9.532
There was 1 error:
1) testCursorParam(org.apache.derbyTesting.functionTests.tests.lang.CursorTest)java.lang.ClassCastException: java.lang.Boolean incompatible with java.
lang.Short
at org.apache.derby.client.net.NetStatementRequest.buildFDODTA(NetStatementRequest.java:731)
at org.apache.derby.client.net.NetStatementRequest.buildSQLDTAcommandData(NetStatementRequest.java:540)
at org.apache.derby.client.net.NetStatementRequest.writeOpenQuery(NetStatementRequest.java:191)
at org.apache.derby.client.net.NetPreparedStatement.writeOpenQuery_(NetPreparedStatement.java:194)
at org.apache.derby.client.am.PreparedStatement.writeOpenQuery(PreparedStatement.java:1819)
at org.apache.derby.client.am.PreparedStatement.flowExecute(PreparedStatement.java:2062)
at org.apache.derby.client.am.PreparedStatement.executeQueryX(PreparedStatement.java:391)
at org.apache.derby.client.am.PreparedStatement.executeQuery(PreparedStatement.java:376)
at org.apache.derbyTesting.functionTests.tests.lang.CursorTest.testCursorParam(CursorTest.java:109)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:109)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
at junit.extensions.TestSetup.run(TestSetup.java:25)
at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
at junit.extensions.TestSetup.run(TestSetup.java:25)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
at junit.extensions.TestSetup.run(TestSetup.java:25)
at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
FAILURES!!!
Tests run: 7, Failures: 0, Errors: 1
+ set +x
There were quite a few (18?) other similar failures in the 10.8 client 10.5 server run, see output attached.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (DERBY-5449) 10.8 client with 10.5 server gives j
ava.lang.ClassCastException: java.lang.Boolean incompatible with
java.lang.Short in NetStatementRequest.buildFDODTA with
CursorTest.testCursorParam()
Posted by "Kathey Marsden (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-5449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kathey Marsden updated DERBY-5449:
----------------------------------
Issue & fix info: Repro attached
Bug behavior facts: Regression
Summary: 10.8 client with 10.5 server gives j ava.lang.ClassCastException: java.lang.Boolean incompatible with java.lang.Short in NetStatementRequest.buildFDODTA with CursorTest.testCursorParam() (was: Clien)
> 10.8 client with 10.5 server gives j ava.lang.ClassCastException: java.lang.Boolean incompatible with java.lang.Short in NetStatementRequest.buildFDODTA with CursorTest.testCursorParam()
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: DERBY-5449
> URL: https://issues.apache.org/jira/browse/DERBY-5449
> Project: Derby
> Issue Type: Bug
> Components: Network Client
> Affects Versions: 10.8.2.2
> Reporter: Kathey Marsden
> Attachments: rjall_10_5_server_10_8LatestClient_out.txt
>
>
> Using 10.8 client and 10.5 server and testing jars lang.CursorTest fails as follows:
> Java Version: 1.6.0
> Java Vendor: IBM Corporation
> Java home: C:\cygwin\ibmsvn\ntsoftware\ibm16\jre
> Java classpath: .;c:/cygwin/svn4/10.8/jars/sane/derbyclient.jar;C:/cygwin/ibmreleases/10.5.3.2.1132854/derbyTesting.jar;C:/cygwin/ibmreleases/10.5.3.
> 2.1132854/derbyrun.jar;C:/cygwin/svn4/trunka/tools/java/junit.jar;C:/cygwin/svn4/trunka/tools/java/jakarta-oro-2.0.8.jar
> OS name: Windows XP
> OS architecture: x86
> OS version: 5.1 build 2600 Service Pack 3
> Java user name: kmarsden
> Java user home: C:\Documents and Settings\Administrator
> Java user dir: C:\cygwin\home\kmarsden\repro\10_8cli10_5serverClassCast
> java.specification.name: Java Platform API Specification
> java.specification.version: 1.6
> java.runtime.version: jvmwi3260sr9-20110203_74623
> java.fullversion: JRE 1.6.0 IBM J9 2.4 Windows XP x86-32 jvmwi3260sr9-20110203_74623 (JIT enabled, AOT enabled)
> J9VM - 20110203_074623
> JIT - r9_20101028_17488ifx3
> GC - 20101027_AA
> --------- Derby Information --------
> JRE - JDBC: Java SE 6 - JDBC 4.0
> [C:\cygwin\ibmreleases\10.5.3.2.1132854\derby.jar] 10.5.3.2 - (1171883)
> [C:\cygwin\ibmreleases\10.5.3.2.1132854\derbytools.jar] 10.5.3.2 - (1171883)
> [C:\cygwin\ibmreleases\10.5.3.2.1132854\derbynet.jar] 10.5.3.2 - (1171883)
> [C:\cygwin\svn4\10.8\jars\sane\derbyclient.jar] 10.8.2.2 - (1177062M)
> ------------------------------------------------------
> ----------------- Locale Information -----------------
> Current Locale : [English/United States [en_US]]
> Found support for locale: [cs]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [de_DE]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [es]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [fr]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [hu]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [it]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [ja_JP]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [ko_KR]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [pl]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [pt_BR]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [ru]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [zh_CN]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [zh_TW]
> version: 10.8.2.2 - (1177062M)
> ------------------------------------------------------
> + java -Xmx512M -Xms512M -Dderby.tests.debug=false -Dderby.tests.trace=true '-DderbyTesting.oldReleasePath=C:\cygwin\svnreleases\jars' junit.textui.Te
> stRunner org.apache.derbyTesting.functionTests.tests.lang.CursorTest
> + tee rju.out
> .
> testCursor used 312 ms .
> testCursorParam used 156 ms .
> testGetCursorName used 204 ms .
> testCursor used 547 ms .
> testCursorParam used 625 ms E.
> testGetCursorName used 172 ms .
> derby2417testSetCursorNextExecute used 125 ms
> Time: 9.532
> There was 1 error:
> 1) testCursorParam(org.apache.derbyTesting.functionTests.tests.lang.CursorTest)java.lang.ClassCastException: java.lang.Boolean incompatible with java.
> lang.Short
> at org.apache.derby.client.net.NetStatementRequest.buildFDODTA(NetStatementRequest.java:731)
> at org.apache.derby.client.net.NetStatementRequest.buildSQLDTAcommandData(NetStatementRequest.java:540)
> at org.apache.derby.client.net.NetStatementRequest.writeOpenQuery(NetStatementRequest.java:191)
> at org.apache.derby.client.net.NetPreparedStatement.writeOpenQuery_(NetPreparedStatement.java:194)
> at org.apache.derby.client.am.PreparedStatement.writeOpenQuery(PreparedStatement.java:1819)
> at org.apache.derby.client.am.PreparedStatement.flowExecute(PreparedStatement.java:2062)
> at org.apache.derby.client.am.PreparedStatement.executeQueryX(PreparedStatement.java:391)
> at org.apache.derby.client.am.PreparedStatement.executeQuery(PreparedStatement.java:376)
> at org.apache.derbyTesting.functionTests.tests.lang.CursorTest.testCursorParam(CursorTest.java:109)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
> at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:109)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
> FAILURES!!!
> Tests run: 7, Failures: 0, Errors: 1
> + set +x
> There were quite a few (18?) other similar failures in the 10.8 client 10.5 server run, see output attached.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (DERBY-5449) 10.8 client with 10.5 server gives
java.lang.ClassCastException: java.lang.Boolean incompatible with
java.lang.Short in NetStatementRequest.buildFDODTA with
CursorTest.testCursorParam()
Posted by "Knut Anders Hatlen (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-5449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Knut Anders Hatlen resolved DERBY-5449.
---------------------------------------
Resolution: Fixed
Fix Version/s: 10.8.2.3
Merged to 10.8.
Committed revision 1188608.
> 10.8 client with 10.5 server gives java.lang.ClassCastException: java.lang.Boolean incompatible with java.lang.Short in NetStatementRequest.buildFDODTA with CursorTest.testCursorParam()
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: DERBY-5449
> URL: https://issues.apache.org/jira/browse/DERBY-5449
> Project: Derby
> Issue Type: Bug
> Components: Network Client
> Affects Versions: 10.8.2.2
> Reporter: Kathey Marsden
> Assignee: Knut Anders Hatlen
> Fix For: 10.8.2.3, 10.9.0.0
>
> Attachments: d5449-1a.diff, d5449-1b.diff, rjall_10_5_server_10_8LatestClient_out.txt
>
>
> Using 10.8 client and 10.5 server and testing jars lang.CursorTest fails as follows:
> Java Version: 1.6.0
> Java Vendor: IBM Corporation
> Java home: C:\cygwin\ibmsvn\ntsoftware\ibm16\jre
> Java classpath: .;c:/cygwin/svn4/10.8/jars/sane/derbyclient.jar;C:/cygwin/ibmreleases/10.5.3.2.1132854/derbyTesting.jar;C:/cygwin/ibmreleases/10.5.3.
> 2.1132854/derbyrun.jar;C:/cygwin/svn4/trunka/tools/java/junit.jar;C:/cygwin/svn4/trunka/tools/java/jakarta-oro-2.0.8.jar
> OS name: Windows XP
> OS architecture: x86
> OS version: 5.1 build 2600 Service Pack 3
> Java user name: kmarsden
> Java user home: C:\Documents and Settings\Administrator
> Java user dir: C:\cygwin\home\kmarsden\repro\10_8cli10_5serverClassCast
> java.specification.name: Java Platform API Specification
> java.specification.version: 1.6
> java.runtime.version: jvmwi3260sr9-20110203_74623
> java.fullversion: JRE 1.6.0 IBM J9 2.4 Windows XP x86-32 jvmwi3260sr9-20110203_74623 (JIT enabled, AOT enabled)
> J9VM - 20110203_074623
> JIT - r9_20101028_17488ifx3
> GC - 20101027_AA
> --------- Derby Information --------
> JRE - JDBC: Java SE 6 - JDBC 4.0
> [C:\cygwin\ibmreleases\10.5.3.2.1132854\derby.jar] 10.5.3.2 - (1171883)
> [C:\cygwin\ibmreleases\10.5.3.2.1132854\derbytools.jar] 10.5.3.2 - (1171883)
> [C:\cygwin\ibmreleases\10.5.3.2.1132854\derbynet.jar] 10.5.3.2 - (1171883)
> [C:\cygwin\svn4\10.8\jars\sane\derbyclient.jar] 10.8.2.2 - (1177062M)
> ------------------------------------------------------
> ----------------- Locale Information -----------------
> Current Locale : [English/United States [en_US]]
> Found support for locale: [cs]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [de_DE]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [es]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [fr]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [hu]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [it]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [ja_JP]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [ko_KR]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [pl]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [pt_BR]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [ru]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [zh_CN]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [zh_TW]
> version: 10.8.2.2 - (1177062M)
> ------------------------------------------------------
> + java -Xmx512M -Xms512M -Dderby.tests.debug=false -Dderby.tests.trace=true '-DderbyTesting.oldReleasePath=C:\cygwin\svnreleases\jars' junit.textui.Te
> stRunner org.apache.derbyTesting.functionTests.tests.lang.CursorTest
> + tee rju.out
> .
> testCursor used 312 ms .
> testCursorParam used 156 ms .
> testGetCursorName used 204 ms .
> testCursor used 547 ms .
> testCursorParam used 625 ms E.
> testGetCursorName used 172 ms .
> derby2417testSetCursorNextExecute used 125 ms
> Time: 9.532
> There was 1 error:
> 1) testCursorParam(org.apache.derbyTesting.functionTests.tests.lang.CursorTest)java.lang.ClassCastException: java.lang.Boolean incompatible with java.
> lang.Short
> at org.apache.derby.client.net.NetStatementRequest.buildFDODTA(NetStatementRequest.java:731)
> at org.apache.derby.client.net.NetStatementRequest.buildSQLDTAcommandData(NetStatementRequest.java:540)
> at org.apache.derby.client.net.NetStatementRequest.writeOpenQuery(NetStatementRequest.java:191)
> at org.apache.derby.client.net.NetPreparedStatement.writeOpenQuery_(NetPreparedStatement.java:194)
> at org.apache.derby.client.am.PreparedStatement.writeOpenQuery(PreparedStatement.java:1819)
> at org.apache.derby.client.am.PreparedStatement.flowExecute(PreparedStatement.java:2062)
> at org.apache.derby.client.am.PreparedStatement.executeQueryX(PreparedStatement.java:391)
> at org.apache.derby.client.am.PreparedStatement.executeQuery(PreparedStatement.java:376)
> at org.apache.derbyTesting.functionTests.tests.lang.CursorTest.testCursorParam(CursorTest.java:109)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
> at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:109)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
> FAILURES!!!
> Tests run: 7, Failures: 0, Errors: 1
> + set +x
> There were quite a few (18?) other similar failures in the 10.8 client 10.5 server run, see output attached.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (DERBY-5449) 10.8 client with 10.5 server gives
java.lang.ClassCastException: java.lang.Boolean incompatible with
java.lang.Short in NetStatementRequest.buildFDODTA with
CursorTest.testCursorParam()
Posted by "Knut Anders Hatlen (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-5449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Knut Anders Hatlen updated DERBY-5449:
--------------------------------------
Summary: 10.8 client with 10.5 server gives java.lang.ClassCastException: java.lang.Boolean incompatible with java.lang.Short in NetStatementRequest.buildFDODTA with CursorTest.testCursorParam() (was: 10.8 client with 10.5 server gives j ava.lang.ClassCastException: java.lang.Boolean incompatible with java.lang.Short in NetStatementRequest.buildFDODTA with CursorTest.testCursorParam())
> 10.8 client with 10.5 server gives java.lang.ClassCastException: java.lang.Boolean incompatible with java.lang.Short in NetStatementRequest.buildFDODTA with CursorTest.testCursorParam()
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: DERBY-5449
> URL: https://issues.apache.org/jira/browse/DERBY-5449
> Project: Derby
> Issue Type: Bug
> Components: Network Client
> Affects Versions: 10.8.2.2
> Reporter: Kathey Marsden
> Assignee: Knut Anders Hatlen
> Attachments: rjall_10_5_server_10_8LatestClient_out.txt
>
>
> Using 10.8 client and 10.5 server and testing jars lang.CursorTest fails as follows:
> Java Version: 1.6.0
> Java Vendor: IBM Corporation
> Java home: C:\cygwin\ibmsvn\ntsoftware\ibm16\jre
> Java classpath: .;c:/cygwin/svn4/10.8/jars/sane/derbyclient.jar;C:/cygwin/ibmreleases/10.5.3.2.1132854/derbyTesting.jar;C:/cygwin/ibmreleases/10.5.3.
> 2.1132854/derbyrun.jar;C:/cygwin/svn4/trunka/tools/java/junit.jar;C:/cygwin/svn4/trunka/tools/java/jakarta-oro-2.0.8.jar
> OS name: Windows XP
> OS architecture: x86
> OS version: 5.1 build 2600 Service Pack 3
> Java user name: kmarsden
> Java user home: C:\Documents and Settings\Administrator
> Java user dir: C:\cygwin\home\kmarsden\repro\10_8cli10_5serverClassCast
> java.specification.name: Java Platform API Specification
> java.specification.version: 1.6
> java.runtime.version: jvmwi3260sr9-20110203_74623
> java.fullversion: JRE 1.6.0 IBM J9 2.4 Windows XP x86-32 jvmwi3260sr9-20110203_74623 (JIT enabled, AOT enabled)
> J9VM - 20110203_074623
> JIT - r9_20101028_17488ifx3
> GC - 20101027_AA
> --------- Derby Information --------
> JRE - JDBC: Java SE 6 - JDBC 4.0
> [C:\cygwin\ibmreleases\10.5.3.2.1132854\derby.jar] 10.5.3.2 - (1171883)
> [C:\cygwin\ibmreleases\10.5.3.2.1132854\derbytools.jar] 10.5.3.2 - (1171883)
> [C:\cygwin\ibmreleases\10.5.3.2.1132854\derbynet.jar] 10.5.3.2 - (1171883)
> [C:\cygwin\svn4\10.8\jars\sane\derbyclient.jar] 10.8.2.2 - (1177062M)
> ------------------------------------------------------
> ----------------- Locale Information -----------------
> Current Locale : [English/United States [en_US]]
> Found support for locale: [cs]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [de_DE]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [es]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [fr]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [hu]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [it]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [ja_JP]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [ko_KR]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [pl]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [pt_BR]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [ru]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [zh_CN]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [zh_TW]
> version: 10.8.2.2 - (1177062M)
> ------------------------------------------------------
> + java -Xmx512M -Xms512M -Dderby.tests.debug=false -Dderby.tests.trace=true '-DderbyTesting.oldReleasePath=C:\cygwin\svnreleases\jars' junit.textui.Te
> stRunner org.apache.derbyTesting.functionTests.tests.lang.CursorTest
> + tee rju.out
> .
> testCursor used 312 ms .
> testCursorParam used 156 ms .
> testGetCursorName used 204 ms .
> testCursor used 547 ms .
> testCursorParam used 625 ms E.
> testGetCursorName used 172 ms .
> derby2417testSetCursorNextExecute used 125 ms
> Time: 9.532
> There was 1 error:
> 1) testCursorParam(org.apache.derbyTesting.functionTests.tests.lang.CursorTest)java.lang.ClassCastException: java.lang.Boolean incompatible with java.
> lang.Short
> at org.apache.derby.client.net.NetStatementRequest.buildFDODTA(NetStatementRequest.java:731)
> at org.apache.derby.client.net.NetStatementRequest.buildSQLDTAcommandData(NetStatementRequest.java:540)
> at org.apache.derby.client.net.NetStatementRequest.writeOpenQuery(NetStatementRequest.java:191)
> at org.apache.derby.client.net.NetPreparedStatement.writeOpenQuery_(NetPreparedStatement.java:194)
> at org.apache.derby.client.am.PreparedStatement.writeOpenQuery(PreparedStatement.java:1819)
> at org.apache.derby.client.am.PreparedStatement.flowExecute(PreparedStatement.java:2062)
> at org.apache.derby.client.am.PreparedStatement.executeQueryX(PreparedStatement.java:391)
> at org.apache.derby.client.am.PreparedStatement.executeQuery(PreparedStatement.java:376)
> at org.apache.derbyTesting.functionTests.tests.lang.CursorTest.testCursorParam(CursorTest.java:109)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
> at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:109)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
> FAILURES!!!
> Tests run: 7, Failures: 0, Errors: 1
> + set +x
> There were quite a few (18?) other similar failures in the 10.8 client 10.5 server run, see output attached.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (DERBY-5449) 10.8 client with 10.5 server gives
java.lang.ClassCastException: java.lang.Boolean incompatible with
java.lang.Short in NetStatementRequest.buildFDODTA with
CursorTest.testCursorParam()
Posted by "Knut Anders Hatlen (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-5449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Knut Anders Hatlen updated DERBY-5449:
--------------------------------------
Issue & fix info: Patch Available,Repro attached (was: Repro attached)
All the regression tests passed with the 1b patch.
> 10.8 client with 10.5 server gives java.lang.ClassCastException: java.lang.Boolean incompatible with java.lang.Short in NetStatementRequest.buildFDODTA with CursorTest.testCursorParam()
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: DERBY-5449
> URL: https://issues.apache.org/jira/browse/DERBY-5449
> Project: Derby
> Issue Type: Bug
> Components: Network Client
> Affects Versions: 10.8.2.2
> Reporter: Kathey Marsden
> Assignee: Knut Anders Hatlen
> Attachments: d5449-1a.diff, d5449-1b.diff, rjall_10_5_server_10_8LatestClient_out.txt
>
>
> Using 10.8 client and 10.5 server and testing jars lang.CursorTest fails as follows:
> Java Version: 1.6.0
> Java Vendor: IBM Corporation
> Java home: C:\cygwin\ibmsvn\ntsoftware\ibm16\jre
> Java classpath: .;c:/cygwin/svn4/10.8/jars/sane/derbyclient.jar;C:/cygwin/ibmreleases/10.5.3.2.1132854/derbyTesting.jar;C:/cygwin/ibmreleases/10.5.3.
> 2.1132854/derbyrun.jar;C:/cygwin/svn4/trunka/tools/java/junit.jar;C:/cygwin/svn4/trunka/tools/java/jakarta-oro-2.0.8.jar
> OS name: Windows XP
> OS architecture: x86
> OS version: 5.1 build 2600 Service Pack 3
> Java user name: kmarsden
> Java user home: C:\Documents and Settings\Administrator
> Java user dir: C:\cygwin\home\kmarsden\repro\10_8cli10_5serverClassCast
> java.specification.name: Java Platform API Specification
> java.specification.version: 1.6
> java.runtime.version: jvmwi3260sr9-20110203_74623
> java.fullversion: JRE 1.6.0 IBM J9 2.4 Windows XP x86-32 jvmwi3260sr9-20110203_74623 (JIT enabled, AOT enabled)
> J9VM - 20110203_074623
> JIT - r9_20101028_17488ifx3
> GC - 20101027_AA
> --------- Derby Information --------
> JRE - JDBC: Java SE 6 - JDBC 4.0
> [C:\cygwin\ibmreleases\10.5.3.2.1132854\derby.jar] 10.5.3.2 - (1171883)
> [C:\cygwin\ibmreleases\10.5.3.2.1132854\derbytools.jar] 10.5.3.2 - (1171883)
> [C:\cygwin\ibmreleases\10.5.3.2.1132854\derbynet.jar] 10.5.3.2 - (1171883)
> [C:\cygwin\svn4\10.8\jars\sane\derbyclient.jar] 10.8.2.2 - (1177062M)
> ------------------------------------------------------
> ----------------- Locale Information -----------------
> Current Locale : [English/United States [en_US]]
> Found support for locale: [cs]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [de_DE]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [es]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [fr]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [hu]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [it]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [ja_JP]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [ko_KR]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [pl]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [pt_BR]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [ru]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [zh_CN]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [zh_TW]
> version: 10.8.2.2 - (1177062M)
> ------------------------------------------------------
> + java -Xmx512M -Xms512M -Dderby.tests.debug=false -Dderby.tests.trace=true '-DderbyTesting.oldReleasePath=C:\cygwin\svnreleases\jars' junit.textui.Te
> stRunner org.apache.derbyTesting.functionTests.tests.lang.CursorTest
> + tee rju.out
> .
> testCursor used 312 ms .
> testCursorParam used 156 ms .
> testGetCursorName used 204 ms .
> testCursor used 547 ms .
> testCursorParam used 625 ms E.
> testGetCursorName used 172 ms .
> derby2417testSetCursorNextExecute used 125 ms
> Time: 9.532
> There was 1 error:
> 1) testCursorParam(org.apache.derbyTesting.functionTests.tests.lang.CursorTest)java.lang.ClassCastException: java.lang.Boolean incompatible with java.
> lang.Short
> at org.apache.derby.client.net.NetStatementRequest.buildFDODTA(NetStatementRequest.java:731)
> at org.apache.derby.client.net.NetStatementRequest.buildSQLDTAcommandData(NetStatementRequest.java:540)
> at org.apache.derby.client.net.NetStatementRequest.writeOpenQuery(NetStatementRequest.java:191)
> at org.apache.derby.client.net.NetPreparedStatement.writeOpenQuery_(NetPreparedStatement.java:194)
> at org.apache.derby.client.am.PreparedStatement.writeOpenQuery(PreparedStatement.java:1819)
> at org.apache.derby.client.am.PreparedStatement.flowExecute(PreparedStatement.java:2062)
> at org.apache.derby.client.am.PreparedStatement.executeQueryX(PreparedStatement.java:391)
> at org.apache.derby.client.am.PreparedStatement.executeQuery(PreparedStatement.java:376)
> at org.apache.derbyTesting.functionTests.tests.lang.CursorTest.testCursorParam(CursorTest.java:109)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
> at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:109)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
> FAILURES!!!
> Tests run: 7, Failures: 0, Errors: 1
> + set +x
> There were quite a few (18?) other similar failures in the 10.8 client 10.5 server run, see output attached.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (DERBY-5449) 10.8 client with 10.5 server gives j
ava.lang.ClassCastException: java.lang.Boolean incompatible with
java.lang.Short in NetStatementRequest.buildFDODTA with
CursorTest.testCursorParam()
Posted by "Knut Anders Hatlen (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-5449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Knut Anders Hatlen reassigned DERBY-5449:
-----------------------------------------
Assignee: Knut Anders Hatlen
This might be related to DERBY-5042. I'll take a look.
> 10.8 client with 10.5 server gives j ava.lang.ClassCastException: java.lang.Boolean incompatible with java.lang.Short in NetStatementRequest.buildFDODTA with CursorTest.testCursorParam()
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: DERBY-5449
> URL: https://issues.apache.org/jira/browse/DERBY-5449
> Project: Derby
> Issue Type: Bug
> Components: Network Client
> Affects Versions: 10.8.2.2
> Reporter: Kathey Marsden
> Assignee: Knut Anders Hatlen
> Attachments: rjall_10_5_server_10_8LatestClient_out.txt
>
>
> Using 10.8 client and 10.5 server and testing jars lang.CursorTest fails as follows:
> Java Version: 1.6.0
> Java Vendor: IBM Corporation
> Java home: C:\cygwin\ibmsvn\ntsoftware\ibm16\jre
> Java classpath: .;c:/cygwin/svn4/10.8/jars/sane/derbyclient.jar;C:/cygwin/ibmreleases/10.5.3.2.1132854/derbyTesting.jar;C:/cygwin/ibmreleases/10.5.3.
> 2.1132854/derbyrun.jar;C:/cygwin/svn4/trunka/tools/java/junit.jar;C:/cygwin/svn4/trunka/tools/java/jakarta-oro-2.0.8.jar
> OS name: Windows XP
> OS architecture: x86
> OS version: 5.1 build 2600 Service Pack 3
> Java user name: kmarsden
> Java user home: C:\Documents and Settings\Administrator
> Java user dir: C:\cygwin\home\kmarsden\repro\10_8cli10_5serverClassCast
> java.specification.name: Java Platform API Specification
> java.specification.version: 1.6
> java.runtime.version: jvmwi3260sr9-20110203_74623
> java.fullversion: JRE 1.6.0 IBM J9 2.4 Windows XP x86-32 jvmwi3260sr9-20110203_74623 (JIT enabled, AOT enabled)
> J9VM - 20110203_074623
> JIT - r9_20101028_17488ifx3
> GC - 20101027_AA
> --------- Derby Information --------
> JRE - JDBC: Java SE 6 - JDBC 4.0
> [C:\cygwin\ibmreleases\10.5.3.2.1132854\derby.jar] 10.5.3.2 - (1171883)
> [C:\cygwin\ibmreleases\10.5.3.2.1132854\derbytools.jar] 10.5.3.2 - (1171883)
> [C:\cygwin\ibmreleases\10.5.3.2.1132854\derbynet.jar] 10.5.3.2 - (1171883)
> [C:\cygwin\svn4\10.8\jars\sane\derbyclient.jar] 10.8.2.2 - (1177062M)
> ------------------------------------------------------
> ----------------- Locale Information -----------------
> Current Locale : [English/United States [en_US]]
> Found support for locale: [cs]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [de_DE]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [es]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [fr]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [hu]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [it]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [ja_JP]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [ko_KR]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [pl]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [pt_BR]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [ru]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [zh_CN]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [zh_TW]
> version: 10.8.2.2 - (1177062M)
> ------------------------------------------------------
> + java -Xmx512M -Xms512M -Dderby.tests.debug=false -Dderby.tests.trace=true '-DderbyTesting.oldReleasePath=C:\cygwin\svnreleases\jars' junit.textui.Te
> stRunner org.apache.derbyTesting.functionTests.tests.lang.CursorTest
> + tee rju.out
> .
> testCursor used 312 ms .
> testCursorParam used 156 ms .
> testGetCursorName used 204 ms .
> testCursor used 547 ms .
> testCursorParam used 625 ms E.
> testGetCursorName used 172 ms .
> derby2417testSetCursorNextExecute used 125 ms
> Time: 9.532
> There was 1 error:
> 1) testCursorParam(org.apache.derbyTesting.functionTests.tests.lang.CursorTest)java.lang.ClassCastException: java.lang.Boolean incompatible with java.
> lang.Short
> at org.apache.derby.client.net.NetStatementRequest.buildFDODTA(NetStatementRequest.java:731)
> at org.apache.derby.client.net.NetStatementRequest.buildSQLDTAcommandData(NetStatementRequest.java:540)
> at org.apache.derby.client.net.NetStatementRequest.writeOpenQuery(NetStatementRequest.java:191)
> at org.apache.derby.client.net.NetPreparedStatement.writeOpenQuery_(NetPreparedStatement.java:194)
> at org.apache.derby.client.am.PreparedStatement.writeOpenQuery(PreparedStatement.java:1819)
> at org.apache.derby.client.am.PreparedStatement.flowExecute(PreparedStatement.java:2062)
> at org.apache.derby.client.am.PreparedStatement.executeQueryX(PreparedStatement.java:391)
> at org.apache.derby.client.am.PreparedStatement.executeQuery(PreparedStatement.java:376)
> at org.apache.derbyTesting.functionTests.tests.lang.CursorTest.testCursorParam(CursorTest.java:109)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
> at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:109)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
> FAILURES!!!
> Tests run: 7, Failures: 0, Errors: 1
> + set +x
> There were quite a few (18?) other similar failures in the 10.8 client 10.5 server run, see output attached.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (DERBY-5449) 10.8 client with 10.5 server gives
java.lang.ClassCastException: java.lang.Boolean incompatible with
java.lang.Short in NetStatementRequest.buildFDODTA with
CursorTest.testCursorParam()
Posted by "Knut Anders Hatlen (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-5449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Knut Anders Hatlen updated DERBY-5449:
--------------------------------------
Attachment: d5449-1a.diff
When talking to old servers, the client switches the DRDA type of parameters with Boolean values from BOOLEAN to SMALLINT. Before DERBY-5042, the Boolean parameter values were still sent as java.lang.Short, so switching the type was sufficient. After DERBY-5042, the values are sent as java.lang.Boolean, so there's a mismatch between the type information and the actual type of the value when the client talks to an old server, which is what causes the ClassCastException.
The attached patch (1a) makes the client convert the parameter value from a java.lang.Boolean to a java.lang.Short when it determines that the DRDA type must be switched from BOOLEAN to SMALLINT.
I'll see if I can come up with a test case to put in the compatibility test suite.
> 10.8 client with 10.5 server gives java.lang.ClassCastException: java.lang.Boolean incompatible with java.lang.Short in NetStatementRequest.buildFDODTA with CursorTest.testCursorParam()
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: DERBY-5449
> URL: https://issues.apache.org/jira/browse/DERBY-5449
> Project: Derby
> Issue Type: Bug
> Components: Network Client
> Affects Versions: 10.8.2.2
> Reporter: Kathey Marsden
> Assignee: Knut Anders Hatlen
> Attachments: d5449-1a.diff, rjall_10_5_server_10_8LatestClient_out.txt
>
>
> Using 10.8 client and 10.5 server and testing jars lang.CursorTest fails as follows:
> Java Version: 1.6.0
> Java Vendor: IBM Corporation
> Java home: C:\cygwin\ibmsvn\ntsoftware\ibm16\jre
> Java classpath: .;c:/cygwin/svn4/10.8/jars/sane/derbyclient.jar;C:/cygwin/ibmreleases/10.5.3.2.1132854/derbyTesting.jar;C:/cygwin/ibmreleases/10.5.3.
> 2.1132854/derbyrun.jar;C:/cygwin/svn4/trunka/tools/java/junit.jar;C:/cygwin/svn4/trunka/tools/java/jakarta-oro-2.0.8.jar
> OS name: Windows XP
> OS architecture: x86
> OS version: 5.1 build 2600 Service Pack 3
> Java user name: kmarsden
> Java user home: C:\Documents and Settings\Administrator
> Java user dir: C:\cygwin\home\kmarsden\repro\10_8cli10_5serverClassCast
> java.specification.name: Java Platform API Specification
> java.specification.version: 1.6
> java.runtime.version: jvmwi3260sr9-20110203_74623
> java.fullversion: JRE 1.6.0 IBM J9 2.4 Windows XP x86-32 jvmwi3260sr9-20110203_74623 (JIT enabled, AOT enabled)
> J9VM - 20110203_074623
> JIT - r9_20101028_17488ifx3
> GC - 20101027_AA
> --------- Derby Information --------
> JRE - JDBC: Java SE 6 - JDBC 4.0
> [C:\cygwin\ibmreleases\10.5.3.2.1132854\derby.jar] 10.5.3.2 - (1171883)
> [C:\cygwin\ibmreleases\10.5.3.2.1132854\derbytools.jar] 10.5.3.2 - (1171883)
> [C:\cygwin\ibmreleases\10.5.3.2.1132854\derbynet.jar] 10.5.3.2 - (1171883)
> [C:\cygwin\svn4\10.8\jars\sane\derbyclient.jar] 10.8.2.2 - (1177062M)
> ------------------------------------------------------
> ----------------- Locale Information -----------------
> Current Locale : [English/United States [en_US]]
> Found support for locale: [cs]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [de_DE]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [es]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [fr]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [hu]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [it]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [ja_JP]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [ko_KR]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [pl]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [pt_BR]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [ru]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [zh_CN]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [zh_TW]
> version: 10.8.2.2 - (1177062M)
> ------------------------------------------------------
> + java -Xmx512M -Xms512M -Dderby.tests.debug=false -Dderby.tests.trace=true '-DderbyTesting.oldReleasePath=C:\cygwin\svnreleases\jars' junit.textui.Te
> stRunner org.apache.derbyTesting.functionTests.tests.lang.CursorTest
> + tee rju.out
> .
> testCursor used 312 ms .
> testCursorParam used 156 ms .
> testGetCursorName used 204 ms .
> testCursor used 547 ms .
> testCursorParam used 625 ms E.
> testGetCursorName used 172 ms .
> derby2417testSetCursorNextExecute used 125 ms
> Time: 9.532
> There was 1 error:
> 1) testCursorParam(org.apache.derbyTesting.functionTests.tests.lang.CursorTest)java.lang.ClassCastException: java.lang.Boolean incompatible with java.
> lang.Short
> at org.apache.derby.client.net.NetStatementRequest.buildFDODTA(NetStatementRequest.java:731)
> at org.apache.derby.client.net.NetStatementRequest.buildSQLDTAcommandData(NetStatementRequest.java:540)
> at org.apache.derby.client.net.NetStatementRequest.writeOpenQuery(NetStatementRequest.java:191)
> at org.apache.derby.client.net.NetPreparedStatement.writeOpenQuery_(NetPreparedStatement.java:194)
> at org.apache.derby.client.am.PreparedStatement.writeOpenQuery(PreparedStatement.java:1819)
> at org.apache.derby.client.am.PreparedStatement.flowExecute(PreparedStatement.java:2062)
> at org.apache.derby.client.am.PreparedStatement.executeQueryX(PreparedStatement.java:391)
> at org.apache.derby.client.am.PreparedStatement.executeQuery(PreparedStatement.java:376)
> at org.apache.derbyTesting.functionTests.tests.lang.CursorTest.testCursorParam(CursorTest.java:109)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
> at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:109)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
> FAILURES!!!
> Tests run: 7, Failures: 0, Errors: 1
> + set +x
> There were quite a few (18?) other similar failures in the 10.8 client 10.5 server run, see output attached.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (DERBY-5449) 10.8 client with 10.5 server gives j
ava.lang.ClassCastException: java.lang.Boolean incompatible with
java.lang.Short in NetStatementRequest.buildFDODTA with
CursorTest.testCursorParam
Posted by "Kathey Marsden (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-5449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kathey Marsden updated DERBY-5449:
----------------------------------
Attachment: rjall_10_5_server_10_8LatestClient_out.txt
> 10.8 client with 10.5 server gives j ava.lang.ClassCastException: java.lang.Boolean incompatible with java.lang.Short in NetStatementRequest.buildFDODTA with CursorTest.testCursorParam
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: DERBY-5449
> URL: https://issues.apache.org/jira/browse/DERBY-5449
> Project: Derby
> Issue Type: Bug
> Affects Versions: 10.8.2.2
> Reporter: Kathey Marsden
> Attachments: rjall_10_5_server_10_8LatestClient_out.txt
>
>
> Using 10.8 client and 10.5 server and testing jars lang.CursorTest fails as follows:
> Java Version: 1.6.0
> Java Vendor: IBM Corporation
> Java home: C:\cygwin\ibmsvn\ntsoftware\ibm16\jre
> Java classpath: .;c:/cygwin/svn4/10.8/jars/sane/derbyclient.jar;C:/cygwin/ibmreleases/10.5.3.2.1132854/derbyTesting.jar;C:/cygwin/ibmreleases/10.5.3.
> 2.1132854/derbyrun.jar;C:/cygwin/svn4/trunka/tools/java/junit.jar;C:/cygwin/svn4/trunka/tools/java/jakarta-oro-2.0.8.jar
> OS name: Windows XP
> OS architecture: x86
> OS version: 5.1 build 2600 Service Pack 3
> Java user name: kmarsden
> Java user home: C:\Documents and Settings\Administrator
> Java user dir: C:\cygwin\home\kmarsden\repro\10_8cli10_5serverClassCast
> java.specification.name: Java Platform API Specification
> java.specification.version: 1.6
> java.runtime.version: jvmwi3260sr9-20110203_74623
> java.fullversion: JRE 1.6.0 IBM J9 2.4 Windows XP x86-32 jvmwi3260sr9-20110203_74623 (JIT enabled, AOT enabled)
> J9VM - 20110203_074623
> JIT - r9_20101028_17488ifx3
> GC - 20101027_AA
> --------- Derby Information --------
> JRE - JDBC: Java SE 6 - JDBC 4.0
> [C:\cygwin\ibmreleases\10.5.3.2.1132854\derby.jar] 10.5.3.2 - (1171883)
> [C:\cygwin\ibmreleases\10.5.3.2.1132854\derbytools.jar] 10.5.3.2 - (1171883)
> [C:\cygwin\ibmreleases\10.5.3.2.1132854\derbynet.jar] 10.5.3.2 - (1171883)
> [C:\cygwin\svn4\10.8\jars\sane\derbyclient.jar] 10.8.2.2 - (1177062M)
> ------------------------------------------------------
> ----------------- Locale Information -----------------
> Current Locale : [English/United States [en_US]]
> Found support for locale: [cs]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [de_DE]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [es]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [fr]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [hu]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [it]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [ja_JP]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [ko_KR]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [pl]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [pt_BR]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [ru]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [zh_CN]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [zh_TW]
> version: 10.8.2.2 - (1177062M)
> ------------------------------------------------------
> + java -Xmx512M -Xms512M -Dderby.tests.debug=false -Dderby.tests.trace=true '-DderbyTesting.oldReleasePath=C:\cygwin\svnreleases\jars' junit.textui.Te
> stRunner org.apache.derbyTesting.functionTests.tests.lang.CursorTest
> + tee rju.out
> .
> testCursor used 312 ms .
> testCursorParam used 156 ms .
> testGetCursorName used 204 ms .
> testCursor used 547 ms .
> testCursorParam used 625 ms E.
> testGetCursorName used 172 ms .
> derby2417testSetCursorNextExecute used 125 ms
> Time: 9.532
> There was 1 error:
> 1) testCursorParam(org.apache.derbyTesting.functionTests.tests.lang.CursorTest)java.lang.ClassCastException: java.lang.Boolean incompatible with java.
> lang.Short
> at org.apache.derby.client.net.NetStatementRequest.buildFDODTA(NetStatementRequest.java:731)
> at org.apache.derby.client.net.NetStatementRequest.buildSQLDTAcommandData(NetStatementRequest.java:540)
> at org.apache.derby.client.net.NetStatementRequest.writeOpenQuery(NetStatementRequest.java:191)
> at org.apache.derby.client.net.NetPreparedStatement.writeOpenQuery_(NetPreparedStatement.java:194)
> at org.apache.derby.client.am.PreparedStatement.writeOpenQuery(PreparedStatement.java:1819)
> at org.apache.derby.client.am.PreparedStatement.flowExecute(PreparedStatement.java:2062)
> at org.apache.derby.client.am.PreparedStatement.executeQueryX(PreparedStatement.java:391)
> at org.apache.derby.client.am.PreparedStatement.executeQuery(PreparedStatement.java:376)
> at org.apache.derbyTesting.functionTests.tests.lang.CursorTest.testCursorParam(CursorTest.java:109)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
> at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:109)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
> FAILURES!!!
> Tests run: 7, Failures: 0, Errors: 1
> + set +x
> There were quite a few (18?) other similar failures in the 10.8 client 10.5 server run, see output attached.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (DERBY-5449) 10.8 client with 10.5 server gives
java.lang.ClassCastException: java.lang.Boolean incompatible with
java.lang.Short in NetStatementRequest.buildFDODTA with
CursorTest.testCursorParam()
Posted by "Knut Anders Hatlen (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-5449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Knut Anders Hatlen updated DERBY-5449:
--------------------------------------
Issue & fix info: Repro attached (was: Repro attached,Patch Available)
Fix Version/s: 10.9.0.0
Committed revision 1186020.
I plan to backport the fix to the 10.8 branch, so I'll keep the issue open for now.
> 10.8 client with 10.5 server gives java.lang.ClassCastException: java.lang.Boolean incompatible with java.lang.Short in NetStatementRequest.buildFDODTA with CursorTest.testCursorParam()
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: DERBY-5449
> URL: https://issues.apache.org/jira/browse/DERBY-5449
> Project: Derby
> Issue Type: Bug
> Components: Network Client
> Affects Versions: 10.8.2.2
> Reporter: Kathey Marsden
> Assignee: Knut Anders Hatlen
> Fix For: 10.9.0.0
>
> Attachments: d5449-1a.diff, d5449-1b.diff, rjall_10_5_server_10_8LatestClient_out.txt
>
>
> Using 10.8 client and 10.5 server and testing jars lang.CursorTest fails as follows:
> Java Version: 1.6.0
> Java Vendor: IBM Corporation
> Java home: C:\cygwin\ibmsvn\ntsoftware\ibm16\jre
> Java classpath: .;c:/cygwin/svn4/10.8/jars/sane/derbyclient.jar;C:/cygwin/ibmreleases/10.5.3.2.1132854/derbyTesting.jar;C:/cygwin/ibmreleases/10.5.3.
> 2.1132854/derbyrun.jar;C:/cygwin/svn4/trunka/tools/java/junit.jar;C:/cygwin/svn4/trunka/tools/java/jakarta-oro-2.0.8.jar
> OS name: Windows XP
> OS architecture: x86
> OS version: 5.1 build 2600 Service Pack 3
> Java user name: kmarsden
> Java user home: C:\Documents and Settings\Administrator
> Java user dir: C:\cygwin\home\kmarsden\repro\10_8cli10_5serverClassCast
> java.specification.name: Java Platform API Specification
> java.specification.version: 1.6
> java.runtime.version: jvmwi3260sr9-20110203_74623
> java.fullversion: JRE 1.6.0 IBM J9 2.4 Windows XP x86-32 jvmwi3260sr9-20110203_74623 (JIT enabled, AOT enabled)
> J9VM - 20110203_074623
> JIT - r9_20101028_17488ifx3
> GC - 20101027_AA
> --------- Derby Information --------
> JRE - JDBC: Java SE 6 - JDBC 4.0
> [C:\cygwin\ibmreleases\10.5.3.2.1132854\derby.jar] 10.5.3.2 - (1171883)
> [C:\cygwin\ibmreleases\10.5.3.2.1132854\derbytools.jar] 10.5.3.2 - (1171883)
> [C:\cygwin\ibmreleases\10.5.3.2.1132854\derbynet.jar] 10.5.3.2 - (1171883)
> [C:\cygwin\svn4\10.8\jars\sane\derbyclient.jar] 10.8.2.2 - (1177062M)
> ------------------------------------------------------
> ----------------- Locale Information -----------------
> Current Locale : [English/United States [en_US]]
> Found support for locale: [cs]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [de_DE]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [es]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [fr]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [hu]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [it]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [ja_JP]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [ko_KR]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [pl]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [pt_BR]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [ru]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [zh_CN]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [zh_TW]
> version: 10.8.2.2 - (1177062M)
> ------------------------------------------------------
> + java -Xmx512M -Xms512M -Dderby.tests.debug=false -Dderby.tests.trace=true '-DderbyTesting.oldReleasePath=C:\cygwin\svnreleases\jars' junit.textui.Te
> stRunner org.apache.derbyTesting.functionTests.tests.lang.CursorTest
> + tee rju.out
> .
> testCursor used 312 ms .
> testCursorParam used 156 ms .
> testGetCursorName used 204 ms .
> testCursor used 547 ms .
> testCursorParam used 625 ms E.
> testGetCursorName used 172 ms .
> derby2417testSetCursorNextExecute used 125 ms
> Time: 9.532
> There was 1 error:
> 1) testCursorParam(org.apache.derbyTesting.functionTests.tests.lang.CursorTest)java.lang.ClassCastException: java.lang.Boolean incompatible with java.
> lang.Short
> at org.apache.derby.client.net.NetStatementRequest.buildFDODTA(NetStatementRequest.java:731)
> at org.apache.derby.client.net.NetStatementRequest.buildSQLDTAcommandData(NetStatementRequest.java:540)
> at org.apache.derby.client.net.NetStatementRequest.writeOpenQuery(NetStatementRequest.java:191)
> at org.apache.derby.client.net.NetPreparedStatement.writeOpenQuery_(NetPreparedStatement.java:194)
> at org.apache.derby.client.am.PreparedStatement.writeOpenQuery(PreparedStatement.java:1819)
> at org.apache.derby.client.am.PreparedStatement.flowExecute(PreparedStatement.java:2062)
> at org.apache.derby.client.am.PreparedStatement.executeQueryX(PreparedStatement.java:391)
> at org.apache.derby.client.am.PreparedStatement.executeQuery(PreparedStatement.java:376)
> at org.apache.derbyTesting.functionTests.tests.lang.CursorTest.testCursorParam(CursorTest.java:109)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
> at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:109)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
> FAILURES!!!
> Tests run: 7, Failures: 0, Errors: 1
> + set +x
> There were quite a few (18?) other similar failures in the 10.8 client 10.5 server run, see output attached.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (DERBY-5449) Clien
Posted by "Kathey Marsden (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-5449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kathey Marsden updated DERBY-5449:
----------------------------------
Component/s: Network Client
Summary: Clien (was: 10.8 client with 10.5 server gives j ava.lang.ClassCastException: java.lang.Boolean incompatible with java.lang.Short in NetStatementRequest.buildFDODTA with CursorTest.testCursorParam )
> Clien
> -----
>
> Key: DERBY-5449
> URL: https://issues.apache.org/jira/browse/DERBY-5449
> Project: Derby
> Issue Type: Bug
> Components: Network Client
> Affects Versions: 10.8.2.2
> Reporter: Kathey Marsden
> Attachments: rjall_10_5_server_10_8LatestClient_out.txt
>
>
> Using 10.8 client and 10.5 server and testing jars lang.CursorTest fails as follows:
> Java Version: 1.6.0
> Java Vendor: IBM Corporation
> Java home: C:\cygwin\ibmsvn\ntsoftware\ibm16\jre
> Java classpath: .;c:/cygwin/svn4/10.8/jars/sane/derbyclient.jar;C:/cygwin/ibmreleases/10.5.3.2.1132854/derbyTesting.jar;C:/cygwin/ibmreleases/10.5.3.
> 2.1132854/derbyrun.jar;C:/cygwin/svn4/trunka/tools/java/junit.jar;C:/cygwin/svn4/trunka/tools/java/jakarta-oro-2.0.8.jar
> OS name: Windows XP
> OS architecture: x86
> OS version: 5.1 build 2600 Service Pack 3
> Java user name: kmarsden
> Java user home: C:\Documents and Settings\Administrator
> Java user dir: C:\cygwin\home\kmarsden\repro\10_8cli10_5serverClassCast
> java.specification.name: Java Platform API Specification
> java.specification.version: 1.6
> java.runtime.version: jvmwi3260sr9-20110203_74623
> java.fullversion: JRE 1.6.0 IBM J9 2.4 Windows XP x86-32 jvmwi3260sr9-20110203_74623 (JIT enabled, AOT enabled)
> J9VM - 20110203_074623
> JIT - r9_20101028_17488ifx3
> GC - 20101027_AA
> --------- Derby Information --------
> JRE - JDBC: Java SE 6 - JDBC 4.0
> [C:\cygwin\ibmreleases\10.5.3.2.1132854\derby.jar] 10.5.3.2 - (1171883)
> [C:\cygwin\ibmreleases\10.5.3.2.1132854\derbytools.jar] 10.5.3.2 - (1171883)
> [C:\cygwin\ibmreleases\10.5.3.2.1132854\derbynet.jar] 10.5.3.2 - (1171883)
> [C:\cygwin\svn4\10.8\jars\sane\derbyclient.jar] 10.8.2.2 - (1177062M)
> ------------------------------------------------------
> ----------------- Locale Information -----------------
> Current Locale : [English/United States [en_US]]
> Found support for locale: [cs]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [de_DE]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [es]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [fr]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [hu]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [it]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [ja_JP]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [ko_KR]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [pl]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [pt_BR]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [ru]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [zh_CN]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [zh_TW]
> version: 10.8.2.2 - (1177062M)
> ------------------------------------------------------
> + java -Xmx512M -Xms512M -Dderby.tests.debug=false -Dderby.tests.trace=true '-DderbyTesting.oldReleasePath=C:\cygwin\svnreleases\jars' junit.textui.Te
> stRunner org.apache.derbyTesting.functionTests.tests.lang.CursorTest
> + tee rju.out
> .
> testCursor used 312 ms .
> testCursorParam used 156 ms .
> testGetCursorName used 204 ms .
> testCursor used 547 ms .
> testCursorParam used 625 ms E.
> testGetCursorName used 172 ms .
> derby2417testSetCursorNextExecute used 125 ms
> Time: 9.532
> There was 1 error:
> 1) testCursorParam(org.apache.derbyTesting.functionTests.tests.lang.CursorTest)java.lang.ClassCastException: java.lang.Boolean incompatible with java.
> lang.Short
> at org.apache.derby.client.net.NetStatementRequest.buildFDODTA(NetStatementRequest.java:731)
> at org.apache.derby.client.net.NetStatementRequest.buildSQLDTAcommandData(NetStatementRequest.java:540)
> at org.apache.derby.client.net.NetStatementRequest.writeOpenQuery(NetStatementRequest.java:191)
> at org.apache.derby.client.net.NetPreparedStatement.writeOpenQuery_(NetPreparedStatement.java:194)
> at org.apache.derby.client.am.PreparedStatement.writeOpenQuery(PreparedStatement.java:1819)
> at org.apache.derby.client.am.PreparedStatement.flowExecute(PreparedStatement.java:2062)
> at org.apache.derby.client.am.PreparedStatement.executeQueryX(PreparedStatement.java:391)
> at org.apache.derby.client.am.PreparedStatement.executeQuery(PreparedStatement.java:376)
> at org.apache.derbyTesting.functionTests.tests.lang.CursorTest.testCursorParam(CursorTest.java:109)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
> at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:109)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
> FAILURES!!!
> Tests run: 7, Failures: 0, Errors: 1
> + set +x
> There were quite a few (18?) other similar failures in the 10.8 client 10.5 server run, see output attached.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (DERBY-5449) 10.8 client with 10.5 server gives
java.lang.ClassCastException: java.lang.Boolean incompatible with
java.lang.Short in NetStatementRequest.buildFDODTA with
CursorTest.testCursorParam()
Posted by "Knut Anders Hatlen (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-5449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Knut Anders Hatlen updated DERBY-5449:
--------------------------------------
Attachment: d5449-1b.diff
Here's an updated version of the patch (1b) that also adds a test case to the compatibility test suite.
> 10.8 client with 10.5 server gives java.lang.ClassCastException: java.lang.Boolean incompatible with java.lang.Short in NetStatementRequest.buildFDODTA with CursorTest.testCursorParam()
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: DERBY-5449
> URL: https://issues.apache.org/jira/browse/DERBY-5449
> Project: Derby
> Issue Type: Bug
> Components: Network Client
> Affects Versions: 10.8.2.2
> Reporter: Kathey Marsden
> Assignee: Knut Anders Hatlen
> Attachments: d5449-1a.diff, d5449-1b.diff, rjall_10_5_server_10_8LatestClient_out.txt
>
>
> Using 10.8 client and 10.5 server and testing jars lang.CursorTest fails as follows:
> Java Version: 1.6.0
> Java Vendor: IBM Corporation
> Java home: C:\cygwin\ibmsvn\ntsoftware\ibm16\jre
> Java classpath: .;c:/cygwin/svn4/10.8/jars/sane/derbyclient.jar;C:/cygwin/ibmreleases/10.5.3.2.1132854/derbyTesting.jar;C:/cygwin/ibmreleases/10.5.3.
> 2.1132854/derbyrun.jar;C:/cygwin/svn4/trunka/tools/java/junit.jar;C:/cygwin/svn4/trunka/tools/java/jakarta-oro-2.0.8.jar
> OS name: Windows XP
> OS architecture: x86
> OS version: 5.1 build 2600 Service Pack 3
> Java user name: kmarsden
> Java user home: C:\Documents and Settings\Administrator
> Java user dir: C:\cygwin\home\kmarsden\repro\10_8cli10_5serverClassCast
> java.specification.name: Java Platform API Specification
> java.specification.version: 1.6
> java.runtime.version: jvmwi3260sr9-20110203_74623
> java.fullversion: JRE 1.6.0 IBM J9 2.4 Windows XP x86-32 jvmwi3260sr9-20110203_74623 (JIT enabled, AOT enabled)
> J9VM - 20110203_074623
> JIT - r9_20101028_17488ifx3
> GC - 20101027_AA
> --------- Derby Information --------
> JRE - JDBC: Java SE 6 - JDBC 4.0
> [C:\cygwin\ibmreleases\10.5.3.2.1132854\derby.jar] 10.5.3.2 - (1171883)
> [C:\cygwin\ibmreleases\10.5.3.2.1132854\derbytools.jar] 10.5.3.2 - (1171883)
> [C:\cygwin\ibmreleases\10.5.3.2.1132854\derbynet.jar] 10.5.3.2 - (1171883)
> [C:\cygwin\svn4\10.8\jars\sane\derbyclient.jar] 10.8.2.2 - (1177062M)
> ------------------------------------------------------
> ----------------- Locale Information -----------------
> Current Locale : [English/United States [en_US]]
> Found support for locale: [cs]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [de_DE]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [es]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [fr]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [hu]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [it]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [ja_JP]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [ko_KR]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [pl]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [pt_BR]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [ru]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [zh_CN]
> version: 10.8.2.2 - (1177062M)
> Found support for locale: [zh_TW]
> version: 10.8.2.2 - (1177062M)
> ------------------------------------------------------
> + java -Xmx512M -Xms512M -Dderby.tests.debug=false -Dderby.tests.trace=true '-DderbyTesting.oldReleasePath=C:\cygwin\svnreleases\jars' junit.textui.Te
> stRunner org.apache.derbyTesting.functionTests.tests.lang.CursorTest
> + tee rju.out
> .
> testCursor used 312 ms .
> testCursorParam used 156 ms .
> testGetCursorName used 204 ms .
> testCursor used 547 ms .
> testCursorParam used 625 ms E.
> testGetCursorName used 172 ms .
> derby2417testSetCursorNextExecute used 125 ms
> Time: 9.532
> There was 1 error:
> 1) testCursorParam(org.apache.derbyTesting.functionTests.tests.lang.CursorTest)java.lang.ClassCastException: java.lang.Boolean incompatible with java.
> lang.Short
> at org.apache.derby.client.net.NetStatementRequest.buildFDODTA(NetStatementRequest.java:731)
> at org.apache.derby.client.net.NetStatementRequest.buildSQLDTAcommandData(NetStatementRequest.java:540)
> at org.apache.derby.client.net.NetStatementRequest.writeOpenQuery(NetStatementRequest.java:191)
> at org.apache.derby.client.net.NetPreparedStatement.writeOpenQuery_(NetPreparedStatement.java:194)
> at org.apache.derby.client.am.PreparedStatement.writeOpenQuery(PreparedStatement.java:1819)
> at org.apache.derby.client.am.PreparedStatement.flowExecute(PreparedStatement.java:2062)
> at org.apache.derby.client.am.PreparedStatement.executeQueryX(PreparedStatement.java:391)
> at org.apache.derby.client.am.PreparedStatement.executeQuery(PreparedStatement.java:376)
> at org.apache.derbyTesting.functionTests.tests.lang.CursorTest.testCursorParam(CursorTest.java:109)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
> at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:109)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
> FAILURES!!!
> Tests run: 7, Failures: 0, Errors: 1
> + set +x
> There were quite a few (18?) other similar failures in the 10.8 client 10.5 server run, see output attached.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira