db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Korneliussen (JIRA)" <derby-...@db.apache.org>
Subject [jira] Updated: (DERBY-1177) updateObject with null as argument causes network driver to fail with NullPointerException
Date Tue, 04 Apr 2006 14:57:57 GMT
     [ http://issues.apache.org/jira/browse/DERBY-1177?page=all ]

Andreas Korneliussen updated DERBY-1177:

    Attachment: DERBY-1177.diff

Attaching the fix.

In addition, a new junit test is added which tests the semantics of updateXXX + updateRow
on different SQL columns, and the master files are updated for updatableResultSet test.

I have run derbyall with the fix (without master file change), and it only failed in updatableResultSet.
After fixing the master file, I have successfully run that test with embedded and DerbyNetClient
framework. Starting derbyall again now, and will attach the report once completed tomorrow.

Note:updatableResultSet test fails with JDK 1.3 and JDK 1.6, with and without this patch,
probably due to outdated master files.

> updateObject with null as argument causes network driver to fail with NullPointerException
> ------------------------------------------------------------------------------------------
>          Key: DERBY-1177
>          URL: http://issues.apache.org/jira/browse/DERBY-1177
>      Project: Derby
>         Type: Bug

>   Components: Network Client
>     Versions:
>     Reporter: Andreas Korneliussen
>     Assignee: Andreas Korneliussen
>     Priority: Minor
>  Attachments: DERBY-1177.diff, DERBY-1177.stat, UpdateXXXTest.java
> Calling ResultSet.updateObject(column, object) causes the network driver to give NullPointerException
if the object parameter is null.
> Stack trace from test:
> Test output:
> ........E.
> Time: 7.597
> There was 1 error:
> 1) testUpdateObjectWithNull(org.apache.derbyTesting.functionTests.tests.jdbcapi.UpdateXXXTest)java.lang.NullPointerException
>         at org.apache.derby.client.am.CrossConverters.setObject(CrossConverters.java:845)
>         at org.apache.derby.client.am.ResultSet.updateObject(ResultSet.java:3073)
>         at org.apache.derbyTesting.functionTests.tests.jdbcapi.UpdateXXXTest.testUpdateObjectWithNull(UpdateXXXTest.java:215)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> Will attach the test.
> To run:
> java -Dframework=DerbyNetClient org.apache.derbyTesting.functionTests.harness.RunTest
> The test does not fail with the embedded framework.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message