Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • #26902

    Hi ,

    I am facing the issue . It works well on windows but Gives Error on Linux Machine. Can any one tell me is there really difference between linux and windows behavior .

    For me its works fine in windows with error “getOutputStream() has already been called” . In windows it gives the Error but opens the document in PDF.

    while in Linux its gives error getOutputStream() has already been called” and message “there was an error opening this document.the file is damanged and could not be repaired” . So on linux it doesnt generate the PDf.



    A problem reason and a workaround is explained in the post:

    “getOutputStream() has already been called” error has different “fatality” on different JSP platforms, probably that explains why it works on Win and does not on Linux. But the best solution would be to update the JSP to suppress the error.


    Hi ,

    Thank you for your reply , but there isnt any space in

    “%@page contentType=”text/html; charset=ISO8859_1”


    Could you please attach your JSP sample or just send it to support pd4ml com

    Thank you!


    Hi ,

    Thank you for your quick Response , i will send the Jsp 2morrow but by the time can you tell me the possible points to trouble shoot.

    I am getting Errror on jsp is “getoutputstream has already been called for this response java lang illegalstateexception”. but with this exception its works fine on Win but give the error on linux.


    There should be a whitespace before tag. It can be not obvious in JSP code, but the exception tells, that probably a new line char has been already sent to HTTP stream (JSP container implicitly opens HTTP stream for that). tries to open the stream again, and causes the exception.

    As I wrote, for different JSP containers the situation has a different severity. On Win it is just a warning, on Linux it could be fatal.

    Could you please just copy paste a top part of your JSP and publish here?


    Hi ,

    As par the discussion please find the Top part of Jsp attached. Also the Tag
    is closed at very bottom like

    ” …

    Plese provide me your suggestions.



    Your code:

    [language=xml:gax5r7a2]<%@ taglib uri="/WEB-INF/struts-bean" prefix="bean"%>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
    <%@ taglib uri="/WEB-INF/c-rt" prefix="c-rt"%>
    <%@ page errorPage="/general/ErrorPage.jsp"%>
    <%@ taglib prefix="c" uri=""%>
    <%@ page isELIgnored="false"%>
    <%@ page contentType="text/html;charset=UTF-8"%>
    <%@page import="java.util.ArrayList,java.util.Iterator,"%>
    <%@ taglib uri="" prefix="pd4ml" %>[/language:gax5r7a2]

    Should be (all new line characters ‘n’ before removed):

    [language=xml:gax5r7a2]<%@ taglib uri="/WEB-INF/struts-bean" prefix="bean"%><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%><%@ taglib uri="/WEB-INF/c-rt" prefix="c-rt"%><%@ page errorPage="/general/ErrorPage.jsp"%><%@ taglib prefix="c" uri=""%><%@ page isELIgnored="false"%><%@ page contentType="text/html;charset=UTF-8"%><%@ page import="java.util.ArrayList,java.util.Iterator,"%><%@ taglib uri="" prefix="pd4ml" %>[/language:gax5r7a2]

Viewing 8 posts - 1 through 8 (of 8 total)

The forum ‘Deployment / Configuration issues’ is closed to new topics and replies.