Uploaded image for project: 'odlparent'
  1. odlparent
  2. ODLPARENT-87

odlparent TestBundleDiag throws NPE

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • General
    • None
    • Operating System: All
      Platform: All

    • 8261

    Description

      In some cases, TestBundleDiag throws an NPE at line 130 (probably due to the fact that the bundle identified by the serviceReference has been destroyed). Null checks should be added.

      Stack trace:
      org.opendaylight.odlparent.featuretest.SingleFeatureTest
      13:05:36 installFeatureCatchAndLog(org.opendaylight.odlparent.featuretest.SingleFeatureTest)[repoUrl: file:/w/workspace/aaa-verify-nitrogen-mvn33-openjdk8/features/authn/features4-aaa/target/feature/feature.xml, Feature: odl-aaa-cert 0.6.0.SNAPSHOT] Time elapsed: 30.387 sec <<< ERROR!
      13:05:36 java.lang.NullPointerException
      13:05:36 at org.opendaylight.odlparent.bundles4test.TestBundleDiag.logOSGiServices(TestBundleDiag.java:130)
      13:05:36 at org.opendaylight.odlparent.bundles4test.TestBundleDiag.logBundleDiagInfos(TestBundleDiag.java:105)
      13:05:36 at org.opendaylight.odlparent.bundles4test.TestBundleDiag.checkBundleDiagInfos(TestBundleDiag.java:84)
      13:05:36 at org.opendaylight.odlparent.bundles4test.TestBundleDiag.checkBundleDiagInfos(TestBundleDiag.java:49)
      13:05:36 at org.opendaylight.odlparent.featuretest.SingleFeatureTest.installFeature(SingleFeatureTest.java:387)
      13:05:36 at org.opendaylight.odlparent.featuretest.SingleFeatureTest.installFeatureCatchAndLog(SingleFeatureTest.java:338)
      13:05:36 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      13:05:36 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      13:05:36 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      13:05:36 at java.lang.reflect.Method.invoke(Method.java:498)
      13:05:36 at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      13:05:36 at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      13:05:36 at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      13:05:36 at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      13:05:36 at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
      13:05:36 at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
      13:05:36 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      13:05:36 at java.lang.Thread.run(Thread.java:745)

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            rgoulding Ryan Goulding
            rgoulding Ryan Goulding
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: