openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Helen Xu (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OPENJPA-2124) Use of XMLValueHandler results in a NullPointerException when classloader does not provide package support
Date Thu, 09 Feb 2012 20:00:59 GMT
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

        

Mime
View raw message