OpenJPA
  1. OpenJPA
  2. OPENJPA-1296 WriteBehindCache Problems
  3. OPENJPA-1292

NullPointerException when handling WriteBehindConfigurationException

    Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0-M3
    • Component/s: writebehind
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

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

      1. OPENJPA-1292.patch
        0.9 kB
        Tim McConnell

        Activity

        Tim McConnell created issue -
        Tim McConnell made changes -
        Field Original Value New Value
        Component/s writebehind [ 12312973 ]
        Hide
        Tim McConnell added a comment - - edited

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

        Show
        Tim McConnell added a comment - - edited 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......
        Tim McConnell made changes -
        Attachment OPENJPA-1292.patch [ 12419270 ]
        Hide
        Donald Woods added a comment -

        Thanks Tim for catching this!

        Show
        Donald Woods added a comment - Thanks Tim for catching this!
        Donald Woods made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.0.0-M3 [ 12314148 ]
        Fix Version/s 2.0.0 [ 12314019 ]
        Resolution Fixed [ 1 ]
        Hide
        Tim McConnell added a comment -

        Patch committed at r813879 – closing...

        Show
        Tim McConnell added a comment - Patch committed at r813879 – closing...
        Tim McConnell made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Tim McConnell made changes -
        Parent OPENJPA-1296 [ 12435519 ]
        Issue Type Bug [ 1 ] Sub-task [ 7 ]

          People

          • Assignee:
            Tim McConnell
            Reporter:
            Tim McConnell
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development