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
Operations

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 junitQueryUtils.zip (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: http://www.jpox.org/servlet/forum/viewthread_thread,5982
Datastore: Oracle
Severity: Production


 Description  « Hide
Hello,

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,

   Jérôme

Sort Order: Ascending order - Click to sort in descending order
jerome added a comment - 25/Feb/10 06:38 PM
Simple Junit test case on QueryUtils

Andy Jefferson added a comment - 26/Feb/10 09:53 AM
SVN trunk now works. Thx