users@glassfish.java.net

Glassfish hung on port 80 (Failed to invoke action getSession on MBean ..)

From: <glassfish_at_javadesktop.org>
Date: Wed, 19 Nov 2008 00:04:18 PST

Hi All,
      Our web application could not response any request on port 80 for two times and there were hundreds of active sessions. In the meanwhile I could connect to admin port 4848 and view Glassfish status.

OS:
  SunOS hostxyz 5.10 Generic_127127-11 sun4u sparc SUNW,Sun-Fire-V490

JDK:
   jdk1.6.0_10(64-bit)

Glassfish:
    Sun Java System Application Server 9.1_02 (build b04-fcs)

OS status:
   CPU <1%, Free Memory: 3GB

Log:
[#|2008-11-19T13:33:24.279+0800|SEVERE|sun-appserver9.1|com.sun.org.apache.commons.modeler.BaseModelMBean|_ThreadID=26;_ThreadName=httpWorkerThread-4848-3;_RequestID=ce2fd3a4-48fa-45b8-8e0e-f0f1c11d968b;|Exception invoking method getSession
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 org.apache.catalina.session.ManagerBase.getSession(ManagerBase.java:1380)
        at sun.reflect.GeneratedMethodAccessor1085.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
        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.web.monitor.impl.PwcWebModuleStatsImpl.getSession(PwcWebModuleStatsImpl.java:345)
        at com.sun.enterprise.web.stats.WebModuleStatsImpl.getSessions(WebModuleStatsImpl.java:306)
        at sun.reflect.GeneratedMethodAccessor1084.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.monitor.stats.GenericStatsImpl.getStatistic(GenericStatsImpl.java:119)
        at com.sun.enterprise.admin.monitor.stats.GenericStatsImpl.getStatisticsOneByOne(GenericStatsImpl.java:145)
        at com.sun.enterprise.admin.monitor.stats.GenericStatsImpl.getStatistics(GenericStatsImpl.java:136)
        at com.sun.enterprise.web.stats.WebModuleStatsImpl.getStatistics(WebModuleStatsImpl.java:347)
        at com.sun.enterprise.admin.monitor.registry.spi.StatsHolderMBeanImpl.getStatistics(StatsHolderMBeanImpl.java:398)
        at com.sun.enterprise.admin.monitor.registry.spi.StatsHolderMBeanImpl.invoke(StatsHolderMBeanImpl.java:213)
        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.tools.admingui.util.JMXUtil.invoke(JMXUtil.java:119)
        at com.sun.enterprise.tools.admingui.util.JMXUtil.invoke(JMXUtil.java:75)
        at com.sun.enterprise.tools.admingui.handlers.MonitorHandlers.addOption(MonitorHandlers.java:115)
        at com.sun.enterprise.tools.admingui.handlers.MonitorHandlers.fillMenuOptions(MonitorHandlers.java:174)
        at com.sun.enterprise.tools.admingui.handlers.MonitorHandlers.fillMenuOptions(MonitorHandlers.java:178)
        at com.sun.enterprise.tools.admingui.handlers.MonitorHandlers.populateMonitorDropDown(MonitorHandlers.java:225)
        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.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:421)
        at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:343)
        at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:317)
        at com.sun.jsftemplating.layout.event.CommandActionListener.invokeCommandHandlers(CommandActionListener.java:133)
        at com.sun.jsftemplating.layout.event.CommandActionListener.processAction(CommandActionListener.java:81)
        at javax.faces.event.ActionEvent.processListener(ActionEvent.java:77)
        at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:746)
        at com.sun.webui.jsf.component.WebuiInput.broadcast(WebuiInput.java:200)
        at com.sun.webui.jsf.component.DropDown.broadcast(DropDown.java:279)
        at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447)
        at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:494)
        at com.sun.jsftemplating.layout.LayoutViewRoot.processDecodes(LayoutViewRoot.java:126)
        at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:101)
        at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
        at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
        at com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:80)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
        at com.sun.enterprise.tools.admingui.servlet.DelayedInitFacesServlet.service(DelayedInitFacesServlet.java:89)
        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 com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:240)
        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:272)
        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:341)
        at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
        at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
        at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
        at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:116)
|#]

[#|2008-11-19T13:33:24.285+0800|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web.pwc|_ThreadID=26;_ThreadName=httpWorkerThread-4848-3;_RequestID=ce2fd3a4-48fa-45b8-8e0e-f0f1c11d968b;|PWC1001: Failed to invoke action getSession on MBean com.sun.appserv:type=Manager,path=/its,host=server
javax.management.RuntimeOperationsException: Exception invoking method getSession
        at com.sun.org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:511)
        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.web.monitor.impl.PwcWebModuleStatsImpl.getSession(PwcWebModuleStatsImpl.java:345)
        at com.sun.enterprise.web.stats.WebModuleStatsImpl.getSessions(WebModuleStatsImpl.java:306)
        at sun.reflect.GeneratedMethodAccessor1084.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.monitor.stats.GenericStatsImpl.getStatistic(GenericStatsImpl.java:119)
        at com.sun.enterprise.admin.monitor.stats.GenericStatsImpl.getStatisticsOneByOne(GenericStatsImpl.java:145)
        at com.sun.enterprise.admin.monitor.stats.GenericStatsImpl.getStatistics(GenericStatsImpl.java:136)
        at com.sun.enterprise.web.stats.WebModuleStatsImpl.getStatistics(WebModuleStatsImpl.java:347)
        at com.sun.enterprise.admin.monitor.registry.spi.StatsHolderMBeanImpl.getStatistics(StatsHolderMBeanImpl.java:398)
        at com.sun.enterprise.admin.monitor.registry.spi.StatsHolderMBeanImpl.invoke(StatsHolderMBeanImpl.java:213)
        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.tools.admingui.util.JMXUtil.invoke(JMXUtil.java:119)
        at com.sun.enterprise.tools.admingui.util.JMXUtil.invoke(JMXUtil.java:75)
        at com.sun.enterprise.tools.admingui.handlers.MonitorHandlers.addOption(MonitorHandlers.java:115)
        at com.sun.enterprise.tools.admingui.handlers.MonitorHandlers.fillMenuOptions(MonitorHandlers.java:174)
        at com.sun.enterprise.tools.admingui.handlers.MonitorHandlers.fillMenuOptions(MonitorHandlers.java:178)
        at com.sun.enterprise.tools.admingui.handlers.MonitorHandlers.populateMonitorDropDown(MonitorHandlers.java:225)
        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.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:421)
        at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:343)
        at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:317)
        at com.sun.jsftemplating.layout.event.CommandActionListener.invokeCommandHandlers(CommandActionListener.java:133)
        at com.sun.jsftemplating.layout.event.CommandActionListener.processAction(CommandActionListener.java:81)
        at javax.faces.event.ActionEvent.processListener(ActionEvent.java:77)
        at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:746)
        at com.sun.webui.jsf.component.WebuiInput.broadcast(WebuiInput.java:200)
        at com.sun.webui.jsf.component.DropDown.broadcast(DropDown.java:279)
        at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447)
        at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:494)
        at com.sun.jsftemplating.layout.LayoutViewRoot.processDecodes(LayoutViewRoot.java:126)
        at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:101)
        at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
        at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
        at com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:80)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
        at com.sun.enterprise.tools.admingui.servlet.DelayedInitFacesServlet.service(DelayedInitFacesServlet.java:89)
        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 com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:240)
        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:272)
        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:341)
        at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
        at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
        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 org.apache.catalina.session.ManagerBase.getSession(ManagerBase.java:1380)
        at sun.reflect.GeneratedMethodAccessor1085.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
        ... 88 more
|#]
[Message sent by forum member 'richard_tsai' (richard_tsai)]

http://forums.java.net/jive/thread.jspa?messageID=317526