java.lang.IllegalStateException: The portlet worker has been canceled, the request is no longer in a valid state

Apereo Issues | James Wennmacher | 3 years ago
  1. 0

    If a user switches to another tab or closes the browser session while uPortal is rendering the portlets, the logs are filled with messages such as (for each portlet worker thread that is currently executing...) WARN [http-8443-43-scme1302] worker.PortletResourceExecutionWorker.[] 2013-06-05 07:05:46,445 - Execution timed out on portlet window 34_u32l1n12_19451 Portlet Thread State: RUNNABLE Portlet Thread Stack Trace: at java.net.SocketInputStream.socketRead0(Native Method) ... Portal Stack Trace: java.util.concurrent.TimeoutException at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:228) ... ERROR [http-8443-43-scme1302] rendering.PortletExecutionManager.[] 2013-06-05 07:05:46,445 - resource worker failed with exception java.util.concurrent.TimeoutException at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:228) ... WARN [http-8443-43-scme1302] rendering.PortletExecutionManager.[] 2013-06-05 07:05:46,445 - PortletExecutionWorker [portletFname=huskynet-email, timeout=20000, portletWindowId=34_u32l1n12_19451, started=1370433926429, submitted=1370433926429, complete=0, retrieved=true, canceled=false, cancelCount=0, wait=0, duration=-1370433926429] has not completed, adding to hung-worker cleanup queue: PortletWindow [portletWindowId=34_u32l1n12_19451, delegationParentId=null, portletMode=view, windowState=normal, expirationCache=null, renderParameters={}, publicRenderParameters={}, portletEntity=PortletEntity [portletEntityId=34_u32l1n12_19451, layoutNodeId=u32l1n12, userId=19451, portletDefinition=PortletDefinition [portletDefinitionId=34, fname=huskynet-email, portletDescriptorKey=PortletDescriptorKey [frameworkPortlet=false, webAppName=/email-preview, portletName=email-preview], portletType=PortletTypeImpl [internalId=1, name=Portlet, descr=Adapter for JSR-168 and JSR-286 Portlets, cpdUri=/org/jasig/portal/portlets/GenericPortlet.cpd.xml]]]] ... (when the portlet thread continues execution and calls through GuardingHttpServletRequest) ERROR [uP-PortletExec-11949-scme1302-RESOURCE-[huskynet-email]] worker.PortletResourceExecutionWorker.[] 2013-06-05 07:05:52,866 - HandlerInterceptor.postExecution threw exception java.lang.IllegalStateException: The portlet worker has been canceled, the request is no longer in a valid state at org.jasig.portal.portlet.rendering.worker.GuardingHttpServletRequest.checkState(GuardingHttpServletRequest.java:55) ... and the portlet worker threads will continue until they either 1) finish execution, 2) abort when they try to get info from uPortal by calling through GuardingHttpServletRequest or GuardingHttpServeletResponse, or 3) if there is a real problem the same messages will be displayed if the thread is actually hung and has timed out. Changes to make: 1. To differentiate case 1 and 2 from 3, check the duration and don't log it as a potentially hung thread unless the duration is >= portlet's timeout as configured in the Portlet Admin. a). For case 1 and 2 set a flag indicating it is not a timeout but instead a pre-mature termination probably due to user switching tags or closing the browser and log a single INFO message indicating portlet worker thread abandon likely due to user switching tabs or closing browser instead of WARN and ERROR. You may still want to display a stack trace in case the thread becomes a hung thread, though it would be nice to instead display the worker thread's stack trace only the first time the "is hung" message is logged. b) In GuardingHttpServletRequest, if we are in case 1 or 2 (pre-mature flag is set), log a INFO without a stack trace instead of the ERROR with message 'The portlet worker has been canceled, the request is no longer in a valid state'. 2. For case #3, report the warning, but don't report the 1st ERROR so we don't have multiple messages for the same error (unless it somehow adds value - I don't see it). Also I don't think there is any value in having the portal stack trace but not a big deal if it is there. a) And in GuardingHttpServletRequest log an INFO message without a stack trace, not an ERROR. 3. Fix the duration value in the rendering.PortletExecutionManager WARN message to indicate correct duration (it's -1370433926429 in this example). 4. Change started to display a time value instead of long time. Summary, generate the messages: Case 1 and 2: INFO [http-8443-43-scme1302] worker.PortletResourceExecutionWorker.[] 2013-06-05 07:05:46,445 - Requesting portlet worker thread PortletExecutionWorker [portletFname=huskynet-email, timeout=20000, portletWindowId=34_u32l1n12_19451, started=1370433926429, submitted=1370433926429, complete=0, retrieved=true, canceled=false, cancelCount=0, wait=0, duration=32ms] to terminate due to pre-mature termination by user (probably from switching tabs or closing the browser before portlet thread completed) (when the portlet thread continues execution and calls through GuardingHttpServletRequest, pre-mature termination flag is set, log info with helpful message, no stack trace) INFO [uP-PortletExec-11949-scme1302-RESOURCE-[huskynet-email]] worker.PortletResourceExecutionWorker.[] 2013-06-05 07:05:52,866 - HandlerInterceptor.postExecution threw exception java.lang.IllegalStateException: The portlet worker has been canceled due to user prematurely aborting worker, the request is no longer in a valid state (if thread really hangs) 1st hung message is ERROR with stack trace, additional are WARN without stack trace; e.g. ERROR [uP-TaskExec-265-cleanupHungWorkers] rendering.PortletExecutionManager.[] 2013-06-22 02:23:23,926 - PortletExecutionWorker [portletFname=huskynet-email, timeout=20000, portletWindowId=34_u32l1n12_3936, started=1371885634677, submitted=1371885634677, complete=0, retrieved=true, canceled=true, cancelCount=150, wait=0, duration=20132ms] is still hung, cancel has been called 150 times. <stack trace> WARN [uP-TaskExec-268-cleanupHungWorkers] rendering.PortletExecutionManager.[] 2013-06-22 02:25:53,925 - PortletExecutionWorker [portletFname=huskynet-email, timeout=20000, portletWindowId=34_u32l1n12_3936, started=1371885634677, submitted=1371885634677, complete=0, retrieved=true, canceled=true, cancelCount=300, wait=0, duration=Xms] is still hung, cancel has been called 300 times <no stack trace> Case 3: WARN [http-8443-43-scme1302] worker.PortletResourceExecutionWorker.[] 2013-06-05 07:05:46,445 - Execution timed out on portlet window 34_u32l1n12_19451 Portlet Thread State: RUNNABLE Portlet Thread Stack Trace: at java.net.SocketInputStream.socketRead0(Native Method) ... (no portal stack trace) (when exception is TimeoutException, can log message as INFO to compliment WARN from the worker. For other exception types retain current behavior INFO [http-8443-43-scme1302] rendering.PortletExecutionManager.[] 2013-06-05 07:05:46,445 - resource worker failed with exception java.util.concurrent.TimeoutException (no stack trace for TimeoutException since PortletResourceExecutionWorker already has stack trace) WARN [http-8443-43-scme1302] rendering.PortletExecutionManager.[] 2013-06-05 07:05:46,445 - PortletExecutionWorker [portletFname=huskynet-email, timeout=20000, portletWindowId=34_u32l1n12_19451, started=1370433926429, submitted=1370433926429, complete=0, retrieved=true, canceled=false, cancelCount=0, wait=0, duration=-1370433926429] has not completed, adding to hung-worker cleanup queue: PortletWindow [portletWindowId=34_u32l1n12_19451, delegationParentId=null, portletMode=view, windowState=normal, expirationCache=null, renderParameters={}, publicRenderParameters={}, portletEntity=PortletEntity [portletEntityId=34_u32l1n12_19451, layoutNodeId=u32l1n12, userId=19451, portletDefinition=PortletDefinition [portletDefinitionId=34, fname=huskynet-email, portletDescriptorKey=PortletDescriptorKey [frameworkPortlet=false, webAppName=/email-preview, portletName=email-preview], portletType=PortletTypeImpl [internalId=1, name=Portlet, descr=Adapter for JSR-168 and JSR-286 Portlets, cpdUri=/org/jasig/portal/portlets/GenericPortlet.cpd.xml]]]] (if thread really hangs) 1st hung message is ERROR with stack trace, additional are WARN without stack trace; e.g. ERROR [uP-TaskExec-265-cleanupHungWorkers] rendering.PortletExecutionManager.[] 2013-06-22 02:23:23,926 - PortletExecutionWorker [portletFname=huskynet-email, timeout=20000, portletWindowId=34_u32l1n12_3936, started=1371885634677, submitted=1371885634677, complete=0, retrieved=true, canceled=true, cancelCount=150, wait=0, duration=20132ms] is still hung, cancel has been called 150 times. <stack trace> WARN [uP-TaskExec-268-cleanupHungWorkers] rendering.PortletExecutionManager.[] 2013-06-22 02:25:53,925 - PortletExecutionWorker [portletFname=huskynet-email, timeout=20000, portletWindowId=34_u32l1n12_3936, started=1371885634677, submitted=1371885634677, complete=0, retrieved=true, canceled=true, cancelCount=300, wait=0, duration=Xms] is still hung, cancel has been called 300 times <no stack trace>

    Apereo Issues | 3 years ago | James Wennmacher
    java.lang.IllegalStateException: The portlet worker has been canceled, the request is no longer in a valid state
  2. 0

    If a user switches to another tab or closes the browser session while uPortal is rendering the portlets, the logs are filled with messages such as (for each portlet worker thread that is currently executing...) WARN [http-8443-43-scme1302] worker.PortletResourceExecutionWorker.[] 2013-06-05 07:05:46,445 - Execution timed out on portlet window 34_u32l1n12_19451 Portlet Thread State: RUNNABLE Portlet Thread Stack Trace: at java.net.SocketInputStream.socketRead0(Native Method) ... Portal Stack Trace: java.util.concurrent.TimeoutException at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:228) ... ERROR [http-8443-43-scme1302] rendering.PortletExecutionManager.[] 2013-06-05 07:05:46,445 - resource worker failed with exception java.util.concurrent.TimeoutException at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:228) ... WARN [http-8443-43-scme1302] rendering.PortletExecutionManager.[] 2013-06-05 07:05:46,445 - PortletExecutionWorker [portletFname=huskynet-email, timeout=20000, portletWindowId=34_u32l1n12_19451, started=1370433926429, submitted=1370433926429, complete=0, retrieved=true, canceled=false, cancelCount=0, wait=0, duration=-1370433926429] has not completed, adding to hung-worker cleanup queue: PortletWindow [portletWindowId=34_u32l1n12_19451, delegationParentId=null, portletMode=view, windowState=normal, expirationCache=null, renderParameters={}, publicRenderParameters={}, portletEntity=PortletEntity [portletEntityId=34_u32l1n12_19451, layoutNodeId=u32l1n12, userId=19451, portletDefinition=PortletDefinition [portletDefinitionId=34, fname=huskynet-email, portletDescriptorKey=PortletDescriptorKey [frameworkPortlet=false, webAppName=/email-preview, portletName=email-preview], portletType=PortletTypeImpl [internalId=1, name=Portlet, descr=Adapter for JSR-168 and JSR-286 Portlets, cpdUri=/org/jasig/portal/portlets/GenericPortlet.cpd.xml]]]] ... (when the portlet thread continues execution and calls through GuardingHttpServletRequest) ERROR [uP-PortletExec-11949-scme1302-RESOURCE-[huskynet-email]] worker.PortletResourceExecutionWorker.[] 2013-06-05 07:05:52,866 - HandlerInterceptor.postExecution threw exception java.lang.IllegalStateException: The portlet worker has been canceled, the request is no longer in a valid state at org.jasig.portal.portlet.rendering.worker.GuardingHttpServletRequest.checkState(GuardingHttpServletRequest.java:55) ... and the portlet worker threads will continue until they either 1) finish execution, 2) abort when they try to get info from uPortal by calling through GuardingHttpServletRequest or GuardingHttpServeletResponse, or 3) if there is a real problem the same messages will be displayed if the thread is actually hung and has timed out. Changes to make: 1. To differentiate case 1 and 2 from 3, check the duration and don't log it as a potentially hung thread unless the duration is >= portlet's timeout as configured in the Portlet Admin. a). For case 1 and 2 set a flag indicating it is not a timeout but instead a pre-mature termination probably due to user switching tags or closing the browser and log a single INFO message indicating portlet worker thread abandon likely due to user switching tabs or closing browser instead of WARN and ERROR. You may still want to display a stack trace in case the thread becomes a hung thread, though it would be nice to instead display the worker thread's stack trace only the first time the "is hung" message is logged. b) In GuardingHttpServletRequest, if we are in case 1 or 2 (pre-mature flag is set), log a INFO without a stack trace instead of the ERROR with message 'The portlet worker has been canceled, the request is no longer in a valid state'. 2. For case #3, report the warning, but don't report the 1st ERROR so we don't have multiple messages for the same error (unless it somehow adds value - I don't see it). Also I don't think there is any value in having the portal stack trace but not a big deal if it is there. a) And in GuardingHttpServletRequest log an INFO message without a stack trace, not an ERROR. 3. Fix the duration value in the rendering.PortletExecutionManager WARN message to indicate correct duration (it's -1370433926429 in this example). 4. Change started to display a time value instead of long time. Summary, generate the messages: Case 1 and 2: INFO [http-8443-43-scme1302] worker.PortletResourceExecutionWorker.[] 2013-06-05 07:05:46,445 - Requesting portlet worker thread PortletExecutionWorker [portletFname=huskynet-email, timeout=20000, portletWindowId=34_u32l1n12_19451, started=1370433926429, submitted=1370433926429, complete=0, retrieved=true, canceled=false, cancelCount=0, wait=0, duration=32ms] to terminate due to pre-mature termination by user (probably from switching tabs or closing the browser before portlet thread completed) (when the portlet thread continues execution and calls through GuardingHttpServletRequest, pre-mature termination flag is set, log info with helpful message, no stack trace) INFO [uP-PortletExec-11949-scme1302-RESOURCE-[huskynet-email]] worker.PortletResourceExecutionWorker.[] 2013-06-05 07:05:52,866 - HandlerInterceptor.postExecution threw exception java.lang.IllegalStateException: The portlet worker has been canceled due to user prematurely aborting worker, the request is no longer in a valid state (if thread really hangs) 1st hung message is ERROR with stack trace, additional are WARN without stack trace; e.g. ERROR [uP-TaskExec-265-cleanupHungWorkers] rendering.PortletExecutionManager.[] 2013-06-22 02:23:23,926 - PortletExecutionWorker [portletFname=huskynet-email, timeout=20000, portletWindowId=34_u32l1n12_3936, started=1371885634677, submitted=1371885634677, complete=0, retrieved=true, canceled=true, cancelCount=150, wait=0, duration=20132ms] is still hung, cancel has been called 150 times. <stack trace> WARN [uP-TaskExec-268-cleanupHungWorkers] rendering.PortletExecutionManager.[] 2013-06-22 02:25:53,925 - PortletExecutionWorker [portletFname=huskynet-email, timeout=20000, portletWindowId=34_u32l1n12_3936, started=1371885634677, submitted=1371885634677, complete=0, retrieved=true, canceled=true, cancelCount=300, wait=0, duration=Xms] is still hung, cancel has been called 300 times <no stack trace> Case 3: WARN [http-8443-43-scme1302] worker.PortletResourceExecutionWorker.[] 2013-06-05 07:05:46,445 - Execution timed out on portlet window 34_u32l1n12_19451 Portlet Thread State: RUNNABLE Portlet Thread Stack Trace: at java.net.SocketInputStream.socketRead0(Native Method) ... (no portal stack trace) (when exception is TimeoutException, can log message as INFO to compliment WARN from the worker. For other exception types retain current behavior INFO [http-8443-43-scme1302] rendering.PortletExecutionManager.[] 2013-06-05 07:05:46,445 - resource worker failed with exception java.util.concurrent.TimeoutException (no stack trace for TimeoutException since PortletResourceExecutionWorker already has stack trace) WARN [http-8443-43-scme1302] rendering.PortletExecutionManager.[] 2013-06-05 07:05:46,445 - PortletExecutionWorker [portletFname=huskynet-email, timeout=20000, portletWindowId=34_u32l1n12_19451, started=1370433926429, submitted=1370433926429, complete=0, retrieved=true, canceled=false, cancelCount=0, wait=0, duration=-1370433926429] has not completed, adding to hung-worker cleanup queue: PortletWindow [portletWindowId=34_u32l1n12_19451, delegationParentId=null, portletMode=view, windowState=normal, expirationCache=null, renderParameters={}, publicRenderParameters={}, portletEntity=PortletEntity [portletEntityId=34_u32l1n12_19451, layoutNodeId=u32l1n12, userId=19451, portletDefinition=PortletDefinition [portletDefinitionId=34, fname=huskynet-email, portletDescriptorKey=PortletDescriptorKey [frameworkPortlet=false, webAppName=/email-preview, portletName=email-preview], portletType=PortletTypeImpl [internalId=1, name=Portlet, descr=Adapter for JSR-168 and JSR-286 Portlets, cpdUri=/org/jasig/portal/portlets/GenericPortlet.cpd.xml]]]] (if thread really hangs) 1st hung message is ERROR with stack trace, additional are WARN without stack trace; e.g. ERROR [uP-TaskExec-265-cleanupHungWorkers] rendering.PortletExecutionManager.[] 2013-06-22 02:23:23,926 - PortletExecutionWorker [portletFname=huskynet-email, timeout=20000, portletWindowId=34_u32l1n12_3936, started=1371885634677, submitted=1371885634677, complete=0, retrieved=true, canceled=true, cancelCount=150, wait=0, duration=20132ms] is still hung, cancel has been called 150 times. <stack trace> WARN [uP-TaskExec-268-cleanupHungWorkers] rendering.PortletExecutionManager.[] 2013-06-22 02:25:53,925 - PortletExecutionWorker [portletFname=huskynet-email, timeout=20000, portletWindowId=34_u32l1n12_3936, started=1371885634677, submitted=1371885634677, complete=0, retrieved=true, canceled=true, cancelCount=300, wait=0, duration=Xms] is still hung, cancel has been called 300 times <no stack trace>

    Apereo Issues | 3 years ago | James Wennmacher
    java.lang.IllegalStateException: The portlet worker has been canceled, the request is no longer in a valid state
  3. 0

    Double clicking causes multiple requests. Better to disable the Go button with a piece of JavaScript after action Login in as admin Click the link Manage cache instances Press Empty All Caches Confirm Return to main page Click link Manage DLM Fragments Quickly click GO a number of times. Multiple stack traces generated. Jan 23, 2012 4:13:03 PM org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet BookmarksPortlet threw exception java.lang.IllegalStateException: The portlet worker has been canceled, the request is no longer in a valid state at org.jasig.portal.portlet.rendering.worker.GuardingHttpServletRequest.checkState(GuardingHttpServletRequest.java:55) at org.jasig.portal.portlet.rendering.worker.GuardingHttpServletRequest.getRequestedSessionId(GuardingHttpServletRequest.java:199) at org.jasig.portal.utils.web.AbstractHttpServletRequestWrapper.getRequestedSessionId(AbstractHttpServletRequestWrapper.java:243) at javax.servlet.http.HttpServletRequestWrapper.getRequestedSessionId(HttpServletRequestWrapper.java:183) at org.apache.pluto.container.impl.PortletRequestImpl.getRequestedSessionId(PortletRequestImpl.java:547) at org.springframework.web.portlet.FrameworkPortlet.processRequest(FrameworkPortlet.java:487) at org.springframework.web.portlet.FrameworkPortlet.doDispatch(FrameworkPortlet.java:431) at javax.portlet.GenericPortlet.render(GenericPortlet.java:248) at org.jasig.portal.portlet.container.FilterChainImpl.doFilter(FilterChainImpl.java:184) at org.jasig.portal.portlet.container.FilterChainImpl.processFilter(FilterChainImpl.java:100) at org.jasig.portal.portlet.container.FilterManagerImpl.processFilter(FilterManagerImpl.java:111) at org.apache.pluto.container.driver.PortletServlet.dispatch(PortletServlet.java:340) at org.apache.pluto.container.driver.PortletServlet.doGet(PortletServlet.java:261) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488) at org.apache.pluto.driver.container.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:233) at org.apache.pluto.driver.container.DefaultPortletInvokerService.render(DefaultPortletInvokerService.java:117) at sun.reflect.GeneratedMethodAccessor149.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80) at org.jasig.portal.portlet.dao.jpa.ThreadContextClassLoaderAspect.doThreadContextClassLoaderUpdate(ThreadContextClassLoaderAspect.java:56) at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610) at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy147.render(Unknown Source) at org.apache.pluto.container.impl.PortletContainerImpl.doRender(PortletContainerImpl.java:157) at org.jasig.portal.portlet.rendering.PortletRendererImpl.doRenderMarkupInternal(PortletRendererImpl.java:364) at org.jasig.portal.portlet.rendering.PortletRendererImpl.doRenderMarkup(PortletRendererImpl.java:282) at org.jasig.portal.portlet.rendering.worker.PortletRenderExecutionWorker.callInternal(PortletRenderExecutionWorker.java:59) at org.jasig.portal.portlet.rendering.worker.PortletRenderExecutionWorker.callInternal(PortletRenderExecutionWorker.java:41) at org.jasig.portal.portlet.rendering.worker.PortletExecutionWorker$1.call(PortletExecutionWorker.java:145) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) Jan 23, 2012 4:13:03 PM org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet BookmarksPortlet threw exception java.lang.IllegalStateException: The portlet worker has been canceled, the request is no longer in a valid state at org.jasig.portal.portlet.rendering.worker.GuardingHttpServletRequest.checkState(GuardingHttpServletRequest.java:55) at org.jasig.portal.portlet.rendering.worker.GuardingHttpServletRequest.getRequestedSessionId(GuardingHttpServletRequest.java:199) at org.jasig.portal.utils.web.AbstractHttpServletRequestWrapper.getRequestedSessionId(AbstractHttpServletRequestWrapper.java:243) at javax.servlet.http.HttpServletRequestWrapper.getRequestedSessionId(HttpServletRequestWrapper.java:183) at org.apache.pluto.container.impl.PortletRequestImpl.getRequestedSessionId(PortletRequestImpl.java:547) at org.springframework.web.portlet.FrameworkPortlet.processRequest(FrameworkPortlet.java:487) at org.springframework.web.portlet.FrameworkPortlet.doDispatch(FrameworkPortlet.java:431) at javax.portlet.GenericPortlet.render(GenericPortlet.java:248) at org.jasig.portal.portlet.container.FilterChainImpl.doFilter(FilterChainImpl.java:184) at org.jasig.portal.portlet.container.FilterChainImpl.processFilter(FilterChainImpl.java:100) at org.jasig.portal.portlet.container.FilterManagerImpl.processFilter(FilterManagerImpl.java:111) at org.apache.pluto.container.driver.PortletServlet.dispatch(PortletServlet.java:340) at org.apache.pluto.container.driver.PortletServlet.doGet(PortletServlet.java:261) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488) at org.apache.pluto.driver.container.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:233) at org.apache.pluto.driver.container.DefaultPortletInvokerService.render(DefaultPortletInvokerService.java:117) at sun.reflect.GeneratedMethodAccessor149.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80) at org.jasig.portal.portlet.dao.jpa.ThreadContextClassLoaderAspect.doThreadContextClassLoaderUpdate(ThreadContextClassLoaderAspect.java:56) at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610) at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy147.render(Unknown Source) at org.apache.pluto.container.impl.PortletContainerImpl.doRender(PortletContainerImpl.java:157) at org.jasig.portal.portlet.rendering.PortletRendererImpl.doRenderMarkupInternal(PortletRendererImpl.java:364) at org.jasig.portal.portlet.rendering.PortletRendererImpl.doRenderMarkup(PortletRendererImpl.java:282) at org.jasig.portal.portlet.rendering.worker.PortletRenderExecutionWorker.callInternal(PortletRenderExecutionWorker.java:59) at org.jasig.portal.portlet.rendering.worker.PortletRenderExecutionWorker.callInternal(PortletRenderExecutionWorker.java:41) at org.jasig.portal.portlet.rendering.worker.PortletExecutionWorker$1.call(PortletExecutionWorker.java:145) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) Jan 23, 2012 4:13:03 PM org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet BookmarksPortlet threw exception java.lang.IllegalStateException: The portlet worker has been canceled, the request is no longer in a valid state at org.jasig.portal.portlet.rendering.worker.GuardingHttpServletRequest.checkState(GuardingHttpServletRequest.java:55) at org.jasig.portal.portlet.rendering.worker.GuardingHttpServletRequest.getRequestedSessionId(GuardingHttpServletRequest.java:199) at org.jasig.portal.utils.web.AbstractHttpServletRequestWrapper.getRequestedSessionId(AbstractHttpServletRequestWrapper.java:243) at javax.servlet.http.HttpServletRequestWrapper.getRequestedSessionId(HttpServletRequestWrapper.java:183) at org.apache.pluto.container.impl.PortletRequestImpl.getRequestedSessionId(PortletRequestImpl.java:547) at org.springframework.web.portlet.FrameworkPortlet.processRequest(FrameworkPortlet.java:487) at org.springframework.web.portlet.FrameworkPortlet.doDispatch(FrameworkPortlet.java:431) at javax.portlet.GenericPortlet.render(GenericPortlet.java:248) at org.jasig.portal.portlet.container.FilterChainImpl.doFilter(FilterChainImpl.java:184) at org.jasig.portal.portlet.container.FilterChainImpl.processFilter(FilterChainImpl.java:100) at org.jasig.portal.portlet.container.FilterManagerImpl.processFilter(FilterManagerImpl.java:111) at org.apache.pluto.container.driver.PortletServlet.dispatch(PortletServlet.java:340) at org.apache.pluto.container.driver.PortletServlet.doGet(PortletServlet.java:261) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488) at org.apache.pluto.driver.container.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:233) at org.apache.pluto.driver.container.DefaultPortletInvokerService.render(DefaultPortletInvokerService.java:117) at sun.reflect.GeneratedMethodAccessor149.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80) at org.jasig.portal.portlet.dao.jpa.ThreadContextClassLoaderAspect.doThreadContextClassLoaderUpdate(ThreadContextClassLoaderAspect.java:56) at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610) at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy147.render(Unknown Source) at org.apache.pluto.container.impl.PortletContainerImpl.doRender(PortletContainerImpl.java:157) at org.jasig.portal.portlet.rendering.PortletRendererImpl.doRenderMarkupInternal(PortletRendererImpl.java:364) at org.jasig.portal.portlet.rendering.PortletRendererImpl.doRenderMarkup(PortletRendererImpl.java:282) at org.jasig.portal.portlet.rendering.worker.PortletRenderExecutionWorker.callInternal(PortletRenderExecutionWorker.java:59) at org.jasig.portal.portlet.rendering.worker.PortletRenderExecutionWorker.callInternal(PortletRenderExecutionWorker.java:41) at org.jasig.portal.portlet.rendering.worker.PortletExecutionWorker$1.call(PortletExecutionWorker.java:145) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor

    Apereo Issues | 5 years ago | Alan Berg
    java.lang.IllegalStateException: The portlet worker has been canceled, the request is no longer in a valid state
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Double clicking causes multiple requests. Better to disable the Go button with a piece of JavaScript after action Login in as admin Click the link Manage cache instances Press Empty All Caches Confirm Return to main page Click link Manage DLM Fragments Quickly click GO a number of times. Multiple stack traces generated. Jan 23, 2012 4:13:03 PM org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet BookmarksPortlet threw exception java.lang.IllegalStateException: The portlet worker has been canceled, the request is no longer in a valid state at org.jasig.portal.portlet.rendering.worker.GuardingHttpServletRequest.checkState(GuardingHttpServletRequest.java:55) at org.jasig.portal.portlet.rendering.worker.GuardingHttpServletRequest.getRequestedSessionId(GuardingHttpServletRequest.java:199) at org.jasig.portal.utils.web.AbstractHttpServletRequestWrapper.getRequestedSessionId(AbstractHttpServletRequestWrapper.java:243) at javax.servlet.http.HttpServletRequestWrapper.getRequestedSessionId(HttpServletRequestWrapper.java:183) at org.apache.pluto.container.impl.PortletRequestImpl.getRequestedSessionId(PortletRequestImpl.java:547) at org.springframework.web.portlet.FrameworkPortlet.processRequest(FrameworkPortlet.java:487) at org.springframework.web.portlet.FrameworkPortlet.doDispatch(FrameworkPortlet.java:431) at javax.portlet.GenericPortlet.render(GenericPortlet.java:248) at org.jasig.portal.portlet.container.FilterChainImpl.doFilter(FilterChainImpl.java:184) at org.jasig.portal.portlet.container.FilterChainImpl.processFilter(FilterChainImpl.java:100) at org.jasig.portal.portlet.container.FilterManagerImpl.processFilter(FilterManagerImpl.java:111) at org.apache.pluto.container.driver.PortletServlet.dispatch(PortletServlet.java:340) at org.apache.pluto.container.driver.PortletServlet.doGet(PortletServlet.java:261) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488) at org.apache.pluto.driver.container.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:233) at org.apache.pluto.driver.container.DefaultPortletInvokerService.render(DefaultPortletInvokerService.java:117) at sun.reflect.GeneratedMethodAccessor149.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80) at org.jasig.portal.portlet.dao.jpa.ThreadContextClassLoaderAspect.doThreadContextClassLoaderUpdate(ThreadContextClassLoaderAspect.java:56) at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610) at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy147.render(Unknown Source) at org.apache.pluto.container.impl.PortletContainerImpl.doRender(PortletContainerImpl.java:157) at org.jasig.portal.portlet.rendering.PortletRendererImpl.doRenderMarkupInternal(PortletRendererImpl.java:364) at org.jasig.portal.portlet.rendering.PortletRendererImpl.doRenderMarkup(PortletRendererImpl.java:282) at org.jasig.portal.portlet.rendering.worker.PortletRenderExecutionWorker.callInternal(PortletRenderExecutionWorker.java:59) at org.jasig.portal.portlet.rendering.worker.PortletRenderExecutionWorker.callInternal(PortletRenderExecutionWorker.java:41) at org.jasig.portal.portlet.rendering.worker.PortletExecutionWorker$1.call(PortletExecutionWorker.java:145) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) Jan 23, 2012 4:13:03 PM org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet BookmarksPortlet threw exception java.lang.IllegalStateException: The portlet worker has been canceled, the request is no longer in a valid state at org.jasig.portal.portlet.rendering.worker.GuardingHttpServletRequest.checkState(GuardingHttpServletRequest.java:55) at org.jasig.portal.portlet.rendering.worker.GuardingHttpServletRequest.getRequestedSessionId(GuardingHttpServletRequest.java:199) at org.jasig.portal.utils.web.AbstractHttpServletRequestWrapper.getRequestedSessionId(AbstractHttpServletRequestWrapper.java:243) at javax.servlet.http.HttpServletRequestWrapper.getRequestedSessionId(HttpServletRequestWrapper.java:183) at org.apache.pluto.container.impl.PortletRequestImpl.getRequestedSessionId(PortletRequestImpl.java:547) at org.springframework.web.portlet.FrameworkPortlet.processRequest(FrameworkPortlet.java:487) at org.springframework.web.portlet.FrameworkPortlet.doDispatch(FrameworkPortlet.java:431) at javax.portlet.GenericPortlet.render(GenericPortlet.java:248) at org.jasig.portal.portlet.container.FilterChainImpl.doFilter(FilterChainImpl.java:184) at org.jasig.portal.portlet.container.FilterChainImpl.processFilter(FilterChainImpl.java:100) at org.jasig.portal.portlet.container.FilterManagerImpl.processFilter(FilterManagerImpl.java:111) at org.apache.pluto.container.driver.PortletServlet.dispatch(PortletServlet.java:340) at org.apache.pluto.container.driver.PortletServlet.doGet(PortletServlet.java:261) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488) at org.apache.pluto.driver.container.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:233) at org.apache.pluto.driver.container.DefaultPortletInvokerService.render(DefaultPortletInvokerService.java:117) at sun.reflect.GeneratedMethodAccessor149.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80) at org.jasig.portal.portlet.dao.jpa.ThreadContextClassLoaderAspect.doThreadContextClassLoaderUpdate(ThreadContextClassLoaderAspect.java:56) at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610) at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy147.render(Unknown Source) at org.apache.pluto.container.impl.PortletContainerImpl.doRender(PortletContainerImpl.java:157) at org.jasig.portal.portlet.rendering.PortletRendererImpl.doRenderMarkupInternal(PortletRendererImpl.java:364) at org.jasig.portal.portlet.rendering.PortletRendererImpl.doRenderMarkup(PortletRendererImpl.java:282) at org.jasig.portal.portlet.rendering.worker.PortletRenderExecutionWorker.callInternal(PortletRenderExecutionWorker.java:59) at org.jasig.portal.portlet.rendering.worker.PortletRenderExecutionWorker.callInternal(PortletRenderExecutionWorker.java:41) at org.jasig.portal.portlet.rendering.worker.PortletExecutionWorker$1.call(PortletExecutionWorker.java:145) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) Jan 23, 2012 4:13:03 PM org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet BookmarksPortlet threw exception java.lang.IllegalStateException: The portlet worker has been canceled, the request is no longer in a valid state at org.jasig.portal.portlet.rendering.worker.GuardingHttpServletRequest.checkState(GuardingHttpServletRequest.java:55) at org.jasig.portal.portlet.rendering.worker.GuardingHttpServletRequest.getRequestedSessionId(GuardingHttpServletRequest.java:199) at org.jasig.portal.utils.web.AbstractHttpServletRequestWrapper.getRequestedSessionId(AbstractHttpServletRequestWrapper.java:243) at javax.servlet.http.HttpServletRequestWrapper.getRequestedSessionId(HttpServletRequestWrapper.java:183) at org.apache.pluto.container.impl.PortletRequestImpl.getRequestedSessionId(PortletRequestImpl.java:547) at org.springframework.web.portlet.FrameworkPortlet.processRequest(FrameworkPortlet.java:487) at org.springframework.web.portlet.FrameworkPortlet.doDispatch(FrameworkPortlet.java:431) at javax.portlet.GenericPortlet.render(GenericPortlet.java:248) at org.jasig.portal.portlet.container.FilterChainImpl.doFilter(FilterChainImpl.java:184) at org.jasig.portal.portlet.container.FilterChainImpl.processFilter(FilterChainImpl.java:100) at org.jasig.portal.portlet.container.FilterManagerImpl.processFilter(FilterManagerImpl.java:111) at org.apache.pluto.container.driver.PortletServlet.dispatch(PortletServlet.java:340) at org.apache.pluto.container.driver.PortletServlet.doGet(PortletServlet.java:261) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488) at org.apache.pluto.driver.container.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:233) at org.apache.pluto.driver.container.DefaultPortletInvokerService.render(DefaultPortletInvokerService.java:117) at sun.reflect.GeneratedMethodAccessor149.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80) at org.jasig.portal.portlet.dao.jpa.ThreadContextClassLoaderAspect.doThreadContextClassLoaderUpdate(ThreadContextClassLoaderAspect.java:56) at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610) at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy147.render(Unknown Source) at org.apache.pluto.container.impl.PortletContainerImpl.doRender(PortletContainerImpl.java:157) at org.jasig.portal.portlet.rendering.PortletRendererImpl.doRenderMarkupInternal(PortletRendererImpl.java:364) at org.jasig.portal.portlet.rendering.PortletRendererImpl.doRenderMarkup(PortletRendererImpl.java:282) at org.jasig.portal.portlet.rendering.worker.PortletRenderExecutionWorker.callInternal(PortletRenderExecutionWorker.java:59) at org.jasig.portal.portlet.rendering.worker.PortletRenderExecutionWorker.callInternal(PortletRenderExecutionWorker.java:41) at org.jasig.portal.portlet.rendering.worker.PortletExecutionWorker$1.call(PortletExecutionWorker.java:145) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor

    Apereo Issues | 5 years ago | Alan Berg
    java.lang.IllegalStateException: The portlet worker has been canceled, the request is no longer in a valid state
  6. 0

    Double clicking causes multiple requests. Better to disable the Go button with a piece of JavaScript after action Login in as admin Click the link Manage cache instances Press Empty All Caches Confirm Return to main page Click link Manage DLM Fragments Quickly click GO a number of times. Multiple stack traces generated. Jan 23, 2012 4:13:03 PM org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet BookmarksPortlet threw exception java.lang.IllegalStateException: The portlet worker has been canceled, the request is no longer in a valid state at org.jasig.portal.portlet.rendering.worker.GuardingHttpServletRequest.checkState(GuardingHttpServletRequest.java:55) at org.jasig.portal.portlet.rendering.worker.GuardingHttpServletRequest.getRequestedSessionId(GuardingHttpServletRequest.java:199) at org.jasig.portal.utils.web.AbstractHttpServletRequestWrapper.getRequestedSessionId(AbstractHttpServletRequestWrapper.java:243) at javax.servlet.http.HttpServletRequestWrapper.getRequestedSessionId(HttpServletRequestWrapper.java:183) at org.apache.pluto.container.impl.PortletRequestImpl.getRequestedSessionId(PortletRequestImpl.java:547) at org.springframework.web.portlet.FrameworkPortlet.processRequest(FrameworkPortlet.java:487) at org.springframework.web.portlet.FrameworkPortlet.doDispatch(FrameworkPortlet.java:431) at javax.portlet.GenericPortlet.render(GenericPortlet.java:248) at org.jasig.portal.portlet.container.FilterChainImpl.doFilter(FilterChainImpl.java:184) at org.jasig.portal.portlet.container.FilterChainImpl.processFilter(FilterChainImpl.java:100) at org.jasig.portal.portlet.container.FilterManagerImpl.processFilter(FilterManagerImpl.java:111) at org.apache.pluto.container.driver.PortletServlet.dispatch(PortletServlet.java:340) at org.apache.pluto.container.driver.PortletServlet.doGet(PortletServlet.java:261) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488) at org.apache.pluto.driver.container.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:233) at org.apache.pluto.driver.container.DefaultPortletInvokerService.render(DefaultPortletInvokerService.java:117) at sun.reflect.GeneratedMethodAccessor149.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80) at org.jasig.portal.portlet.dao.jpa.ThreadContextClassLoaderAspect.doThreadContextClassLoaderUpdate(ThreadContextClassLoaderAspect.java:56) at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610) at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy147.render(Unknown Source) at org.apache.pluto.container.impl.PortletContainerImpl.doRender(PortletContainerImpl.java:157) at org.jasig.portal.portlet.rendering.PortletRendererImpl.doRenderMarkupInternal(PortletRendererImpl.java:364) at org.jasig.portal.portlet.rendering.PortletRendererImpl.doRenderMarkup(PortletRendererImpl.java:282) at org.jasig.portal.portlet.rendering.worker.PortletRenderExecutionWorker.callInternal(PortletRenderExecutionWorker.java:59) at org.jasig.portal.portlet.rendering.worker.PortletRenderExecutionWorker.callInternal(PortletRenderExecutionWorker.java:41) at org.jasig.portal.portlet.rendering.worker.PortletExecutionWorker$1.call(PortletExecutionWorker.java:145) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) Jan 23, 2012 4:13:03 PM org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet BookmarksPortlet threw exception java.lang.IllegalStateException: The portlet worker has been canceled, the request is no longer in a valid state at org.jasig.portal.portlet.rendering.worker.GuardingHttpServletRequest.checkState(GuardingHttpServletRequest.java:55) at org.jasig.portal.portlet.rendering.worker.GuardingHttpServletRequest.getRequestedSessionId(GuardingHttpServletRequest.java:199) at org.jasig.portal.utils.web.AbstractHttpServletRequestWrapper.getRequestedSessionId(AbstractHttpServletRequestWrapper.java:243) at javax.servlet.http.HttpServletRequestWrapper.getRequestedSessionId(HttpServletRequestWrapper.java:183) at org.apache.pluto.container.impl.PortletRequestImpl.getRequestedSessionId(PortletRequestImpl.java:547) at org.springframework.web.portlet.FrameworkPortlet.processRequest(FrameworkPortlet.java:487) at org.springframework.web.portlet.FrameworkPortlet.doDispatch(FrameworkPortlet.java:431) at javax.portlet.GenericPortlet.render(GenericPortlet.java:248) at org.jasig.portal.portlet.container.FilterChainImpl.doFilter(FilterChainImpl.java:184) at org.jasig.portal.portlet.container.FilterChainImpl.processFilter(FilterChainImpl.java:100) at org.jasig.portal.portlet.container.FilterManagerImpl.processFilter(FilterManagerImpl.java:111) at org.apache.pluto.container.driver.PortletServlet.dispatch(PortletServlet.java:340) at org.apache.pluto.container.driver.PortletServlet.doGet(PortletServlet.java:261) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488) at org.apache.pluto.driver.container.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:233) at org.apache.pluto.driver.container.DefaultPortletInvokerService.render(DefaultPortletInvokerService.java:117) at sun.reflect.GeneratedMethodAccessor149.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80) at org.jasig.portal.portlet.dao.jpa.ThreadContextClassLoaderAspect.doThreadContextClassLoaderUpdate(ThreadContextClassLoaderAspect.java:56) at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610) at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy147.render(Unknown Source) at org.apache.pluto.container.impl.PortletContainerImpl.doRender(PortletContainerImpl.java:157) at org.jasig.portal.portlet.rendering.PortletRendererImpl.doRenderMarkupInternal(PortletRendererImpl.java:364) at org.jasig.portal.portlet.rendering.PortletRendererImpl.doRenderMarkup(PortletRendererImpl.java:282) at org.jasig.portal.portlet.rendering.worker.PortletRenderExecutionWorker.callInternal(PortletRenderExecutionWorker.java:59) at org.jasig.portal.portlet.rendering.worker.PortletRenderExecutionWorker.callInternal(PortletRenderExecutionWorker.java:41) at org.jasig.portal.portlet.rendering.worker.PortletExecutionWorker$1.call(PortletExecutionWorker.java:145) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) Jan 23, 2012 4:13:03 PM org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet BookmarksPortlet threw exception java.lang.IllegalStateException: The portlet worker has been canceled, the request is no longer in a valid state at org.jasig.portal.portlet.rendering.worker.GuardingHttpServletRequest.checkState(GuardingHttpServletRequest.java:55) at org.jasig.portal.portlet.rendering.worker.GuardingHttpServletRequest.getRequestedSessionId(GuardingHttpServletRequest.java:199) at org.jasig.portal.utils.web.AbstractHttpServletRequestWrapper.getRequestedSessionId(AbstractHttpServletRequestWrapper.java:243) at javax.servlet.http.HttpServletRequestWrapper.getRequestedSessionId(HttpServletRequestWrapper.java:183) at org.apache.pluto.container.impl.PortletRequestImpl.getRequestedSessionId(PortletRequestImpl.java:547) at org.springframework.web.portlet.FrameworkPortlet.processRequest(FrameworkPortlet.java:487) at org.springframework.web.portlet.FrameworkPortlet.doDispatch(FrameworkPortlet.java:431) at javax.portlet.GenericPortlet.render(GenericPortlet.java:248) at org.jasig.portal.portlet.container.FilterChainImpl.doFilter(FilterChainImpl.java:184) at org.jasig.portal.portlet.container.FilterChainImpl.processFilter(FilterChainImpl.java:100) at org.jasig.portal.portlet.container.FilterManagerImpl.processFilter(FilterManagerImpl.java:111) at org.apache.pluto.container.driver.PortletServlet.dispatch(PortletServlet.java:340) at org.apache.pluto.container.driver.PortletServlet.doGet(PortletServlet.java:261) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488) at org.apache.pluto.driver.container.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:233) at org.apache.pluto.driver.container.DefaultPortletInvokerService.render(DefaultPortletInvokerService.java:117) at sun.reflect.GeneratedMethodAccessor149.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80) at org.jasig.portal.portlet.dao.jpa.ThreadContextClassLoaderAspect.doThreadContextClassLoaderUpdate(ThreadContextClassLoaderAspect.java:56) at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610) at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy147.render(Unknown Source) at org.apache.pluto.container.impl.PortletContainerImpl.doRender(PortletContainerImpl.java:157) at org.jasig.portal.portlet.rendering.PortletRendererImpl.doRenderMarkupInternal(PortletRendererImpl.java:364) at org.jasig.portal.portlet.rendering.PortletRendererImpl.doRenderMarkup(PortletRendererImpl.java:282) at org.jasig.portal.portlet.rendering.worker.PortletRenderExecutionWorker.callInternal(PortletRenderExecutionWorker.java:59) at org.jasig.portal.portlet.rendering.worker.PortletRenderExecutionWorker.callInternal(PortletRenderExecutionWorker.java:41) at org.jasig.portal.portlet.rendering.worker.PortletExecutionWorker$1.call(PortletExecutionWorker.java:145) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor

    Apereo Issues | 5 years ago | Alan Berg
    java.lang.IllegalStateException: The portlet worker has been canceled, the request is no longer in a valid state

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      The portlet worker has been canceled, the request is no longer in a valid state

      at org.jasig.portal.portlet.rendering.worker.GuardingHttpServletRequest.checkState()
    2. org.jasig.portal
      GuardingHttpServletRequest.checkState
      1. org.jasig.portal.portlet.rendering.worker.GuardingHttpServletRequest.checkState(GuardingHttpServletRequest.java:55)
      1 frame