You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Helen Xu (Created) (JIRA)" <ji...@apache.org> on 2012/02/09 21:00:59 UTC
[jira] [Created] (OPENJPA-2124) Use of XMLValueHandler results in a
NullPointerException when classloader does not provide package support
Use of XMLValueHandler results in a NullPointerException when classloader does not provide package support
----------------------------------------------------------------------------------------------------------
Key: OPENJPA-2124
URL: https://issues.apache.org/jira/browse/OPENJPA-2124
Project: OpenJPA
Issue Type: Bug
Components: jdbc
Affects Versions: 2.1.0, 2.0.1, 2.0.0, 2.3.0
Environment: JEE Environment
Reporter: Helen Xu
XMLValueHandler is used to convert xml content from database to java object. It threw NullPointerException from XMLValueHandler.toObjectValue() when class loader does not provide package support.
Basically getPackage() function call in XMLValueHandler.toObjectValue returns null.
The fix is to parse the entity class name directly to retrieve the package name.
--
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
[jira] [Assigned] (OPENJPA-2124) Use of XMLValueHandler results in
a NullPointerException when classloader does not provide package support
Posted by "Helen Xu (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-2124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Helen Xu reassigned OPENJPA-2124:
---------------------------------
Assignee: Helen Xu
> Use of XMLValueHandler results in a NullPointerException when classloader does not provide package support
> ----------------------------------------------------------------------------------------------------------
>
> Key: OPENJPA-2124
> URL: https://issues.apache.org/jira/browse/OPENJPA-2124
> Project: OpenJPA
> Issue Type: Bug
> Components: jdbc
> Affects Versions: 2.0.0, 2.0.1, 2.1.0, 2.3.0
> Environment: JEE Environment
> Reporter: Helen Xu
> Assignee: Helen Xu
> Attachments: OPENJPA_2124.patch.txt
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> XMLValueHandler is used to convert xml content from database to java object. It threw NullPointerException from XMLValueHandler.toObjectValue() when class loader does not provide package support.
> Basically getPackage() function call in XMLValueHandler.toObjectValue returns null.
> The fix is to parse the entity class name directly to retrieve the package name.
--
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
[jira] [Commented] (OPENJPA-2124) Use of XMLValueHandler results in
a NullPointerException when classloader does not provide package support
Posted by "Jeremy Bauer (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-2124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13204928#comment-13204928 ]
Jeremy Bauer commented on OPENJPA-2124:
---------------------------------------
Committed patch for Helen (with minor cleanup) under revision 1242547.
> Use of XMLValueHandler results in a NullPointerException when classloader does not provide package support
> ----------------------------------------------------------------------------------------------------------
>
> Key: OPENJPA-2124
> URL: https://issues.apache.org/jira/browse/OPENJPA-2124
> Project: OpenJPA
> Issue Type: Bug
> Components: jdbc
> Affects Versions: 2.0.0, 2.0.1, 2.1.0, 2.3.0
> Environment: JEE Environment
> Reporter: Helen Xu
> Assignee: Helen Xu
> Attachments: OPENJPA_2124.patch.txt
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> XMLValueHandler is used to convert xml content from database to java object. It threw NullPointerException from XMLValueHandler.toObjectValue() when class loader does not provide package support.
> Basically getPackage() function call in XMLValueHandler.toObjectValue returns null.
> The fix is to parse the entity class name directly to retrieve the package name.
--
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
[jira] [Updated] (OPENJPA-2124) Use of XMLValueHandler results in a
NullPointerException when classloader does not provide package support
Posted by "Helen Xu (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-2124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Helen Xu updated OPENJPA-2124:
------------------------------
Attachment: OPENJPA_2124.patch.txt
> Use of XMLValueHandler results in a NullPointerException when classloader does not provide package support
> ----------------------------------------------------------------------------------------------------------
>
> Key: OPENJPA-2124
> URL: https://issues.apache.org/jira/browse/OPENJPA-2124
> Project: OpenJPA
> Issue Type: Bug
> Components: jdbc
> Affects Versions: 2.0.0, 2.0.1, 2.1.0, 2.3.0
> Environment: JEE Environment
> Reporter: Helen Xu
> Attachments: OPENJPA_2124.patch.txt
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> XMLValueHandler is used to convert xml content from database to java object. It threw NullPointerException from XMLValueHandler.toObjectValue() when class loader does not provide package support.
> Basically getPackage() function call in XMLValueHandler.toObjectValue returns null.
> The fix is to parse the entity class name directly to retrieve the package name.
--
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
[jira] [Resolved] (OPENJPA-2124) Use of XMLValueHandler results in
a NullPointerException when classloader does not provide package support
Posted by "Helen Xu (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-2124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Helen Xu resolved OPENJPA-2124.
-------------------------------
Resolution: Fixed
Fix Version/s: 2.2.0
fix checked in by Jeramy under revision 1242547
> Use of XMLValueHandler results in a NullPointerException when classloader does not provide package support
> ----------------------------------------------------------------------------------------------------------
>
> Key: OPENJPA-2124
> URL: https://issues.apache.org/jira/browse/OPENJPA-2124
> Project: OpenJPA
> Issue Type: Bug
> Components: jdbc
> Affects Versions: 2.0.0, 2.0.1, 2.1.0, 2.3.0
> Environment: JEE Environment
> Reporter: Helen Xu
> Assignee: Helen Xu
> Fix For: 2.2.0
>
> Attachments: OPENJPA_2124.patch.txt
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> XMLValueHandler is used to convert xml content from database to java object. It threw NullPointerException from XMLValueHandler.toObjectValue() when class loader does not provide package support.
> Basically getPackage() function call in XMLValueHandler.toObjectValue returns null.
> The fix is to parse the entity class name directly to retrieve the package name.
--
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