javax.servlet.ServletException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Messages posted by Anachialos
    via by Unknown author,
  • servlet session listener problems - haalp
    via by Riyaz Mansoor,
  • [http] exception on session timeout
    via by raymond.auge,
  • Steps to reproduce: # Login to portal # Wait until the User session expires Expected result: No stacktrace will be thrown when the sessions expires. Actual result: The following warning and stacktrace is thrown: {code} 16:55:37,777 WARN [http-bio-8080-exec-4][code_jsp:?] {code="500", msg="", uri=/c/portal/expire_session} java.lang.IllegalStateException: getAttributeNames: Session already invalidated at org.apache.catalina.session.StandardSession.getAttributeNames(StandardSession.java:1186) at org.apache.catalina.session.StandardSessionFacade.getAttributeNames(StandardSessionFacade.java:139) at org.eclipse.equinox.http.servlet.internal.servlet.HttpSessionAdaptor.getAttributeNames0(HttpSessionAdaptor.java:152) at org.eclipse.equinox.http.servlet.internal.servlet.HttpSessionAdaptor.invalidate(HttpSessionAdaptor.java:177) at org.eclipse.equinox.http.servlet.internal.servlet.HttpSessionAdaptor$ParentSessionListener.valueUnbound(HttpSessionAdaptor.java:43) at org.apache.catalina.session.StandardSession.removeAttributeInternal(StandardSession.java:1800) at org.apache.catalina.session.StandardSession.expire(StandardSession.java:865) at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:658) at org.apache.catalina.connector.Request.doGetSession(Request.java:2869) at org.apache.catalina.connector.Request.getSessionInternal(Request.java:2516) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:427) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) 16:55:37,782 WARN [http-bio-8080-exec-4][code_jsp:?] {code="500", msg="", uri=/c/portal/expire_session} java.lang.IllegalStateException: getAttributeNames: Session already invalidated at org.apache.catalina.session.StandardSession.getAttributeNames(StandardSession.java:1186) at org.apache.catalina.session.StandardSessionFacade.getAttributeNames(StandardSessionFacade.java:139) at org.eclipse.equinox.http.servlet.internal.servlet.HttpSessionAdaptor.getAttributeNames0(HttpSessionAdaptor.java:152) at org.eclipse.equinox.http.servlet.internal.servlet.HttpSessionAdaptor.invalidate(HttpSessionAdaptor.java:177) at org.eclipse.equinox.http.servlet.internal.servlet.HttpSessionAdaptor$ParentSessionListener.valueUnbound(HttpSessionAdaptor.java:43) at org.apache.catalina.session.StandardSession.removeAttributeInternal(StandardSession.java:1800) at org.apache.catalina.session.StandardSession.expire(StandardSession.java:865) at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:658) at org.apache.catalina.connector.Request.doGetSession(Request.java:2869) at org.apache.catalina.connector.Request.getSessionInternal(Request.java:2516) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:427) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) {code} ---- h3. New version of the error More recently, it has been the following output (and the session doesn't even have to log the User out automatically with this one): {code} Mar 19, 2015 5:05:03 PM org.apache.catalina.core.ContainerBase backgroundProcess WARNING: Exception processing manager org.apache.catalina.session.StandardManager[] background process java.lang.IllegalStateException: getAttributeNames: Session already invalidated at org.apache.catalina.session.StandardSession.getAttributeNames(StandardSession.java:1186) at org.apache.catalina.session.StandardSessionFacade.getAttributeNames(StandardSessionFacade.java:139) at org.eclipse.equinox.http.servlet.internal.servlet.HttpSessionAdaptor.getAttributeNames0(HttpSessionAdaptor.java:152) at org.eclipse.equinox.http.servlet.internal.servlet.HttpSessionAdaptor.invalidate(HttpSessionAdaptor.java:177) at org.eclipse.equinox.http.servlet.internal.servlet.HttpSessionAdaptor$ParentSessionListener.valueUnbound(HttpSessionAdaptor.java:43) at org.apache.catalina.session.StandardSession.removeAttributeInternal(StandardSession.java:1800) at org.apache.catalina.session.StandardSession.expire(StandardSession.java:865) at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:658) at org.apache.catalina.session.ManagerBase.processExpires(ManagerBase.java:534) at org.apache.catalina.session.ManagerBase.backgroundProcess(ManagerBase.java:519) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1352) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1530) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1519) at java.lang.Thread.run(Thread.java:745) {code}
    via by Brian Wulbern,
    • javax.servlet.ServletException: PWC1386: Servlet.destroy() for servlet Persistent Faces Servlet threw exception at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1448) at org.apache.catalina.core.StandardWrapper.stop(StandardWrapper.java:1796) at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1102) at org.apache.catalina.core.StandardContext.removeChild(StandardContext.java:3774) at org.apache.catalina.startup.ContextConfig.stop(ContextConfig.java:1046) at com.sun.enterprise.web.WebModuleContextConfig.lifecycleEvent(WebModuleContextConfig.java:158) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:143) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:5327) at com.sun.enterprise.web.WebModule.stop(WebModule.java:356) at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1102) at com.sun.enterprise.web.WebContainer.unloadWebModule(WebContainer.java:2204) at com.sun.enterprise.web.WebContainer.unloadWebModule(WebContainer.java:2134) at com.sun.enterprise.server.WebModuleDeployEventListener.moduleUndeployed(WebModuleDeployEventListener.java:226) at com.sun.enterprise.server.WebModuleDeployEventListener.moduleUndeployed(WebModuleDeployEventListener.java:313) at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:976) at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:961) at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:464) at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:176) at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308) at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:226) at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStopEvent(ServerDeploymentTarget.java:332) at com.sun.enterprise.deployment.phasing.ApplicationStopPhase.runPhase(ApplicationStopPhase.java:136) at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108) at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919) at com.sun.enterprise.deployment.phasing.PEDeploymentService.stop(PEDeploymentService.java:652) at com.sun.enterprise.deployment.phasing.PEDeploymentService.stop(PEDeploymentService.java:699) at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.stop(ApplicationsConfigMBean.java:767) 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 com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:375) at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:358) at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:464) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761) at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90) at $Proxy1.invoke(Unknown Source) at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304) at com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174) at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:69) at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:155) at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:122) at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:193) at javax.servlet.http.HttpServlet.service(HttpServlet.java:738) at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:196) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:270) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:339) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:261) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:212) at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265) at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:116) Caused by: java.lang.IllegalStateException: PWC2779: getAttributeNames: Session already invalidated at org.apache.catalina.session.StandardSession.getAttributeNames(StandardSession.java:1188) at org.apache.catalina.session.StandardSessionFacade.getAttributeNames(StandardSessionFacade.java:153) at com.icesoft.faces.webapp.http.core.DisposeBeans.in(DisposeBeans.java:25) at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.shutdown(MainSessionBoundServlet.java:110) at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.shutdown(SessionDispatcher.java:53) at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.shutdown(PathDispatcher.java:60) at com.icesoft.faces.webapp.http.servlet.PathDispatcher.shutdown(PathDispatcher.java:68) at com.icesoft.faces.webapp.http.servlet.MainServlet.destroy(MainServlet.java:90) at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1433) ... 79 more
    No Bugmate found.