[ https://issues.apache.org/jira/browse/SLING-2531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13414899#comment-13414899 ]
Carsten Ziegeler commented on SLING-2531: ----------------------------------------- We should also include PLUTO-568 and PLUTO-590 > Upgrade pluto version in order to include PLUTO-591 > --------------------------------------------------- > > Key: SLING-2531 > URL: https://issues.apache.org/jira/browse/SLING-2531 > Project: Sling > Issue Type: Bug > Components: Portal > Reporter: Antonio Sanso > Assignee: Carsten Ziegeler > Fix For: Portal Container 1.0.0 > > > Following code in portlet > public void doView(RenderRequest request, RenderResponse response) throws > PortletException, IOException { > response.setContentType("text/html"); > PortletRequestDispatcher dispatcher = > getPortletContext().getRequestDispatcher("/sample.jsp"); > dispatcher.include(request, response); > } > leads to this error: > Caused by: java.lang.ClassCastException: > org.apache.sling.portal.container.internal.PortletMimeResponseContextImpl$SecureOutputStream > at > org.apache.pluto.container.impl.HttpServletPortletResponseWrapper.getOutputStream(HttpServletPortletResponseWrapper.java:234) > at > weblogic.servlet.internal.DelegateChunkWriter.write(DelegateChunkWriter.java:108) > at > weblogic.servlet.internal.ChunkOutputWrapper.write(ChunkOutputWrapper.java:146) > at weblogic.servlet.jsp.JspWriterImpl.write(JspWriterImpl.java:274) > at > jsp_servlet._web_45_inf._jsp.__portlet_view._jspService(__portlet_view.java:155) > at weblogic.servlet.jsp.JspBase.service(JspBase.java:34) > at > weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) > at > weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) > at > weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300) > at > weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:416) > at > weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:326) > at > weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:183) > at > weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:529) > at > weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:447) > at > org.apache.pluto.container.impl.PortletRequestDispatcherImpl.doDispatch(PortletRequestDispatcherImpl.java:174) > at > org.apache.pluto.container.impl.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:227) > at portlet.Portlet.doView(Portlet.java:64) > at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:348) > at javax.portlet.GenericPortlet.render(GenericPortlet.java:253) > This bug is related to https://issues.apache.org/jira/browse/PLUTO-591 > This issue is fixed in Apache Pluto 2.0.2. > Current Version used is Apache Pluto 2.0.0. > Latest available Version is Apache Pluto 2.0.3. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira