[ODLPARENT-236] Upgrade Felix SCR to 2.1.18+ Created: 04/Dec/19  Updated: 04/Jun/20  Resolved: 04/Jun/20

Status: Resolved
Project: odlparent
Component/s: Karaf
Affects Version/s: 6.0.7, 7.0.2, 5.0.7
Fix Version/s: 5.0.8, 7.0.3, 6.0.8

Type: Bug Priority: Medium
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Observed in OVSDB CSIT:

2019-12-04T07:20:41,242 | ERROR | SystemReadyService-0 | KarafSystemReady                 | 249 - org.opendaylight.infrautils.ready-impl - 1.7.0.SNAPSHOT | Boot failed; not all SystemReadyListeners were not called, SystemState FAILURE
java.lang.NullPointerException: null
	at org.apache.felix.scr.impl.ComponentRegistry.getComponentHolders(ComponentRegistry.java:360) ~[?:?]
	at org.apache.felix.scr.impl.runtime.ServiceComponentRuntimeImpl.getComponentDescriptionDTOs(ServiceComponentRuntimeImpl.java:76) ~[?:?]
	at org.apache.karaf.scr.state.ScrBundleStateService.getDiag(ScrBundleStateService.java:43) ~[?:?]
	at org.apache.karaf.bundle.core.internal.BundleServiceImpl.getDiag(BundleServiceImpl.java:112) ~[?:?]
	at Proxy3fe0a7aa_4f02_41e1_846b_e34ff5062233.getDiag(Unknown Source) ~[?:?]
	at org.opendaylight.odlparent.bundlestest.lib.BundleDiagInfosImpl.forContext(BundleDiagInfosImpl.java:90) ~[?:?]
	at org.opendaylight.odlparent.bundlestest.lib.TestBundleDiag.getBundleDiagInfos(TestBundleDiag.java:118) ~[?:?]
	at org.awaitility.core.AbstractHamcrestCondition$1.eval(AbstractHamcrestCondition.java:50) ~[?:?]
	at org.awaitility.core.ConditionAwaiter$ConditionPoller.call(ConditionAwaiter.java:190) ~[?:?]
	at org.awaitility.core.ConditionAwaiter$ConditionPoller.call(ConditionAwaiter.java:177) ~[?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
	at java.lang.Thread.run(Thread.java:834) [?:?]
2019-12-04T07:20:41,264 | ERROR | SystemReadyService-0 | KarafSystemReady                 | 249 - org.opendaylight.infrautils.ready-impl - 1.7.0.SNAPSHOT | Thread terminated due to uncaught exception: SystemReadyService-0
java.lang.NullPointerException: null
	at org.apache.felix.scr.impl.ComponentRegistry.getComponentHolders(ComponentRegistry.java:360) ~[?:?]
	at org.apache.felix.scr.impl.runtime.ServiceComponentRuntimeImpl.getComponentDescriptionDTOs(ServiceComponentRuntimeImpl.java:76) ~[?:?]
	at org.apache.karaf.scr.state.ScrBundleStateService.getDiag(ScrBundleStateService.java:43) ~[?:?]
	at org.apache.karaf.bundle.core.internal.BundleServiceImpl.getDiag(BundleServiceImpl.java:112) ~[?:?]
	at Proxy3fe0a7aa_4f02_41e1_846b_e34ff5062233.getDiag(Unknown Source) ~[?:?]
	at org.opendaylight.odlparent.bundlestest.lib.BundleDiagInfosImpl.forContext(BundleDiagInfosImpl.java:90) ~[?:?]
	at org.opendaylight.odlparent.bundlestest.lib.TestBundleDiag.getBundleDiagInfos(TestBundleDiag.java:118) ~[?:?]
	at org.awaitility.core.AbstractHamcrestCondition$1.eval(AbstractHamcrestCondition.java:50) ~[?:?]
	at org.awaitility.core.ConditionAwaiter$ConditionPoller.call(ConditionAwaiter.java:190) ~[?:?]
	at org.awaitility.core.ConditionAwaiter$ConditionPoller.call(ConditionAwaiter.java:177) ~[?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
	at java.lang.Thread.run(Thread.java:834) [?:?]


 Comments   
Comment by Robert Varga [ 04/Dec/19 ]

Complete log: https://logs.opendaylight.org/releng/vex-yul-odl-jenkins-1/ovsdb-csit-3node-gate-clustering-only-magnesium/9/odl_3/odl3_karaf.log.gz

Comment by Robert Varga [ 04/Dec/19 ]

This looks like a Felix SCR bug, where the component list can contain nulls – filed https://issues.apache.org/jira/browse/FELIX-6206.

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