java.lang.reflect.UndeclaredThrowableException

Apereo Issues | Bruce Phillips | 3 years ago
  1. 0

    Our web service returns a NotificationResponse object created using the combine method of the NotificationResponse class. If there are no NotificationError objects included in one of the NotificationResponse objects being combined everything works fine. However, if one of the NotificationResponse objects being combined contains a collection of NotificationError objects (the NotificationResponse.setErrors method is called to give the errors attribute a value) then when the NotificationResponse object is being processed by the Notification Portlet an exception is thrown (see below), an error statement is shown in the portlet (that is unrelated to the error in the NotificationReponse), and the other notifications that should be shown that did not have an error are not shown--user sees you have 0 notifications. Exception from NotificationPortlet.log: ERROR [uP-PortletExec-11-bphillips-RESOURCE-[notifications]] portlet.DispatcherPortlet.[] Jun/20 09:43:31 - Could not complete request java.lang.reflect.UndeclaredThrowableException at com.sun.proxy.$Proxy379.getLocale(Unknown Source) at javax.servlet.ServletRequestWrapper.getLocale(ServletRequestWrapper.java:257) at org.jasig.portal.portlet.container.PortletRequestContextImpl.getPreferredLocale(PortletRequestContextImpl.java:189) at org.apache.pluto.container.impl.PortletRequestImpl.getLocale(PortletRequestImpl.java:303) at org.springframework.web.portlet.DispatcherPortlet.resolveViewName(DispatcherPortlet.java:1148) at org.springframework.web.portlet.DispatcherPortlet.render(DispatcherPortlet.java:1090) at org.springframework.web.portlet.DispatcherPortlet.doResourceService(DispatcherPortlet.java:880) at org.springframework.web.portlet.FrameworkPortlet.processRequest(FrameworkPortlet.java:525) at org.springframework.web.portlet.FrameworkPortlet.serveResource(FrameworkPortlet.java:477) at org.jasig.portal.portlet.container.FilterChainImpl.doFilter(FilterChainImpl.java:212) at org.jasig.portal.portlet.container.FilterChainImpl.processFilter(FilterChainImpl.java:84) at org.jasig.portal.portlet.container.FilterManagerImpl.processFilter(FilterManagerImpl.java:103) at org.apache.pluto.container.driver.PortletServlet.dispatch(PortletServlet.java:350) at org.apache.pluto.container.driver.PortletServlet.doPost(PortletServlet.java:267) at javax.servlet.http.HttpServlet.service(HttpServlet.java:647) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339) at org.apache.pluto.driver.container.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:229) at org.apache.pluto.driver.container.DefaultPortletInvokerService.serveResource(DefaultPortletInvokerService.java:149) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319) 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:70) at sun.reflect.GeneratedMethodAccessor113.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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 com.sun.proxy.$Proxy216.serveResource(Unknown Source) at org.apache.pluto.container.impl.PortletContainerImpl.doServeResource(PortletContainerImpl.java:203) at org.jasig.portal.portlet.rendering.PortletRendererImpl.doServeResource(PortletRendererImpl.java:587) at org.jasig.portal.portlet.rendering.worker.PortletResourceExecutionWorker.callInternal(PortletResourceExecutionWorker.java:54) at org.jasig.portal.portlet.rendering.worker.PortletResourceExecutionWorker.callInternal(PortletResourceExecutionWorker.java:32) at org.jasig.portal.portlet.rendering.worker.PortletExecutionWorker$1.call(PortletExecutionWorker.java:137) at org.jasig.portal.portlet.rendering.worker.PortletExecutionWorker$ExecutionLifecycleCallable.call(PortletExecutionWorker.java:177) at org.jasig.portal.portlet.rendering.worker.PortletExecutionCallable.call(PortletExecutionCallable.java:119) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:680) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor235.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.jasig.portal.utils.CompositeProxyFactory$CompositeProxyInterceptor.invoke(CompositeProxyFactory.java:149) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) ... 56 more Caused by: 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.getLocale(GuardingHttpServletRequest.java:487) at org.jasig.portal.utils.web.AbstractHttpServletRequestWrapper.getLocale(AbstractHttpServletRequestWrapper.java:137) ... 62 more

    Apereo Issues | 3 years ago | Bruce Phillips
    java.lang.reflect.UndeclaredThrowableException
  2. 0

    Our web service returns a NotificationResponse object created using the combine method of the NotificationResponse class. If there are no NotificationError objects included in one of the NotificationResponse objects being combined everything works fine. However, if one of the NotificationResponse objects being combined contains a collection of NotificationError objects (the NotificationResponse.setErrors method is called to give the errors attribute a value) then when the NotificationResponse object is being processed by the Notification Portlet an exception is thrown (see below), an error statement is shown in the portlet (that is unrelated to the error in the NotificationReponse), and the other notifications that should be shown that did not have an error are not shown--user sees you have 0 notifications. Exception from NotificationPortlet.log: ERROR [uP-PortletExec-11-bphillips-RESOURCE-[notifications]] portlet.DispatcherPortlet.[] Jun/20 09:43:31 - Could not complete request java.lang.reflect.UndeclaredThrowableException at com.sun.proxy.$Proxy379.getLocale(Unknown Source) at javax.servlet.ServletRequestWrapper.getLocale(ServletRequestWrapper.java:257) at org.jasig.portal.portlet.container.PortletRequestContextImpl.getPreferredLocale(PortletRequestContextImpl.java:189) at org.apache.pluto.container.impl.PortletRequestImpl.getLocale(PortletRequestImpl.java:303) at org.springframework.web.portlet.DispatcherPortlet.resolveViewName(DispatcherPortlet.java:1148) at org.springframework.web.portlet.DispatcherPortlet.render(DispatcherPortlet.java:1090) at org.springframework.web.portlet.DispatcherPortlet.doResourceService(DispatcherPortlet.java:880) at org.springframework.web.portlet.FrameworkPortlet.processRequest(FrameworkPortlet.java:525) at org.springframework.web.portlet.FrameworkPortlet.serveResource(FrameworkPortlet.java:477) at org.jasig.portal.portlet.container.FilterChainImpl.doFilter(FilterChainImpl.java:212) at org.jasig.portal.portlet.container.FilterChainImpl.processFilter(FilterChainImpl.java:84) at org.jasig.portal.portlet.container.FilterManagerImpl.processFilter(FilterManagerImpl.java:103) at org.apache.pluto.container.driver.PortletServlet.dispatch(PortletServlet.java:350) at org.apache.pluto.container.driver.PortletServlet.doPost(PortletServlet.java:267) at javax.servlet.http.HttpServlet.service(HttpServlet.java:647) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339) at org.apache.pluto.driver.container.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:229) at org.apache.pluto.driver.container.DefaultPortletInvokerService.serveResource(DefaultPortletInvokerService.java:149) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319) 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:70) at sun.reflect.GeneratedMethodAccessor113.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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 com.sun.proxy.$Proxy216.serveResource(Unknown Source) at org.apache.pluto.container.impl.PortletContainerImpl.doServeResource(PortletContainerImpl.java:203) at org.jasig.portal.portlet.rendering.PortletRendererImpl.doServeResource(PortletRendererImpl.java:587) at org.jasig.portal.portlet.rendering.worker.PortletResourceExecutionWorker.callInternal(PortletResourceExecutionWorker.java:54) at org.jasig.portal.portlet.rendering.worker.PortletResourceExecutionWorker.callInternal(PortletResourceExecutionWorker.java:32) at org.jasig.portal.portlet.rendering.worker.PortletExecutionWorker$1.call(PortletExecutionWorker.java:137) at org.jasig.portal.portlet.rendering.worker.PortletExecutionWorker$ExecutionLifecycleCallable.call(PortletExecutionWorker.java:177) at org.jasig.portal.portlet.rendering.worker.PortletExecutionCallable.call(PortletExecutionCallable.java:119) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:680) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor235.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.jasig.portal.utils.CompositeProxyFactory$CompositeProxyInterceptor.invoke(CompositeProxyFactory.java:149) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) ... 56 more Caused by: 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.getLocale(GuardingHttpServletRequest.java:487) at org.jasig.portal.utils.web.AbstractHttpServletRequestWrapper.getLocale(AbstractHttpServletRequestWrapper.java:137) ... 62 more

    Apereo Issues | 3 years ago | Bruce Phillips
    java.lang.reflect.UndeclaredThrowableException
  3. 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
  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
      AbstractHttpServletRequestWrapper.getLocale
      1. org.jasig.portal.portlet.rendering.worker.GuardingHttpServletRequest.checkState(GuardingHttpServletRequest.java:55)
      2. org.jasig.portal.portlet.rendering.worker.GuardingHttpServletRequest.getLocale(GuardingHttpServletRequest.java:487)
      3. org.jasig.portal.utils.web.AbstractHttpServletRequestWrapper.getLocale(AbstractHttpServletRequestWrapper.java:137)
      3 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor235.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:597)
      3 frames
    4. org.jasig.portal
      CompositeProxyFactory$CompositeProxyInterceptor.invoke
      1. org.jasig.portal.utils.CompositeProxyFactory$CompositeProxyInterceptor.invoke(CompositeProxyFactory.java:149)
      1 frame
    5. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
      2 frames
    6. com.sun.proxy
      $Proxy379.getLocale
      1. com.sun.proxy.$Proxy379.getLocale(Unknown Source)
      1 frame
    7. JavaServlet
      ServletRequestWrapper.getLocale
      1. javax.servlet.ServletRequestWrapper.getLocale(ServletRequestWrapper.java:257)
      1 frame
    8. org.jasig.portal
      PortletRequestContextImpl.getPreferredLocale
      1. org.jasig.portal.portlet.container.PortletRequestContextImpl.getPreferredLocale(PortletRequestContextImpl.java:189)
      1 frame
    9. org.apache.pluto
      PortletRequestImpl.getLocale
      1. org.apache.pluto.container.impl.PortletRequestImpl.getLocale(PortletRequestImpl.java:303)
      1 frame
    10. Spring Web Portlet
      FrameworkPortlet.serveResource
      1. org.springframework.web.portlet.DispatcherPortlet.resolveViewName(DispatcherPortlet.java:1148)
      2. org.springframework.web.portlet.DispatcherPortlet.render(DispatcherPortlet.java:1090)
      3. org.springframework.web.portlet.DispatcherPortlet.doResourceService(DispatcherPortlet.java:880)
      4. org.springframework.web.portlet.FrameworkPortlet.processRequest(FrameworkPortlet.java:525)
      5. org.springframework.web.portlet.FrameworkPortlet.serveResource(FrameworkPortlet.java:477)
      5 frames
    11. org.jasig.portal
      FilterManagerImpl.processFilter
      1. org.jasig.portal.portlet.container.FilterChainImpl.doFilter(FilterChainImpl.java:212)
      2. org.jasig.portal.portlet.container.FilterChainImpl.processFilter(FilterChainImpl.java:84)
      3. org.jasig.portal.portlet.container.FilterManagerImpl.processFilter(FilterManagerImpl.java:103)
      3 frames
    12. org.apache.pluto
      PortletServlet.doPost
      1. org.apache.pluto.container.driver.PortletServlet.dispatch(PortletServlet.java:350)
      2. org.apache.pluto.container.driver.PortletServlet.doPost(PortletServlet.java:267)
      2 frames
    13. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      2 frames
    14. Glassfish Core
      ApplicationDispatcher.forward
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
      4. org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
      5. org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)
      6. org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
      6 frames
    15. org.apache.pluto
      DefaultPortletInvokerService.serveResource
      1. org.apache.pluto.driver.container.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:229)
      2. org.apache.pluto.driver.container.DefaultPortletInvokerService.serveResource(DefaultPortletInvokerService.java:149)
      2 frames
    16. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    17. Spring AOP
      MethodInvocationProceedingJoinPoint.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      4. org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
      5. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      6. org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
      6 frames
    18. org.jasig.portal
      ThreadContextClassLoaderAspect.doThreadContextClassLoaderUpdate
      1. org.jasig.portal.portlet.dao.jpa.ThreadContextClassLoaderAspect.doThreadContextClassLoaderUpdate(ThreadContextClassLoaderAspect.java:70)
      1 frame
    19. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor113.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:597)
      3 frames
    20. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
      2. org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
      3. org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
      4. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      5. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
      5 frames
    21. com.sun.proxy
      $Proxy216.serveResource
      1. com.sun.proxy.$Proxy216.serveResource(Unknown Source)
      1 frame
    22. org.apache.pluto
      PortletContainerImpl.doServeResource
      1. org.apache.pluto.container.impl.PortletContainerImpl.doServeResource(PortletContainerImpl.java:203)
      1 frame
    23. org.jasig.portal
      PortletExecutionCallable.call
      1. org.jasig.portal.portlet.rendering.PortletRendererImpl.doServeResource(PortletRendererImpl.java:587)
      2. org.jasig.portal.portlet.rendering.worker.PortletResourceExecutionWorker.callInternal(PortletResourceExecutionWorker.java:54)
      3. org.jasig.portal.portlet.rendering.worker.PortletResourceExecutionWorker.callInternal(PortletResourceExecutionWorker.java:32)
      4. org.jasig.portal.portlet.rendering.worker.PortletExecutionWorker$1.call(PortletExecutionWorker.java:137)
      5. org.jasig.portal.portlet.rendering.worker.PortletExecutionWorker$ExecutionLifecycleCallable.call(PortletExecutionWorker.java:177)
      6. org.jasig.portal.portlet.rendering.worker.PortletExecutionCallable.call(PortletExecutionCallable.java:119)
      6 frames
    24. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
      5. java.lang.Thread.run(Thread.java:680)
      5 frames