Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-994

Occasional NPEs in SDK unit tests

    Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: 2.6.0
    • Component/s: core apis
    • Labels:
      None

      Description

      Here's an example:

      Failed Test:  com.forgerock.opendj.ldap.controls.AccountUsabilityRequestControlTestCase#setUp
      Failure Cause:  java.lang.NullPointerException
          com.forgerock.opendj.util.ReferenceCountedObject$Reference.get(ReferenceCountedObject.java:57)
          com.forgerock.opendj.ldap.LDAPListenerImpl.<init>(LDAPListenerImpl.java:88)
          org.forgerock.opendj.ldap.LDAPListener.<init>(LDAPListener.java:186)
          org.forgerock.opendj.ldap.LDAPServer.start(LDAPServer.java:544)
          org.forgerock.opendj.ldap.TestCaseUtils.startServer(TestCaseUtils.java:115)
          org.forgerock.opendj.ldap.controls.ControlsTestCase.setUp(ControlsTestCase.java:52)
      

      It looks like the reference counting mechanism does not handle the case where references are finalized, having already been released, and the instance is null.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                matthew Matthew Swift
                Reporter:
                matthew Matthew Swift
                Dev Assignee:
                Matthew Swift
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: