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

Occasional NPEs in SDK unit tests

    XMLWordPrintable

    Details

    • Bug
    • Status: Done
    • Major
    • Resolution: Fixed
    • 2.6.0
    • 2.6.0
    • core apis
    • 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

              matthew Matthew Swift
              matthew Matthew Swift
              Matthew Swift Matthew Swift
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: