[ODLPARENT-87] odlparent TestBundleDiag throws NPE Created: 20/Apr/17  Updated: 24/Jan/18  Resolved: 21/Apr/17

Status: Resolved
Project: odlparent
Component/s: General
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Ryan Goulding Assignee: Ryan Goulding
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 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)



 Comments   
Comment by Ryan Goulding [ 20/Apr/17 ]

https://git.opendaylight.org/gerrit/#/c/55737/

Comment by Vratko Polak [ 21/Apr/17 ]

> https://git.opendaylight.org/gerrit/#/c/55737/

Also the Carbon one has been merged: https://git.opendaylight.org/gerrit/55748
so FIXED is the correct status, I believe.

Comment by Ryan Goulding [ 21/Apr/17 ]

Agreed this was just fixed an hour ago. Thanks for tracking this so carefully, Vratko . I'll update the tracking sheet.

Generated at Wed Feb 07 20:27:35 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.