JspScriptEngineFactory throws NullPointerException on deactivate ----------------------------------------------------------------
Key: SLING-530 URL: https://issues.apache.org/jira/browse/SLING-530 Project: Sling Issue Type: Bug Components: Scripting JSP Affects Versions: 2.0.1 Environment: Darwin 9.3.0 Darwin Kernel Version 9.3.0: Fri May 23 00:49:16 PDT 2008; root:xnu-1228.5.18~1/RELEASE_I386 i386 Reporter: Dominique Jäggi Priority: Minor Upon shutting down Sling, the following exception is thrown: 13.06.2008 09:32:17.491 *ERROR* [main] org.apache.sling.scripting.jsp.JspScriptEngineFactory deactivate: Caught NullPointerException ! Just logging java.lang.NullPointerException at org.eclipse.equinox.http.servlet.internal.ServletContextAdaptor.removeAttribute(ServletContextAdaptor.java:75) at org.apache.sling.engine.impl.helper.SlingServletContext.removeAttribute(SlingServletContext.java:204) at org.apache.sling.scripting.jsp.JspScriptEngineFactory.deactivate(JspScriptEngineFactory.java:244) 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:585) at org.apache.felix.scr.impl.ImmediateComponentManager.disposeImplementationObject(ImmediateComponentManager.java:269) at org.apache.felix.scr.impl.ImmediateComponentManager.deleteComponent(ImmediateComponentManager.java:150) at org.apache.felix.scr.impl.DelayedComponentManager.deleteComponent(DelayedComponentManager.java:61) at org.apache.felix.scr.impl.AbstractComponentManager.deactivateInternal(AbstractComponentManager.java:549) at org.apache.felix.scr.impl.AbstractComponentManager.deactivate(AbstractComponentManager.java:233) at org.apache.felix.scr.impl.DependencyManager.serviceRemoved(DependencyManager.java:242) at org.apache.felix.scr.impl.DependencyManager.serviceChanged(DependencyManager.java:124) at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:765) at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:623) at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:554) at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3612) at org.apache.felix.framework.Felix.access$000(Felix.java:36) at org.apache.felix.framework.Felix$1.serviceChanged(Felix.java:626) at org.apache.felix.framework.ServiceRegistry.fireServiceChanged(ServiceRegistry.java:559) at org.apache.felix.framework.ServiceRegistry.unregisterService(ServiceRegistry.java:96) at org.apache.felix.framework.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:112) at org.apache.sling.engine.impl.helper.SlingServletContext.dispose(SlingServletContext.java:101) at org.apache.sling.engine.impl.SlingMainServlet.deactivate(SlingMainServlet.java:629) 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:585) at org.apache.felix.scr.impl.ImmediateComponentManager.disposeImplementationObject(ImmediateComponentManager.java:269) at org.apache.felix.scr.impl.ImmediateComponentManager.deleteComponent(ImmediateComponentManager.java:150) at org.apache.felix.scr.impl.AbstractComponentManager.deactivateInternal(AbstractComponentManager.java:549) at org.apache.felix.scr.impl.AbstractComponentManager.deactivate(AbstractComponentManager.java:233) at org.apache.felix.scr.impl.DependencyManager.serviceRemoved(DependencyManager.java:242) at org.apache.felix.scr.impl.DependencyManager.serviceChanged(DependencyManager.java:124) at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:765) at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:623) at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:554) at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3612) at org.apache.felix.framework.Felix.access$000(Felix.java:36) at org.apache.felix.framework.Felix$1.serviceChanged(Felix.java:626) at org.apache.felix.framework.ServiceRegistry.fireServiceChanged(ServiceRegistry.java:559) at org.apache.felix.framework.ServiceRegistry.unregisterService(ServiceRegistry.java:96) at org.apache.felix.framework.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:112) at org.eclipse.equinox.http.servlet.internal.Activator.removeProxyServlet(Activator.java:84) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.destroy(ProxyServlet.java:43) at org.apache.sling.launcher.webapp.SlingServlet.destroy(SlingServlet.java:210) (...) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.