2002 JI Open Discussion Posted August 27, 2006 Share Posted August 27, 2006 By: Michel - micheljr Error when generating PDF in Websphere 2003-05-16 06:46 I'm using Websphere/Windows and the log error message is: com.ibm.servlet.engine.srt.WriteBeyondContentLengthException Note: when I run my App using JBoss, everything works well. This is a short piece of my code (printPDFDoc.jsp): byte[] bytes = JasperRunManager.runReportToPdf( reportFile.getPath(), parameters, ); response.setContentType("application/pdf"); response.setContentLength(bytes.length); response.setHeader("Cache-Control", "no-cache"); ServletOutputStream ouputStream = response.getOutputStream(); ouputStream.write(bytes, 0, bytes.length); ouputStream.flush(); ouputStream.close(); Any ideas??? Thanks in advance By: Teodor Danciu - teodord RE: Error when generating PDF in Websphere 2004-03-30 11:35 Hi, I think this is a Websphere related problem. I have searched with Google and found something here: http://www.snug.nl/home/newsletter.nsf/0/dc271ce69590ae08c1256d5e0059ab3a?OpenDocument I hope this helps. Teodor Link to comment Share on other sites More sharing options...
elimercado Posted January 26, 2007 Share Posted January 26, 2007 Sorry Teodor, do you have something in English/Spanish/Italian/French/Portuguese? or if you can suggest the searching pattern. Regards,Eli. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now