Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 2176 invoked from network); 11 Sep 2009 04:59:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Sep 2009 04:59:20 -0000 Received: (qmail 54123 invoked by uid 500); 11 Sep 2009 04:59:20 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 54052 invoked by uid 500); 11 Sep 2009 04:59: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 54042 invoked by uid 99); 11 Sep 2009 04:59:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Sep 2009 04:59:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Sep 2009 04:59:18 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 72FCC234C004 for ; Thu, 10 Sep 2009 21:58:57 -0700 (PDT) Message-ID: <863997248.1252645137453.JavaMail.jira@brutus> Date: Thu, 10 Sep 2009 21:58:57 -0700 (PDT) From: "Tim McConnell (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Issue Comment Edited: (OPENJPA-1292) NullPointerException when handling WriteBehindConfigurationException In-Reply-To: <809894166.1252643937479.JavaMail.jira@brutus> 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-1292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12754000#action_12754000 ] Tim McConnell edited comment on OPENJPA-1292 at 9/10/09 9:58 PM: ----------------------------------------------------------------- This patch will prevent NullPointerExceptions when WriteBehindConfigurationExceptions are thrown. I haven't provided a testcase as the failure can easily be demonstrated by running only the existing WriteBehindConfiguration(s) testcases...... was (Author: mcconne): This patch will prevent NullPointerExceptions when WriteBehindConfigurationExceptions are throw. I haven't provided a testcase as the failure can easily be demonstrated by running only the existing WriteBehindConfiguration(s) testcases...... > NullPointerException when handling WriteBehindConfigurationException > -------------------------------------------------------------------- > > Key: OPENJPA-1292 > URL: https://issues.apache.org/jira/browse/OPENJPA-1292 > Project: OpenJPA > Issue Type: Bug > Components: writebehind > Affects Versions: 2.0.0 > Reporter: Tim McConnell > Assignee: Tim McConnell > Priority: Minor > Fix For: 2.0.0 > > Attachments: OPENJPA-1292.patch > > > There is a small window in PersistenceProviderImpl where an exception can be caught such that the _log instance variable is used prior to it being initialized, resulting in a NullPointerException getting thrown and masking the real exception (e.g., WriteBehindConfigurationException). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.