AdeptJ / adeptj-runtime

High performance, dynamic, modular runtime for RESTful APIs, MicroServices and WebApps.

Home Page:https://www.adeptj.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NPE resetting logger when no categories were added from OSGi configuration and the config is deleted.

rakeshk15 opened this issue · comments

commented

java.lang.NullPointerException: Cannot invoke "java.util.Map.remove(Object)" because "this.configByPid" is null at com.adeptj.runtime.logging.LogbackManager.resetLoggers(LogbackManager.java:174) at com.adeptj.runtime.osgi.LoggerConfigFactoryListener.serviceChanged(LoggerConfigFactoryListener.java:61) at org.apache.felix.framework.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:990) at org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:838) at org.apache.felix.framework.EventDispatcher.fireServiceEvent(EventDispatcher.java:545) at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4863) at org.apache.felix.framework.Felix.access$000(Felix.java:111) at org.apache.felix.framework.Felix$1.serviceChanged(Felix.java:440) at org.apache.felix.framework.ServiceRegistry.unregisterService(ServiceRegistry.java:170) at org.apache.felix.framework.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:146) at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.unregister(AbstractComponentManager.java:952) at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.unregister(AbstractComponentManager.java:915) at org.apache.felix.scr.impl.manager.RegistrationManager.changeRegistration(RegistrationManager.java:140) at org.apache.felix.scr.impl.manager.AbstractComponentManager.unregisterService(AbstractComponentManager.java:994) at org.apache.felix.scr.impl.manager.AbstractComponentManager.doDeactivate(AbstractComponentManager.java:844) at org.apache.felix.scr.impl.manager.AbstractComponentManager.deactivateInternal(AbstractComponentManager.java:825) at org.apache.felix.scr.impl.manager.AbstractComponentManager.dispose(AbstractComponentManager.java:589) at org.apache.felix.scr.impl.manager.ConfigurableComponentHolder.configurationDeleted(ConfigurableComponentHolder.java:335) at org.apache.felix.scr.impl.manager.RegionConfigurationSupport.configurationEvent(RegionConfigurationSupport.java:310) at org.apache.felix.scr.impl.manager.RegionConfigurationSupport$2.configurationEvent(RegionConfigurationSupport.java:115) at org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.sendEvent(ConfigurationManager.java:1723) at org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.run(ConfigurationManager.java:1664) at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:122) at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:84) at java.base/java.lang.Thread.run(Thread.java:833)