You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Jeremy Bauer (Commented) (JIRA)" <ji...@apache.org> on 2012/02/09 22:54:57 UTC

[jira] [Commented] (OPENJPA-2124) Use of XMLValueHandler results in a NullPointerException when classloader does not provide package support

    [ 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