DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to. DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued
Issue Details (XML | Word | Printable)

Key: NUCCORE-472
Type: Task Task
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Andy Jefferson
Reporter: jerome
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
DataNucleus Core

QueryUtils createResultObjectUsingArgumentedConstructor does not manage well NULLfield - consequently setResultClass with some NULL column throw Exception

Created: 25/Feb/10 06:37 PM   Updated: 17/Mar/10 08:54 PM   Resolved: 26/Feb/10 09:53 AM
Component/s: None
Affects Version/s: 1.1.5, 1.1.6, 2.0.1
Fix Version/s: 2.0.2

File Attachments: 1. Zip Archive (2 kB)

Environment: jdk 1.6 - datanucleus 1.1.5, 1.1.6, 2.0.1 and 2.0.1+ - Oracle 9i

Forum Thread URL:,5982
Datastore: Oracle
Severity: Production

 Description  « Hide

Here is a simple Junit test case that show that method createResultObjectUsingArgumentedConstructor of class QueryUtils is not able to found the correct constructor when the value of one field is NULL.
I notice this issue using a query with setResultClass which return lines with some NULL column.

I put in attchement the junit test case. I repoduce the issue on both branch 1.1 (the version i'm using) and trunk 2.0.1+

Best Regards,


jerome added a comment - 25/Feb/10 06:38 PM
Simple Junit test case on QueryUtils

jerome made changes - 25/Feb/10 06:38 PM
Field Original Value New Value
Attachment [ 11100 ]
Andy Jefferson added a comment - 26/Feb/10 09:53 AM
SVN trunk now works. Thx

Andy Jefferson made changes - 26/Feb/10 09:53 AM
Status Open [ 1 ] Resolved [ 5 ]
Assignee Andy Jefferson [ andy ]
Fix Version/s 2.0.2 [ 10874 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 17/Mar/10 08:54 PM
Status Resolved [ 5 ] Closed [ 6 ]