db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kathey Marsden (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-2403) ParameterMappingTest.testParameterMapping() fails on weme6.1
Date Tue, 06 Mar 2007 21:16:24 GMT

    [ https://issues.apache.org/jira/browse/DERBY-2403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12478580
] 

Kathey Marsden commented on DERBY-2403:
---------------------------------------

Here is the nested exception with the underlying trace.  When executing a batch setByte on
a DECIMAL column fails because DataType.setInto() calls getObject during executeBatch, but
it executes normally setByte is set and the statement is executed with executeUpdate. I will
disable on J2ME until this issue is resolved.

.ERROR 22005: An attempt was made to get a data value of type 'java.lang.Object' from a data
value of type 'DECIMAL'.
        at org.apache.derby.iapi.error.StandardException.newException(StandardException.java:316)
        at org.apache.derby.iapi.types.DataType.dataTypeConversion(DataType.java:1038)
        at org.apache.derby.iapi.types.DataType.getObject(DataType.java:576)
        at org.apache.derby.iapi.types.DataType.setInto(DataType.java:621)
        at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeBatchElement(EmbedPreparedStatement.java:1007)
        at org.apache.derby.impl.jdbc.EmbedStatement.executeBatch(EmbedStatement.java:924)
        at org.apache.derbyTesting.functionTests.tests.jdbcapi.ParameterMappingTest.setXXX(ParameterMappingTest.java:134
2)
        at org.apache.derbyTesting.functionTests.tests.jdbcapi.ParameterMappingTest.testParameterMapping(ParameterMappin
gTest.java:407)
        at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)
        at java.lang.reflect.Method.invoke(Method.java:253)
        at junit.framework.TestCase.runTest(TestCase.java:154)
        at junit.framework.TestCase.runBare(TestCase.java:127)
        at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:76)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at junit.textui.TestRunner.doRun(TestRunner.java:116)
        at junit.textui.TestRunner.start(TestRunner.java:172)
        at junit.textui.TestRunner.main(TestRunner.java:138)



> ParameterMappingTest.testParameterMapping() fails on weme6.1
> ------------------------------------------------------------
>
>                 Key: DERBY-2403
>                 URL: https://issues.apache.org/jira/browse/DERBY-2403
>             Project: Derby
>          Issue Type: Test
>    Affects Versions: 10.3.0.0
>         Environment: weme6.1
>            Reporter: A B
>            Priority: Minor
>
> Test fails with the following diff (edited for readability):
>     testParameterMapping(jdbcapi.ParameterMappingTest)junit.framework.AssertionFailedError:
>     (22005):An attempt was made to get a data value of type 'java.lang.Object' from a
data value of type 'DECIMAL'.
>      at ParameterMappingTest.showException(ParameterMappingTest.java:2827)
>      at ParameterMappingTest.judge_setXXX(ParameterMappingTest.java:1239)
>      at ParameterMappingTest.setXXX(ParameterMappingTest.java:1352)
>      at ParameterMappingTest.testParameterMapping(ParameterMappingTest.java:407)
>      at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)
>      at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:80)
> Noticed this failure since roughly 03/01/2007.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message