Current Position:Home > Any idea why "DynamicClassLoaderProviderImpl" exception is thrown?

Any idea why "DynamicClassLoaderProviderImpl" exception is thrown?

Update:11-30Source: network consolidation
Advertisement
09.05.2013 07:55:22.190 *INFO* [OsgiInstallerImpl] com.day.crx.crxde-support Service [com.day.crx.ide.CRXDECompileServlet,1615] ServiceEvent UNREGISTERING 09.05.2013 07:55:22.192 *INFO* [OsgiInstallerImpl] org.apache.sling.jcr.compiler Service [org.apache.sling.jcr.compiler.impl.JcrJavaCompilerImpl,1612] ServiceEvent UNREGISTERING 09.05.2013 07:55:22.192 *INFO* [OsgiInstallerImpl] org.apache.sling.commons.compiler Service [org.apache.sling.commons.compiler.impl.EclipseJavaCompiler,1609] ServiceEvent UNREGISTERING 09.05.2013 07:55:22.193 *ERROR* [OsgiInstallerImpl] org.apache.sling.jcr.classloader [org.apache.sling.jcr.classloader.internal.DynamicClassLoaderProviderImpl] The deactivate method has thrown an exception (java.lang.NullPointerException: Specified service reference cannot be null.) java.lang.NullPointerException: Specified service reference cannot be null.      at org.apache.felix.framework.BundleContextImpl.ungetService(BundleContextImpl.java:338)      at org.apache.sling.jcr.classloader.internal.ClassLoaderWriterImpl.destroyRepositoryClassLoa der(ClassLoaderWriterImpl.java:182)      at org.apache.sling.jcr.classloader.internal.ClassLoaderWriterImpl.deactivate(ClassLoaderWri terImpl.java:147)      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)      at java.lang.reflect.Method.invoke(Method.java:597)      at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:227)      at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:38)      at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:591)      at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:472)      at org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:146)      at org.apache.felix.scr.impl.manager.ImmediateComponentManager.disposeImplementationObject(I mmediateComponentManager.java:260)      at org.apache.felix.scr.impl.manager.ServiceFactoryComponentManager.ungetService(ServiceFact oryComponentManager.java:150)      at org.apache.felix.framework.ServiceRegistrationImpl.ungetFactoryUnchecked(ServiceRegistrat ionImpl.java:351)      at org.apache.felix.framework.ServiceRegistrationImpl.ungetService(ServiceRegistrationImpl.j ava:260)      at org.apache.felix.framework.ServiceRegistry.ungetService(ServiceRegistry.java:371)      at org.apache.felix.framework.Felix.ungetService(Felix.java:3022)      at org.apache.felix.framework.BundleContextImpl.ungetService(BundleContextImpl.java:342)      at org.apache.felix.scr.impl.manager.DependencyManager.ungetService(DependencyManager.java:8 19)      at org.apache.felix.scr.impl.manager.DependencyManager.unbind(DependencyManager.java:1000)      at org.apache.felix.scr.impl.manager.DependencyManager.close(DependencyManager.java:880)      at org.apache.felix.scr.impl.manager.ImmediateComponentManager.disposeImplementationObject(I mmediateComponentManager.java:268)      at org.apache.felix.scr.impl.manager.ImmediateComponentManager.deleteComponent(ImmediateComp onentManager.java:135)      at org.apache.felix.scr.impl.manager.DelayedComponentManager.deleteComponent(DelayedComponen tManager.java:67)      at org.apache.felix.scr.impl.manager.AbstractComponentManager$Satisfied.deactivate(AbstractC omponentManager.java:1223)      at org.apache.felix.scr.impl.manager.AbstractComponentManager.deactivateInternal(AbstractCom ponentManager.java:339)      at org.apache.felix.scr.impl.manager.DependencyManager.serviceRemoved(DependencyManager.java :346)      at org.apache.felix.scr.impl.manager.DependencyManager.serviceChanged(DependencyManager.java :253)      at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispat cher.java:871)      at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java :733)      at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:662 )      at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3765)      at org.apache.felix.framework.Felix.access$000(Felix.java:80)      at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:722)      at org.apache.felix.framework.ServiceRegistry.unregisterService(ServiceRegistry.java:130)      at org.apache.felix.framework.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.jav a:129)      at org.apache.felix.scr.impl.manager.AbstractComponentManager.unregisterComponentService(Abs tractComponentManager.java:565)      at org.apache.felix.scr.impl.manager.AbstractComponentManager$Satisfied.deactivate(AbstractC omponentManager.java:1222)      at org.apache.felix.scr.impl.manager.AbstractComponentManager.deactivateInternal(AbstractCom ponentManager.java:339)      at org.apache.felix.scr.impl.manager.DependencyManager.serviceRemoved(DependencyManager.java :346)      at org.apache.felix.scr.impl.manager.DependencyManager.serviceChanged(DependencyManager.java :253)      at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispat cher.java:871)      at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java :733)      at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:662 )      at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3765)      at org.apache.felix.framework.Felix.access$000(Felix.java:80)      at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:722)      at org.apache.felix.framework.ServiceRegistry.unregisterService(ServiceRegistry.java:130)      at org.apache.felix.framework.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.jav a:129)      at org.apache.sling.commons.classloader.impl.Activator.unregisterManagerFactory(Activator.ja va:86)      at org.apache.sling.commons.classloader.impl.Activator.bundleChanged(Activator.java:124)      at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatc her.java:807)      at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java :729)      at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:610)      at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3754)      at org.apache.felix.framework.Felix.uninstallBundle(Felix.java:2365)      at org.apache.felix.framework.BundleImpl.uninstall(BundleImpl.java:982)      at org.apache.sling.installer.core.impl.tasks.BundleRemoveTask.execute(BundleRemoveTask.java :58)      at org.apache.sling.installer.core.impl.OsgiInstallerImpl.executeTasks(OsgiInstallerImpl.jav a:733)      at org.apache.sling.installer.core.impl.OsgiInstallerImpl.run(OsgiInstallerImpl.java:247)      at java.lang.Thread.run(Thread.java:662) 09.05.2013 07:55:22.194 *INFO* [Thread-28512] org.apache.jackrabbit.core.journal.AbstractJournal Record with revision '24189450477568' created by this journal, skipped.

The Best Answer

Advertisement
Hello,
It would be good if you explaine problem in detail. anyhow there could be two reason
1. If you are using latest version of CQ then plz refer http://dev.day.com/docs/en/cq/current/javadoc/org/apache/sling/commons/classloader/Dynamic ClassLoaderProvider.html which say this api is deprecated and not valid for service implementation. Just check.
2. In exception if you see there is a message which say "(java.lang.NullPointerException: Specified service reference cannot be null" it means the service which you are referring or using is either not available (which may be the reason mentioned above) or you are not able to get the reference of it properly. Check the osgi console for the status of this service and deployment status.
Let me know if you need more help.
Thanks,
Pawan