[jira] [Commented] (PLUTO-570) [Weblogic 10.3] PortalServletResponse doesn't implement getOutputsream()

"ff.ge (JIRA)" <[email protected]>
Newsgroups gmane.comp.jakarta.pluto.devel
Message-ID <[email protected]>
    [ https://issues.apache.org/jira/browse/PLUTO-570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16249128#comment-16249128 ] 

ff.ge commented on PLUTO-570:
-----------------------------

i  implement getOutputsream() in PortalServletResponse ,but the problem is still existed ,which version fixed the problem?

> [Weblogic 10.3] PortalServletResponse doesn't implement getOutputsream()
> ------------------------------------------------------------------------
>
>                 Key: PLUTO-570
>                 URL: https://issues.apache.org/jira/browse/PLUTO-570
>             Project: Pluto
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>         Environment: Weblogic 10.3
>            Reporter: Khaled Tlili
>         Attachments: pluto_weblogic.jpg
>
>
> PortalServletResponse doesn't implement getOutputsream(). As weblogic call getOutpustream() and not getWriter() when a the portlet dispatch to a JSP then the output is broken. In addition to that the output of the portlet can't be catched:
> Example:
> ....
> try {
>             container.doRender(window, portalRequest, portalResponse);
>         } catch (Exception th) {
>             logger.error("Error while rendering portlet", th);
>         }
>         final String portletRendering = portalResponse.getInternalBuffer().getBuffer().toString();
> ....
> with weblogic portletRendering  is empty
> So, PortletSerletResponse should be:
> public class PortalServletResponse ...
>     ...
>     @Override
>     public ServletOutputStream getOutputStream() throws IOException {
>         return new PrintWriterServletOutputStream(getWriter(), "UTF-8");
>     }
>   ....
> }



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.