PD4ML v4 Forums PD4ML v3 Archived Forums (Read Only) Deployment / Configuration issues PRob generating PDF on Linux works fine on windows

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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.

    Regards
    Jordan

    #29474

    A problem reason and a workaround is explained in the post:
    pdf-generation-troubleshooting-f4/getoutputstream-has-already-been-called-exception-t14.html

    “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.

    #29475

    Hi ,

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

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

    #29476

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

    Thank you!

    #29477

    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.

    #29478

    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?

    #29479

    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.

    Regards
    Jordan

    #29480

    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="http://java.sun.com/jsp/jstl/core"%>
    <%@ page isELIgnored="false"%>
    <%@ page contentType="text/html;charset=UTF-8"%>
    <%@page import="java.util.ArrayList,java.util.Iterator,com.website.utils.DateUtil"%>
    <%@ taglib uri="http://pd4ml.com/tlds/pd4ml/2.5" 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="http://java.sun.com/jsp/jstl/core"%><%@ page isELIgnored="false"%><%@ page contentType="text/html;charset=UTF-8"%><%@ page import="java.util.ArrayList,java.util.Iterator,com.website.utils.DateUtil"%><%@ taglib uri="http://pd4ml.com/tlds/pd4ml/2.5" 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.