Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
scr-2.1.2
-
None
-
MacOS 10.14, JDK 8, bnd-maven-plugin 4.0.0
Description
I have updated to SCR 2.1.2 with Felix LogService 1.2.0 and getting
java.lang.IllegalArgumentException: Bundle org.apache.felix.scr [81] is not resolved.
IMHO, this happens due to the org.apache.felix.log.LogServiceImpl#getLogger(Bundle bundle, String name, Class<L> loggerType) checking if the calling Bundle is in active or resolved state. ** Since the SCR bundle is in starting state which throws the above mentioned exception.
Here is the stack trace.
java.lang.IllegalArgumentException: Bundle org.apache.felix.scr [81] is not resolved. at org.apache.felix.log.LogServiceImpl.getLogService(LogServiceImpl.java:153) at org.apache.felix.log.LogServiceImpl.getLogger(LogServiceImpl.java:146) at org.apache.felix.scr.impl.logger.R7LogServiceLogger.<init>(R7LogServiceLogger.java:35) at org.apache.felix.scr.impl.logger.LogServiceSupport.getLogger(LogServiceSupport.java:69) at org.apache.felix.scr.impl.logger.LogServiceEnabledLogger.getLogger(LogServiceEnabledLogger.java:106) at org.apache.felix.scr.impl.logger.AbstractLogger.isLogEnabled(AbstractLogger.java:71) at org.apache.felix.scr.impl.logger.AbstractLogger.log(AbstractLogger.java:110) at org.apache.felix.scr.impl.Activator.restart(Activator.java:143) at org.apache.felix.scr.impl.config.ScrConfigurationImpl.configure(ScrConfigurationImpl.java:213) at org.apache.felix.scr.impl.config.ScrConfigurationImpl.start(ScrConfigurationImpl.java:118) at org.apache.felix.scr.impl.Activator.start(Activator.java:100) at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697) at org.apache.felix.framework.Felix.activateBundle(Felix.java:2398) at org.apache.felix.framework.Felix.startBundle(Felix.java:2304) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1535) at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308) at java.lang.Thread.run(Thread.java:748)
Please look into this as I am blocked due to this.