org.jasig.portal.portlet.PortletDispatchException: The portlet window 'PortletWindow [portletWindowId=76_n21_4, delegationParentId=null, portletMode=view, windowState=normal, expirationCache=null, renderParameters={}, publicRenderParameters={}, portletEntity=PortletEntity [portletEntityId=76_n21_4, layoutNodeId=n21, userId=4, portletDefinition=PortletDefinition [portletDefinitionId=76, fname=gatewayportlet, portletDescriptorKey=PortletDescriptorKey [frameworkPortlet=false, webAppName=/gatewayportlet, portletName=GatewayPortlet], portletType=PortletTypeImpl [internalId=1, name=Portlet, descr=Adapter for JSR-168 Portlets, cpdUri=/org/jasig/portal/portlets/GenericPortlet.cpd.xml]]]]' threw an exception while executing serveResource.

Apereo Issues | Gary Maxwell | 5 years ago
  1. 0

    Execution of the following serveResource() method of a 2.0 portlet generates errors as shown below. {code} private static final String dynamicForm = "/WEB-INF/jsp/dynamicForm.jsp"; ... ... @Override public void serveResource(ResourceRequest request, ResourceResponse response) throws PortletException, IOException { if (getPortletContext().getResourceAsStream(dynamicForm) != null) { try { // dispatch view request to dynamicForm.jsp PortletRequestDispatcher dispatcher = getPortletContext().getRequestDispatcher(dynamicForm); dispatcher.include(request, response); } catch (IOException e) { logger.info("GatewayController serveResource exception."); throw new PortletException("GatewayController.serveResource exception", e); } } else { logger.info("GatewayController_dynamicForm.jsp missing."); throw new PortletException("GatewayController_dynamicForm.jsp missing."); } } {code} The serveResource() method is called from a jQuery $.getScript() using <portlet:resourceURL> tag as its destination. {code} <portlet:resourceURL var="invoiceURL" id="invoice" escapeXml="false" /> ... ... $.noConflict(); jQuery(document).ready(function($) { $("#<portlet:namespace/>m2").click(function() { $.getScript('<%=renderResponse.encodeURL(invoiceURL.toString())%>', {code} The error received: {code} ERROR [uPortal-PortletExecutor-10-RESOURCE-[gatewayportlet]] Oct/27 14:26:49,780 container.DefaultPortletInvokerService.[] - Unable to successfully invoke portlet. Error during processing. WARN [uPortal-PortletExecutor-10-RESOURCE-[gatewayportlet]] Oct/27 14:26:49,796 worker.PortletResourceExecutionWorker.[] - Portlet '76_n21_4' failed with an exception org.jasig.portal.portlet.PortletDispatchException: The portlet window 'PortletWindow [portletWindowId=76_n21_4, delegationParentId=null, portletMode=view, windowState=normal, expirationCache=null, renderParameters={}, publicRenderParameters={}, portletEntity=PortletEntity [portletEntityId=76_n21_4, layoutNodeId=n21, userId=4, portletDefinition=PortletDefinition [portletDefinitionId=76, fname=gatewayportlet, portletDescriptorKey=PortletDescriptorKey [frameworkPortlet=false, webAppName=/gatewayportlet, portletName=GatewayPortlet], portletType=PortletTypeImpl [internalId=1, name=Portlet, descr=Adapter for JSR-168 Portlets, cpdUri=/org/jasig/portal/portlets/GenericPortlet.cpd.xml]]]]' threw an exception while executing serveResource. at org.jasig.portal.portlet.rendering.PortletRendererImpl.doServeResource(PortletRendererImpl.java:442) at org.jasig.portal.portlet.rendering.worker.PortletResourceExecutionWorker.callInternal(PortletResourceExecutionWorker.java:50) at org.jasig.portal.portlet.rendering.worker.PortletResourceExecutionWorker.callInternal(PortletResourceExecutionWorker.java:31) at org.jasig.portal.portlet.rendering.worker.PortletExecutionWorker$1.call(PortletExecutionWorker.java:145) 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:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: javax.portlet.PortletException: java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.pluto.container.impl.PortletRequestDispatcherImpl.doDispatch(PortletRequestDispatcherImpl.java:185) at org.apache.pluto.container.impl.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:222) at edu.fortlewis.portlet.GatewayPortlet.GatewayController.serveResource(GatewayController.java:165) 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.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.processRequest(ApplicationDispatcher.java:436) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) at org.apache.pluto.driver.container.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:229) at org.apache.pluto.driver.container.DefaultPortletInvokerService.serveResource(DefaultPortletInvokerService.java:149) at org.apache.pluto.container.impl.PortletContainerImpl.doServeResource(PortletContainerImpl.java:203) at org.jasig.portal.portlet.rendering.PortletRendererImpl.doServeResource(PortletRendererImpl.java:418) ... 8 more Caused by: java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.catalina.connector.Response.getWriter(Response.java:611) at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198) at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:112) at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:112) at org.jasig.portal.portlet.rendering.worker.GuardingHttpServletResponse.getWriter(GuardingHttpServletResponse.java:257) at org.jasig.portal.utils.web.AbstractHttpServletResponseWrapper.getWriter(AbstractHttpServletResponseWrapper.java:106) at org.jasig.portal.portlet.container.PortletMimeResponseContextImpl.getWriter(PortletMimeResponseContextImpl.java:176) at org.apache.pluto.container.impl.MimeResponseImpl.getWriter(MimeResponseImpl.java:148) at org.apache.pluto.container.impl.ResourceResponseImpl.getWriter(ResourceResponseImpl.java:81) at org.apache.pluto.container.impl.HttpServletPortletResponseWrapper.getWriter(HttpServletPortletResponseWrapper.java:262) at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125) at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118) at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:180) at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:118) at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:77) at org.apache.jsp.WEB_002dINF.jsp.dynamicForm_jsp._jspService(dynamicForm_jsp.java:165) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) 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.container.impl.PortletRequestDispatcherImpl.doDispatch(PortletRequestDispatcherImpl.java:174) ... 27 more WARN [http-8080-2] Oct/27 14:26:49,796 worker.PortletResourceExecutionWorker.[] - Execution failed on portlet window 76_n21_4 java.util.concurrent.ExecutionException: org.jasig.portal.portlet.PortletDispatchException: The portlet window 'PortletWindow [portletWindowId=76_n21_4, delegationParentId=null, portletMode=view, windowState=normal, expirationCache=null, renderParameters={}, publicRenderParameters={}, portletEntity=PortletEntity [portletEntityId=76_n21_4, layoutNodeId=n21, userId=4, portletDefinition=PortletDefinition [portletDefinitionId=76, fname=gatewayportlet, portletDescriptorKey=PortletDescriptorKey [frameworkPortlet=false, webAppName=/gatewayportlet, portletName=GatewayPortlet], portletType=PortletTypeImpl [internalId=1, name=Portlet, descr=Adapter for JSR-168 Portlets, cpdUri=/org/jasig/portal/portlets/GenericPortlet.cpd.xml]]]]' threw an exception while executing serveResource. at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:232) at java.util.concurrent.FutureTask.get(FutureTask.java:91) at org.jasig.portal.portlet.rendering.worker.PortletExecutionWorker.get(PortletExecutionWorker.java:234) at org.jasig.portal.portlet.rendering.PortletExecutionManager.doPortletServeResource(PortletExecutionManager.java:439) at org.jasig.portal.rendering.PortalController.resourceRequest(PortalController.java:142) 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.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176) at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:436) at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:424) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:669) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:574) 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.jasig.portal.utils.web.CreatePortletCookieFilter.doFilterInternal(CreatePortletCookieFilter.java:60) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:70) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jasig.portal.url.UrlCanonicalizingFilter.doFilterInternal(UrlCanonicalizingFilter.java:118) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:113) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) Caused by: org.jasig.portal.portlet.PortletDispatchException: The portlet window 'PortletWindow [portletWindowId=76_n21_4, delegationParentId=null, portletMode=view, windowState=normal, expirationCache=null, renderParameters={}, publicRenderParameters={}, portletEntity=PortletEntity [portletEntityId=76_n21_4, layoutNodeId=n21, userId=4, portletDefinition=PortletDefinition [portletDefinitionId=76, fname=gatewayportlet, portletDescriptorKey=PortletDescriptorKey [frameworkPortlet=false, webAppName=/gatewayportlet, portletName=GatewayPortlet], portletType=PortletTypeImpl [internalId=1, name=Portlet, descr=Adapter for JSR-168 Portlets, cpdUri=/org/jasig/portal/portlets/GenericPortlet.cpd.xml]]]]' threw an exception while executing serveResource. at org.jasig.portal.portlet.rendering.PortletRendererImpl.doServeResource(PortletRendererImpl.java:442) at org.jasig.portal.portlet.rendering.worker.PortletResourceExecutionWorker.callInternal(PortletResourceExecutionWorker.java:50) at org.jasig.portal.portlet.rendering.worker.PortletResourceExecutionWorker.callInternal(PortletResourceExecutionWorker.java:31) at org.jasig.portal.portlet.rendering.worker.PortletExecutionWorker$1.call(PortletExecutionWorker.java:145) 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:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) ... 1 more Caused by: javax.portlet.PortletException: java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.pluto.container.impl.PortletRequestDispatcherImpl.doDispatch(PortletRequestDispatcherImpl.java:185) at org.apache.pluto.container.impl.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:222) at edu.fortlewis.portlet.GatewayPortlet.GatewayController.serveResource(GatewayController.java:165) 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.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.processRequest(ApplicationDispatcher.java:436) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) at org.apache.pluto.driver.container.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:229) at org.apache.pluto.driver.container.DefaultPortletInvokerService.serveResource(DefaultPortletInvokerService.java:149) at org.apache.pluto.container.impl.PortletContainerImpl.doServeResource(PortletContainerImpl.java:203) at org.jasig.portal.portlet.rendering.PortletRendererImpl.doServeResource(PortletRendererImpl.java:418) ... 8 more Caused by: java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.catalina.connector.Response.getWriter(Response.java:611) at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198) at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:112) at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:112) at org.jasig.portal.portlet.rendering.worker.GuardingHttpServletResponse.getWriter(GuardingHttpServletResponse.java:257) at org.jasig.portal.utils.web.AbstractHttpServletResponseWrapper.getWriter(AbstractHttpServletResponseWrapper.java:106) at org.jasig.portal.portlet.container.PortletMimeResponseContextImpl.getWriter(PortletMimeResponseContextImpl.java:176) at org.apache.pluto.container.impl.MimeResponseImpl.getWriter(MimeResponseImpl.java:148) at org.apache.pluto.container.impl.ResourceResponseImpl.getWriter(ResourceResponseImpl.java:81) at org.apache.pluto.container.impl.HttpServletPortletResponseWrapper.getWriter(HttpServletPortletResponseWrapper.java:262) at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125) at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118) at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:180) at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:118) at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:77) at org.apache.jsp.WEB_002dINF.jsp.dynamicForm_jsp._jspService(dynamicForm_jsp.java:165) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) 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.container.impl.PortletRequestDispatcherImpl.doDispatch(PortletRequestDispatcherImpl.java:174) ... 27 more ERROR [http-8080-2] Oct/27 14:26:49,796 rendering.PortletExecutionManager.[] - resource worker failed with exception java.util.concurrent.ExecutionException: org.jasig.portal.portlet.PortletDispatchException: The portlet window 'PortletWindow [portletWindowId=76_n21_4, delegationParentId=null, portletMode=view, windowState=normal, expirationCache=null, renderParameters={}, publicRenderParameters={}, portletEntity=PortletEntity [portletEntityId=76_n21_4, layoutNodeId=n21, userId=4, portletDefinition=PortletDefinition [portletDefinitionId=76, fname=gatewayportlet, portletDescriptorKey=PortletDescriptorKey [frameworkPortlet=false, webAppName=/gatewayportlet, portletName=GatewayPortlet], portletType=PortletTypeImpl [internalId=1, name=Portlet, descr=Adapter for JSR-168 Portlets, cpdUri=/org/jasig/portal/portlets/GenericPortlet.cpd.xml]]]]' threw an exception while executing serveResource. at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:232) at java.util.concurrent.FutureTask.get(FutureTask.java:91) at org.jasig.portal.portlet.rendering.worker.PortletExecutionWorker.get(PortletExecutionWorker.java:234) at org.jasig.portal.portlet.rendering.PortletExecutionManager.doPortletServeResource(PortletExecutionManager.java:439) at org.jasig.portal.rendering.PortalController.resourceRequest(PortalController.java:142) 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.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176) at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:436) at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:424) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:669) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:574) 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.jasig.portal.utils.web.CreatePortletCookieFilter.doFilterInternal(CreatePortletCookieFilter.java:60) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:70) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jasig.portal.url.UrlCanonicalizingFilter.doFilterInternal(UrlCanonicalizingFilter.java:118) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:113) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) Caused by: org.jasig.portal.portlet.PortletDispatchException: The portlet window 'PortletWindow [portletWindowId=76_n21_4, delegationParentId=null, portletMode=view, windowState=normal, expirationCache=null, renderParameters={}, publicRenderParameters={}, portletEntity=PortletEntity [portletEntityId=76_n21_4, layoutNodeId=n21, userId=4, portletDefinition=PortletDefinition [portletDefinitionId=76, fname=gatewayportlet, portletDescriptorKey=PortletDescriptorKey [frameworkPortlet=false, webAppName=/gatewayportlet, portletName=GatewayPortlet], portletType=PortletTypeImpl [internalId=1, name=Portlet, descr=Adapter for JSR-168 Portlets, cpdUri=/org/jasig/portal/portlets/GenericPortlet.cpd.xml]]]]' threw an exception while executing serveResource. at org.jasig.portal.portlet.rendering.PortletRendererImpl.doServeResource(PortletRendererImpl.java:442) at org.jasig.portal.portlet.rendering.worker.PortletResourceExecutionWorker.callInternal(PortletResourceExecutionWorker.java:50) at org.jasig.portal.portlet.rendering.worker.PortletResourceExecutionWorker.callInternal(PortletResourceExecutionWorker.java:31) at org.jasig.portal.portlet.rendering.worker.PortletExecutionWorker$1.call(PortletExecutionWorker.java:145) 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:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) ... 1 more Caused by: javax.portlet.PortletException: java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.pluto.container.impl.PortletRequestDispatcherImpl.doDispatch(PortletRequestDispatcherImpl.java:185) at org.apache.pluto.container.impl.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:222) at edu.fortlewis.portlet.GatewayPortlet.GatewayController.serveResource(GatewayController.java:165) 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.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.processRequest(ApplicationDispatcher.java:436) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) at org.apache.pluto.driver.container.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:229) at org.apache.pluto.driver.container.DefaultPortletInvokerService.serveResource(DefaultPortletInvokerService.java:149) at org.apache.pluto.container.impl.PortletContainerImpl.doServeResource(PortletContainerImpl.java:203) at org.jasig.portal.portlet.rendering.PortletRendererImpl.doServeResource(PortletRendererImpl.java:418) ... 8 more Caused by: java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.catalina.connector.Response.getWriter(Response.java:611) at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198) at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:112) at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:112) at org.jasig.portal.portlet.rendering.worker.GuardingHttpServletResponse.getWriter(GuardingHttpServletResponse.java:257) at org.jasig.portal.utils.web.AbstractHttpServletResponseWrapper.getWriter(AbstractHttpServletResponseWrapper.java:106) at org.jasig.portal.portlet.container.PortletMimeResponseContextImpl.getWriter(PortletMimeResponseContextImpl.java:176) at org.apache.pluto.container.impl.MimeResponseImpl.getWriter(MimeResponseImpl.java:148) at org.apache.pluto.container.impl.ResourceResponseImpl.getWriter(ResourceResponseImpl.java:81) at org.apache.pluto.container.impl.HttpServletPortletResponseWrapper.getWriter(HttpServletPortletResponseWrapper.java:262) at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125) at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118) at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:180) at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:118) at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:77) at org.apache.jsp.WEB_002dINF.jsp.dynamicForm_jsp._jspService(dynamicForm_jsp.java:165) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) 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.container.impl.PortletRequestDispatcherImpl.doDispatch(PortletRequestDispatcherImpl.java:174) ... 27 more {code}

    Apereo Issues | 5 years ago | Gary Maxwell
    org.jasig.portal.portlet.PortletDispatchException: The portlet window 'PortletWindow [portletWindowId=76_n21_4, delegationParentId=null, portletMode=view, windowState=normal, expirationCache=null, renderParameters={}, publicRenderParameters={}, portletEntity=PortletEntity [portletEntityId=76_n21_4, layoutNodeId=n21, userId=4, portletDefinition=PortletDefinition [portletDefinitionId=76, fname=gatewayportlet, portletDescriptorKey=PortletDescriptorKey [frameworkPortlet=false, webAppName=/gatewayportlet, portletName=GatewayPortlet], portletType=PortletTypeImpl [internalId=1, name=Portlet, descr=Adapter for JSR-168 Portlets, cpdUri=/org/jasig/portal/portlets/GenericPortlet.cpd.xml]]]]' threw an exception while executing serveResource.
  2. 0

    Execution of the following serveResource() method of a 2.0 portlet generates errors as shown below. {code} private static final String dynamicForm = "/WEB-INF/jsp/dynamicForm.jsp"; ... ... @Override public void serveResource(ResourceRequest request, ResourceResponse response) throws PortletException, IOException { if (getPortletContext().getResourceAsStream(dynamicForm) != null) { try { // dispatch view request to dynamicForm.jsp PortletRequestDispatcher dispatcher = getPortletContext().getRequestDispatcher(dynamicForm); dispatcher.include(request, response); } catch (IOException e) { logger.info("GatewayController serveResource exception."); throw new PortletException("GatewayController.serveResource exception", e); } } else { logger.info("GatewayController_dynamicForm.jsp missing."); throw new PortletException("GatewayController_dynamicForm.jsp missing."); } } {code} The serveResource() method is called from a jQuery $.getScript() using <portlet:resourceURL> tag as its destination. {code} <portlet:resourceURL var="invoiceURL" id="invoice" escapeXml="false" /> ... ... $.noConflict(); jQuery(document).ready(function($) { $("#<portlet:namespace/>m2").click(function() { $.getScript('<%=renderResponse.encodeURL(invoiceURL.toString())%>', {code} The error received: {code} ERROR [uPortal-PortletExecutor-10-RESOURCE-[gatewayportlet]] Oct/27 14:26:49,780 container.DefaultPortletInvokerService.[] - Unable to successfully invoke portlet. Error during processing. WARN [uPortal-PortletExecutor-10-RESOURCE-[gatewayportlet]] Oct/27 14:26:49,796 worker.PortletResourceExecutionWorker.[] - Portlet '76_n21_4' failed with an exception org.jasig.portal.portlet.PortletDispatchException: The portlet window 'PortletWindow [portletWindowId=76_n21_4, delegationParentId=null, portletMode=view, windowState=normal, expirationCache=null, renderParameters={}, publicRenderParameters={}, portletEntity=PortletEntity [portletEntityId=76_n21_4, layoutNodeId=n21, userId=4, portletDefinition=PortletDefinition [portletDefinitionId=76, fname=gatewayportlet, portletDescriptorKey=PortletDescriptorKey [frameworkPortlet=false, webAppName=/gatewayportlet, portletName=GatewayPortlet], portletType=PortletTypeImpl [internalId=1, name=Portlet, descr=Adapter for JSR-168 Portlets, cpdUri=/org/jasig/portal/portlets/GenericPortlet.cpd.xml]]]]' threw an exception while executing serveResource. at org.jasig.portal.portlet.rendering.PortletRendererImpl.doServeResource(PortletRendererImpl.java:442) at org.jasig.portal.portlet.rendering.worker.PortletResourceExecutionWorker.callInternal(PortletResourceExecutionWorker.java:50) at org.jasig.portal.portlet.rendering.worker.PortletResourceExecutionWorker.callInternal(PortletResourceExecutionWorker.java:31) at org.jasig.portal.portlet.rendering.worker.PortletExecutionWorker$1.call(PortletExecutionWorker.java:145) 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:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: javax.portlet.PortletException: java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.pluto.container.impl.PortletRequestDispatcherImpl.doDispatch(PortletRequestDispatcherImpl.java:185) at org.apache.pluto.container.impl.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:222) at edu.fortlewis.portlet.GatewayPortlet.GatewayController.serveResource(GatewayController.java:165) 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.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.processRequest(ApplicationDispatcher.java:436) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) at org.apache.pluto.driver.container.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:229) at org.apache.pluto.driver.container.DefaultPortletInvokerService.serveResource(DefaultPortletInvokerService.java:149) at org.apache.pluto.container.impl.PortletContainerImpl.doServeResource(PortletContainerImpl.java:203) at org.jasig.portal.portlet.rendering.PortletRendererImpl.doServeResource(PortletRendererImpl.java:418) ... 8 more Caused by: java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.catalina.connector.Response.getWriter(Response.java:611) at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198) at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:112) at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:112) at org.jasig.portal.portlet.rendering.worker.GuardingHttpServletResponse.getWriter(GuardingHttpServletResponse.java:257) at org.jasig.portal.utils.web.AbstractHttpServletResponseWrapper.getWriter(AbstractHttpServletResponseWrapper.java:106) at org.jasig.portal.portlet.container.PortletMimeResponseContextImpl.getWriter(PortletMimeResponseContextImpl.java:176) at org.apache.pluto.container.impl.MimeResponseImpl.getWriter(MimeResponseImpl.java:148) at org.apache.pluto.container.impl.ResourceResponseImpl.getWriter(ResourceResponseImpl.java:81) at org.apache.pluto.container.impl.HttpServletPortletResponseWrapper.getWriter(HttpServletPortletResponseWrapper.java:262) at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125) at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118) at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:180) at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:118) at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:77) at org.apache.jsp.WEB_002dINF.jsp.dynamicForm_jsp._jspService(dynamicForm_jsp.java:165) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) 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.container.impl.PortletRequestDispatcherImpl.doDispatch(PortletRequestDispatcherImpl.java:174) ... 27 more WARN [http-8080-2] Oct/27 14:26:49,796 worker.PortletResourceExecutionWorker.[] - Execution failed on portlet window 76_n21_4 java.util.concurrent.ExecutionException: org.jasig.portal.portlet.PortletDispatchException: The portlet window 'PortletWindow [portletWindowId=76_n21_4, delegationParentId=null, portletMode=view, windowState=normal, expirationCache=null, renderParameters={}, publicRenderParameters={}, portletEntity=PortletEntity [portletEntityId=76_n21_4, layoutNodeId=n21, userId=4, portletDefinition=PortletDefinition [portletDefinitionId=76, fname=gatewayportlet, portletDescriptorKey=PortletDescriptorKey [frameworkPortlet=false, webAppName=/gatewayportlet, portletName=GatewayPortlet], portletType=PortletTypeImpl [internalId=1, name=Portlet, descr=Adapter for JSR-168 Portlets, cpdUri=/org/jasig/portal/portlets/GenericPortlet.cpd.xml]]]]' threw an exception while executing serveResource. at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:232) at java.util.concurrent.FutureTask.get(FutureTask.java:91) at org.jasig.portal.portlet.rendering.worker.PortletExecutionWorker.get(PortletExecutionWorker.java:234) at org.jasig.portal.portlet.rendering.PortletExecutionManager.doPortletServeResource(PortletExecutionManager.java:439) at org.jasig.portal.rendering.PortalController.resourceRequest(PortalController.java:142) 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.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176) at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:436) at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:424) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:669) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:574) 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.jasig.portal.utils.web.CreatePortletCookieFilter.doFilterInternal(CreatePortletCookieFilter.java:60) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:70) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jasig.portal.url.UrlCanonicalizingFilter.doFilterInternal(UrlCanonicalizingFilter.java:118) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:113) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) Caused by: org.jasig.portal.portlet.PortletDispatchException: The portlet window 'PortletWindow [portletWindowId=76_n21_4, delegationParentId=null, portletMode=view, windowState=normal, expirationCache=null, renderParameters={}, publicRenderParameters={}, portletEntity=PortletEntity [portletEntityId=76_n21_4, layoutNodeId=n21, userId=4, portletDefinition=PortletDefinition [portletDefinitionId=76, fname=gatewayportlet, portletDescriptorKey=PortletDescriptorKey [frameworkPortlet=false, webAppName=/gatewayportlet, portletName=GatewayPortlet], portletType=PortletTypeImpl [internalId=1, name=Portlet, descr=Adapter for JSR-168 Portlets, cpdUri=/org/jasig/portal/portlets/GenericPortlet.cpd.xml]]]]' threw an exception while executing serveResource. at org.jasig.portal.portlet.rendering.PortletRendererImpl.doServeResource(PortletRendererImpl.java:442) at org.jasig.portal.portlet.rendering.worker.PortletResourceExecutionWorker.callInternal(PortletResourceExecutionWorker.java:50) at org.jasig.portal.portlet.rendering.worker.PortletResourceExecutionWorker.callInternal(PortletResourceExecutionWorker.java:31) at org.jasig.portal.portlet.rendering.worker.PortletExecutionWorker$1.call(PortletExecutionWorker.java:145) 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:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) ... 1 more Caused by: javax.portlet.PortletException: java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.pluto.container.impl.PortletRequestDispatcherImpl.doDispatch(PortletRequestDispatcherImpl.java:185) at org.apache.pluto.container.impl.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:222) at edu.fortlewis.portlet.GatewayPortlet.GatewayController.serveResource(GatewayController.java:165) 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.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.processRequest(ApplicationDispatcher.java:436) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) at org.apache.pluto.driver.container.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:229) at org.apache.pluto.driver.container.DefaultPortletInvokerService.serveResource(DefaultPortletInvokerService.java:149) at org.apache.pluto.container.impl.PortletContainerImpl.doServeResource(PortletContainerImpl.java:203) at org.jasig.portal.portlet.rendering.PortletRendererImpl.doServeResource(PortletRendererImpl.java:418) ... 8 more Caused by: java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.catalina.connector.Response.getWriter(Response.java:611) at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198) at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:112) at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:112) at org.jasig.portal.portlet.rendering.worker.GuardingHttpServletResponse.getWriter(GuardingHttpServletResponse.java:257) at org.jasig.portal.utils.web.AbstractHttpServletResponseWrapper.getWriter(AbstractHttpServletResponseWrapper.java:106) at org.jasig.portal.portlet.container.PortletMimeResponseContextImpl.getWriter(PortletMimeResponseContextImpl.java:176) at org.apache.pluto.container.impl.MimeResponseImpl.getWriter(MimeResponseImpl.java:148) at org.apache.pluto.container.impl.ResourceResponseImpl.getWriter(ResourceResponseImpl.java:81) at org.apache.pluto.container.impl.HttpServletPortletResponseWrapper.getWriter(HttpServletPortletResponseWrapper.java:262) at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125) at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118) at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:180) at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:118) at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:77) at org.apache.jsp.WEB_002dINF.jsp.dynamicForm_jsp._jspService(dynamicForm_jsp.java:165) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) 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.container.impl.PortletRequestDispatcherImpl.doDispatch(PortletRequestDispatcherImpl.java:174) ... 27 more ERROR [http-8080-2] Oct/27 14:26:49,796 rendering.PortletExecutionManager.[] - resource worker failed with exception java.util.concurrent.ExecutionException: org.jasig.portal.portlet.PortletDispatchException: The portlet window 'PortletWindow [portletWindowId=76_n21_4, delegationParentId=null, portletMode=view, windowState=normal, expirationCache=null, renderParameters={}, publicRenderParameters={}, portletEntity=PortletEntity [portletEntityId=76_n21_4, layoutNodeId=n21, userId=4, portletDefinition=PortletDefinition [portletDefinitionId=76, fname=gatewayportlet, portletDescriptorKey=PortletDescriptorKey [frameworkPortlet=false, webAppName=/gatewayportlet, portletName=GatewayPortlet], portletType=PortletTypeImpl [internalId=1, name=Portlet, descr=Adapter for JSR-168 Portlets, cpdUri=/org/jasig/portal/portlets/GenericPortlet.cpd.xml]]]]' threw an exception while executing serveResource. at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:232) at java.util.concurrent.FutureTask.get(FutureTask.java:91) at org.jasig.portal.portlet.rendering.worker.PortletExecutionWorker.get(PortletExecutionWorker.java:234) at org.jasig.portal.portlet.rendering.PortletExecutionManager.doPortletServeResource(PortletExecutionManager.java:439) at org.jasig.portal.rendering.PortalController.resourceRequest(PortalController.java:142) 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.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176) at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:436) at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:424) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:669) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:574) 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.jasig.portal.utils.web.CreatePortletCookieFilter.doFilterInternal(CreatePortletCookieFilter.java:60) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:70) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jasig.portal.url.UrlCanonicalizingFilter.doFilterInternal(UrlCanonicalizingFilter.java:118) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:113) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) Caused by: org.jasig.portal.portlet.PortletDispatchException: The portlet window 'PortletWindow [portletWindowId=76_n21_4, delegationParentId=null, portletMode=view, windowState=normal, expirationCache=null, renderParameters={}, publicRenderParameters={}, portletEntity=PortletEntity [portletEntityId=76_n21_4, layoutNodeId=n21, userId=4, portletDefinition=PortletDefinition [portletDefinitionId=76, fname=gatewayportlet, portletDescriptorKey=PortletDescriptorKey [frameworkPortlet=false, webAppName=/gatewayportlet, portletName=GatewayPortlet], portletType=PortletTypeImpl [internalId=1, name=Portlet, descr=Adapter for JSR-168 Portlets, cpdUri=/org/jasig/portal/portlets/GenericPortlet.cpd.xml]]]]' threw an exception while executing serveResource. at org.jasig.portal.portlet.rendering.PortletRendererImpl.doServeResource(PortletRendererImpl.java:442) at org.jasig.portal.portlet.rendering.worker.PortletResourceExecutionWorker.callInternal(PortletResourceExecutionWorker.java:50) at org.jasig.portal.portlet.rendering.worker.PortletResourceExecutionWorker.callInternal(PortletResourceExecutionWorker.java:31) at org.jasig.portal.portlet.rendering.worker.PortletExecutionWorker$1.call(PortletExecutionWorker.java:145) 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:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) ... 1 more Caused by: javax.portlet.PortletException: java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.pluto.container.impl.PortletRequestDispatcherImpl.doDispatch(PortletRequestDispatcherImpl.java:185) at org.apache.pluto.container.impl.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:222) at edu.fortlewis.portlet.GatewayPortlet.GatewayController.serveResource(GatewayController.java:165) 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.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.processRequest(ApplicationDispatcher.java:436) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) at org.apache.pluto.driver.container.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:229) at org.apache.pluto.driver.container.DefaultPortletInvokerService.serveResource(DefaultPortletInvokerService.java:149) at org.apache.pluto.container.impl.PortletContainerImpl.doServeResource(PortletContainerImpl.java:203) at org.jasig.portal.portlet.rendering.PortletRendererImpl.doServeResource(PortletRendererImpl.java:418) ... 8 more Caused by: java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.catalina.connector.Response.getWriter(Response.java:611) at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198) at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:112) at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:112) at org.jasig.portal.portlet.rendering.worker.GuardingHttpServletResponse.getWriter(GuardingHttpServletResponse.java:257) at org.jasig.portal.utils.web.AbstractHttpServletResponseWrapper.getWriter(AbstractHttpServletResponseWrapper.java:106) at org.jasig.portal.portlet.container.PortletMimeResponseContextImpl.getWriter(PortletMimeResponseContextImpl.java:176) at org.apache.pluto.container.impl.MimeResponseImpl.getWriter(MimeResponseImpl.java:148) at org.apache.pluto.container.impl.ResourceResponseImpl.getWriter(ResourceResponseImpl.java:81) at org.apache.pluto.container.impl.HttpServletPortletResponseWrapper.getWriter(HttpServletPortletResponseWrapper.java:262) at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125) at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118) at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:180) at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:118) at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:77) at org.apache.jsp.WEB_002dINF.jsp.dynamicForm_jsp._jspService(dynamicForm_jsp.java:165) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) 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.container.impl.PortletRequestDispatcherImpl.doDispatch(PortletRequestDispatcherImpl.java:174) ... 27 more {code}

    Apereo Issues | 5 years ago | Gary Maxwell
    org.jasig.portal.portlet.PortletDispatchException: The portlet window 'PortletWindow [portletWindowId=76_n21_4, delegationParentId=null, portletMode=view, windowState=normal, expirationCache=null, renderParameters={}, publicRenderParameters={}, portletEntity=PortletEntity [portletEntityId=76_n21_4, layoutNodeId=n21, userId=4, portletDefinition=PortletDefinition [portletDefinitionId=76, fname=gatewayportlet, portletDescriptorKey=PortletDescriptorKey [frameworkPortlet=false, webAppName=/gatewayportlet, portletName=GatewayPortlet], portletType=PortletTypeImpl [internalId=1, name=Portlet, descr=Adapter for JSR-168 Portlets, cpdUri=/org/jasig/portal/portlets/GenericPortlet.cpd.xml]]]]' threw an exception while executing serveResource.
  3. 0

    HttpsCookieFilter - IllegalStateException: getOutputStream() has already been called for this response

    Stack Overflow | 6 years ago | Mat Banik
    java.lang.IllegalStateException: getOutputStream() has already been called for this response
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ZK Error Handling: During initial request vs. AJAX request

    Stack Overflow | 4 years ago | Sean Connolly
    java.lang.IllegalStateException: getOutputStream() has already been called for this response
  6. 0

    [OFBIZ-1549] java.lang.IndexOutOfBoundsException in Invoice PDF - ASF JIRA

    apache.org | 1 year ago
    java.lang.IllegalStateException: getOutputStream() has already been called for this response

  1. Bugger 1 times, last 8 months ago
  2. eilonreshef 1 times, last 9 months ago
  3. Piz 24 times, last 4 months ago
  4. mortalman7 10 times, last 7 months ago
39 unregistered visitors
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

    getOutputStream() has already been called for this response

    at org.apache.catalina.connector.Response.getWriter()
  2. Glassfish Core
    ResponseFacade.getWriter
    1. org.apache.catalina.connector.Response.getWriter(Response.java:611)
    2. org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)
    2 frames
  3. JavaServlet
    ServletResponseWrapper.getWriter
    1. javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:112)
    2. javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:112)
    2 frames
  4. org.jasig.portal
    PortletMimeResponseContextImpl.getWriter
    1. org.jasig.portal.portlet.rendering.worker.GuardingHttpServletResponse.getWriter(GuardingHttpServletResponse.java:257)
    2. org.jasig.portal.utils.web.AbstractHttpServletResponseWrapper.getWriter(AbstractHttpServletResponseWrapper.java:106)
    3. org.jasig.portal.portlet.container.PortletMimeResponseContextImpl.getWriter(PortletMimeResponseContextImpl.java:176)
    3 frames
  5. org.apache.pluto
    HttpServletPortletResponseWrapper.getWriter
    1. org.apache.pluto.container.impl.MimeResponseImpl.getWriter(MimeResponseImpl.java:148)
    2. org.apache.pluto.container.impl.ResourceResponseImpl.getWriter(ResourceResponseImpl.java:81)
    3. org.apache.pluto.container.impl.HttpServletPortletResponseWrapper.getWriter(HttpServletPortletResponseWrapper.java:262)
    3 frames
  6. GWT dev
    JspFactoryImpl.releasePageContext
    1. org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125)
    2. org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118)
    3. org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:180)
    4. org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:118)
    5. org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:77)
    5 frames
  7. org.apache.jsp
    dynamicForm_jsp._jspService
    1. org.apache.jsp.WEB_002dINF.jsp.dynamicForm_jsp._jspService(dynamicForm_jsp.java:165)
    1 frame
  8. GWT dev
    HttpJspBase.service
    1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    1 frame
  9. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    1 frame
  10. GWT dev
    JspServlet.service
    1. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
    2. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
    3. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
    3 frames
  11. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    1 frame
  12. Glassfish Core
    ApplicationDispatcher.include
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
    4. org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
    5. org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
    5 frames
  13. org.apache.pluto
    PortletRequestDispatcherImpl.include
    1. org.apache.pluto.container.impl.PortletRequestDispatcherImpl.doDispatch(PortletRequestDispatcherImpl.java:174)
    2. org.apache.pluto.container.impl.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:222)
    2 frames
  14. edu.fortlewis.portlet
    GatewayController.serveResource
    1. edu.fortlewis.portlet.GatewayPortlet.GatewayController.serveResource(GatewayController.java:165)
    1 frame
  15. 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
  16. org.apache.pluto
    PortletServlet.doGet
    1. org.apache.pluto.container.driver.PortletServlet.dispatch(PortletServlet.java:350)
    2. org.apache.pluto.container.driver.PortletServlet.doGet(PortletServlet.java:261)
    2 frames
  17. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    2 frames
  18. Glassfish Core
    ApplicationDispatcher.forward
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
    4. org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
    5. org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
    6. org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
    6 frames
  19. org.apache.pluto
    PortletContainerImpl.doServeResource
    1. org.apache.pluto.driver.container.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:229)
    2. org.apache.pluto.driver.container.DefaultPortletInvokerService.serveResource(DefaultPortletInvokerService.java:149)
    3. org.apache.pluto.container.impl.PortletContainerImpl.doServeResource(PortletContainerImpl.java:203)
    3 frames
  20. org.jasig.portal
    PortletExecutionWorker$1.call
    1. org.jasig.portal.portlet.rendering.PortletRendererImpl.doServeResource(PortletRendererImpl.java:418)
    2. org.jasig.portal.portlet.rendering.worker.PortletResourceExecutionWorker.callInternal(PortletResourceExecutionWorker.java:50)
    3. org.jasig.portal.portlet.rendering.worker.PortletResourceExecutionWorker.callInternal(PortletResourceExecutionWorker.java:31)
    4. org.jasig.portal.portlet.rendering.worker.PortletExecutionWorker$1.call(PortletExecutionWorker.java:145)
    4 frames
  21. 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:886)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    5. java.lang.Thread.run(Thread.java:662)
    5 frames