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 (Updated) (JIRA)" <ji...@apache.org> on 2012/02/09 21:08:58 UTC

[jira] [Updated] (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: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