openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim McConnell (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (OPENJPA-1292) NullPointerException when handling WriteBehindConfigurationException
Date Fri, 11 Sep 2009 04:58:57 GMT

    [ 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.


Mime
View raw message