Issue in the application configuration implementation when using the watcher service on shutdown #198

Closed
cescoffier opened this Issue May 2, 2014 · 3 comments

Comments

Projects
None yet
1 participant
@cescoffier
Member

cescoffier commented May 2, 2014

On shutdown, the application configuration implementation fails to use the watcher service (to unregistered the conf directory).

''''
[INFO]      o.w.c.j.JacksonSingleton {FelixStartLevel} - Removing Jackson module Hibernate-Validator-Module
01/05/14 14:44:00 (S) LoggerService.log : [ERROR]  : [org.wisdom.configuration.ApplicationConfigurationImpl-0] The callback method stop has thrown an exception : Service interface org.ow2.chameleon.core.services.Watcher unavailable
java.lang.RuntimeException: Service interface org.ow2.chameleon.core.services.Watcher unavailable
     at org.apache.felix.ipojo.handlers.dependency.Dependency.getService(Dependency.java:672)
     at org.ow2.chameleon.core.services.Watcher$$Proxy.removeAndStopIfNeeded(Unknown Source)
     at org.wisdom.configuration.ApplicationConfigurationImpl.__M_stop(ApplicationConfigurationImpl.java:131)
     at org.wisdom.configuration.ApplicationConfigurationImpl.stop(ApplicationConfigurationImpl.java)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:483)
     at org.apache.felix.ipojo.util.Callback.call(Callback.java:237)
     at org.apache.felix.ipojo.util.Callback.call(Callback.java:193)
     at org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallback.call(LifecycleCallback.java:86)
     at org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallbackHandler.__M_stateChanged(LifecycleCallbackHandler.java:162)
     at org.apache.felix.ipojo.handlers.lifecycle.callback.LifecycleCallbackHandler.stateChanged(LifecycleCallbackHandler.java)
     at org.apache.felix.ipojo.InstanceManager.setState(InstanceManager.java:572)
     at org.apache.felix.ipojo.InstanceManager.stop(InstanceManager.java:459)
     at org.apache.felix.ipojo.extender.internal.linker.ManagedType$InstanceSupport.removedService(ManagedType.java:371)
     at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:956)
     at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:864)
     at org.osgi.util.tracker.AbstractTracked.untrack(AbstractTracked.java:341)
     at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:902)
     at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:943)
     at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:794)
     at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:544)
     at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4425)
     at org.apache.felix.framework.Felix.access$000(Felix.java:75)
     at org.apache.felix.framework.Felix$1.serviceChanged(Felix.java:402)
     at org.apache.felix.framework.ServiceRegistry.unregisterService(ServiceRegistry.java:153)
     at org.apache.felix.framework.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:128)
     at org.apache.felix.ipojo.extender.internal.AbstractService.stop(AbstractService.java:78)
     at org.apache.felix.ipojo.extender.internal.processor.ComponentsBundleProcessor$ComponentsAndInstances.stop(ComponentsBundleProcessor.java:220)
     at org.apache.felix.ipojo.extender.internal.processor.ComponentsBundleProcessor.deactivate(ComponentsBundleProcessor.java:112)
     at org.apache.felix.ipojo.extender.internal.processor.ForwardingBundleProcessor.deactivate(ForwardingBundleProcessor.java:42)
     at org.apache.felix.ipojo.extender.internal.processor.ChainedBundleProcessor.deactivate(ChainedBundleProcessor.java:100)
     at org.apache.felix.ipojo.extender.internal.Extender$1.removedBundle(Extender.java:214)
     at org.osgi.util.tracker.BundleTracker$Tracked.customizerRemoved(BundleTracker.java:491)
     at org.osgi.util.tracker.BundleTracker$Tracked.customizerRemoved(BundleTracker.java:414)
     at org.osgi.util.tracker.AbstractTracked.untrack(AbstractTracked.java:341)
     at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:449)
     at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:869)
     at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:790)
     at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:515)
     at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4409)
     at org.apache.felix.framework.Felix.stopBundle(Felix.java:2526)
     at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1315)
     at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
     at java.lang.Thread.run(Thread.java:744)
01/05/14 14:44:01 (S) LoggerService.log : [ERROR]  : java.lang.RuntimeException: Service interface org.ow2.chameleon.core.services.Watcher unavailable
''''

@cescoffier cescoffier added this to the 0.6 milestone May 2, 2014

@cescoffier cescoffier added the bug label May 2, 2014

@cescoffier

This comment has been minimized.

Show comment
Hide comment
@cescoffier

cescoffier May 2, 2014

Member

For information, the bug is really minor as the osgi framework is stopping, un registering the directory is meaningless.

Member

cescoffier commented May 2, 2014

For information, the bug is really minor as the osgi framework is stopping, un registering the directory is meaningless.

@cescoffier

This comment has been minimized.

Show comment
Hide comment
@cescoffier

cescoffier May 4, 2014

Member

Also seen in the Thymeleaf Template Deployer:

5/4/14 1:49:27 PM (W) LoggerService.log : [WARNING]  : [org.wisdom.template.thymeleaf.tracker.TemplateDeployer-0] The dependency is not optional, however no service object can be injected in watcher -> org.ow2.chameleon.core.services.Watcher
Member

cescoffier commented May 4, 2014

Also seen in the Thymeleaf Template Deployer:

5/4/14 1:49:27 PM (W) LoggerService.log : [WARNING]  : [org.wisdom.template.thymeleaf.tracker.TemplateDeployer-0] The dependency is not optional, however no service object can be injected in watcher -> org.ow2.chameleon.core.services.Watcher

@cescoffier cescoffier modified the milestones: 0.5.1, 0.6 May 7, 2014

@cescoffier

This comment has been minimized.

Show comment
Hide comment
@cescoffier

cescoffier May 7, 2014

Member

update milestone.

Member

cescoffier commented May 7, 2014

update milestone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment