Return-Path: X-Original-To: apmail-openjpa-dev-archive@www.apache.org Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 603CD930F for ; Thu, 9 Feb 2012 20:19:21 +0000 (UTC) Received: (qmail 2812 invoked by uid 500); 9 Feb 2012 20:19:21 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 2752 invoked by uid 500); 9 Feb 2012 20:19:20 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 2744 invoked by uid 99); 9 Feb 2012 20:19:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2012 20:19:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2012 20:19:18 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 492AF1AAAC2 for ; Thu, 9 Feb 2012 20:18:57 +0000 (UTC) Date: Thu, 9 Feb 2012 20:18:57 +0000 (UTC) From: "Helen Xu (Assigned) (JIRA)" To: dev@openjpa.apache.org Message-ID: <382205484.20929.1328818737301.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <707251773.20845.1328817659146.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Assigned] (OPENJPA-2124) Use of XMLValueHandler results in a NullPointerException when classloader does not provide package support MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on 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