You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "J Alex (JIRA)" <ji...@apache.org> on 2007/10/25 22:07:41 UTC
[jira] Commented: (WW-2266) JasperReports plugin with Websphere
[ https://issues.apache.org/struts/browse/WW-2266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42451 ]
J Alex commented on WW-2266:
----------------------------
After changing response.setContentLength(output.length); to response.setContentLength(output.length+100); exception is gone, the output is printed, and the following message is seen at bottom of page
Error 404: SRVE0190E: File not found: /newapp.action
Also :
Changing the report generation code to :
PrintWriter out = response.getWriter();
JRHtmlExporter exporter = new JRHtmlExporter();
exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
exporter.setParameter(JRExporterParameter.OUTPUT_WRITER,out);
exporter.exportReport();
out.close()
seems to solve the problem ; ie the 404 message is not displayed.
Open Qn :
Is the 404 problem related to http://mail-archives.apache.org/mod_mbox/struts-user/200704.mbox/%3C9831120.post@talk.nabble.com%3E
I tried installing the patch but that crashed my install ; can someone verify please ?
Thanks,
Joseph
> JasperReports plugin with Websphere
> ------------------------------------
>
> Key: WW-2266
> URL: https://issues.apache.org/struts/browse/WW-2266
> Project: Struts 2
> Issue Type: Bug
> Components: Plugins, Views
> Affects Versions: 2.0.9
> Environment: WAS 6.1 , Windows XP
> Reporter: J Alex
>
> While trying to use the Struts2-JasperReports plugin, i'm getting an error.
> The Action class, struts.xml, jrxml file is attached.
> Also attached is the JasperReportsIntro.java file used for generating the compiled file : jasper_compiled.jasper from jasperreports_demo.jrxml
> The stack traces are attached for HTML and PDF formats ; both of them give "com.ibm.ws.webcontainer.srt.WriteBeyondContentLengthException"
> Please confirm if this is a bug on Websphere or something missing in the code.
> Thanks,
> Joseph
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.