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

Knut Anders Hatlen commented on DERBY-5488:
-------------------------------------------

Thanks, the changes look good to me. I thought perhaps these changes might make 
ParameterMappingTest work on CDC/FP now, so I enabled the test and ran it on 
phoneME and on Oracle Java ME Embedded Client. It still failed, but now the 
failures were NullPointerExceptions. For example:

1) 
test_jdbc4_1_objectMappings(org.apache.derbyTesting.functionTests.tests.jdbcapi.ParameterMappingTest)java.sql.SQLException:
 Java exception: ': java.lang.NullPointerException'.
        at 
org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:45)
        at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:142)
        at org.apache.derby.impl.jdbc.Util.javaException(Util.java:299)
        at 
org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(TransactionResourceImpl.java:436)
        at 
org.apache.derby.impl.jdbc.EmbedResultSet.noStateChangeException(EmbedResultSet.java:4472)
        at 
org.apache.derby.impl.jdbc.EmbedPreparedStatement.setBigDecimal(EmbedPreparedStatement.java:470)
        at 
org.apache.derby.impl.jdbc.EmbedPreparedStatement.setObject(EmbedPreparedStatement.java:1356)
        at 
org.apache.derbyTesting.functionTests.tests.jdbcapi.ParameterMappingTest.test_jdbc4_1_objectMappings(ParameterMappingTest.java:958)
        at 
org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:116)
        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 sun.misc.CVM.runMain(CVM.java:555)
Caused by: java.lang.NullPointerException
        at java.math.BigDecimal.compareTo(BigDecimal.java:788)
        at java.math.BigDecimal.compareTo(BigDecimal.java:815)
        at 
org.apache.derby.iapi.types.NumberDataType.setBigDecimal(NumberDataType.java:434)
        at 
org.apache.derby.impl.jdbc.EmbedPreparedStatement.setBigDecimal(EmbedPreparedStatement.java:467)
        ... 22 more

Do you see any reason why the call to setBigDecimal() should fail with a 
NullPointerException here?
                
> Add remaining JDBC 4.1 bits which did not appear in the Java 7 javadoc.
> -----------------------------------------------------------------------
>
>                 Key: DERBY-5488
>                 URL: https://issues.apache.org/jira/browse/DERBY-5488
>             Project: Derby
>          Issue Type: Improvement
>          Components: JDBC, SQL
>    Affects Versions: 10.9.0.0
>            Reporter: Rick Hillegas
>            Assignee: Rick Hillegas
>         Attachments: JDBC_4.1_Supplement.html, 
> derby-5488-01-aa-objectMappingAndConversion.diff, 
> derby-5488-02-aa-fixBigInteger.diff, 
> derby-5488-03-ac-moveDecimalSetterGetterAndTest.diff
>
>
> In addition to the JDBC 4.1 bits which were visible in the Java 7 javadoc, a 
> couple other items appear in the JDBC 4.1 Maintenance Review spec. This spec 
> has been published on the JCP website at 
> http://download.oracle.com/otndocs/jcp/jdbc-4_1-mrel-eval-spec/index.html. I 
> will attach a functional spec for the remaining bits.

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

        

Reply via email to