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/19 15:50:39 UTC

[jira] Created: (WW-2266) JasperReports plugin with Websphere

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.


[jira] Updated: (WW-2266) JasperReports plugin with Websphere

Posted by "Ted Husted (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2266?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ted Husted updated WW-2266:
---------------------------

    Flags: [Patch]

> 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
>             Fix For: 2.1.3
>
>
> 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.


[jira] Updated: (WW-2266) JasperReports plugin with Websphere

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2266?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Musachy Barroso updated WW-2266:
--------------------------------

    Fix Version/s:     (was: 2.1.7)
                   Future

moving to future until we get a license for websphere

> JasperReports plugin with Websphere 
> ------------------------------------
>
>                 Key: WW-2266
>                 URL: https://issues.apache.org/struts/browse/WW-2266
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - JasperReports
>    Affects Versions: 2.0.9
>         Environment: WAS 6.1 , Windows XP
>            Reporter: J Alex
>             Fix For: Future
>
>
> 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.


[jira] Commented: (WW-2266) JasperReports plugin with Websphere

Posted by "J Alex (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Commented: (WW-2266) JasperReports plugin with Websphere

Posted by "j2 (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46919#action_46919 ] 

j2 commented on WW-2266:
------------------------

I got the same problem too.

I change to "response.setContentLength(output.length+100)", and exception is gone too.
But the output is not printed. 
Why it works in tomcat, but not in was6.1.

It looks like that contentLength doesn't match the real length of content.
Or  response is closed too early.

> JasperReports plugin with Websphere 
> ------------------------------------
>
>                 Key: WW-2266
>                 URL: https://issues.apache.org/struts/browse/WW-2266
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - JasperReports
>    Affects Versions: 2.0.9
>         Environment: WAS 6.1 , Windows XP
>            Reporter: J Alex
>             Fix For: Future
>
>
> 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.


[jira] Updated: (WW-2266) JasperReports plugin with Websphere

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2266?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Musachy Barroso updated WW-2266:
--------------------------------

    Fix Version/s:     (was: 2.1.3)
                   2.1.4

Did you try asking in the user mailing list? I know there are a ton of hacks around for websphere. Moving to 2.1.4

> JasperReports plugin with Websphere 
> ------------------------------------
>
>                 Key: WW-2266
>                 URL: https://issues.apache.org/struts/browse/WW-2266
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - JasperReports
>    Affects Versions: 2.0.9
>         Environment: WAS 6.1 , Windows XP
>            Reporter: J Alex
>             Fix For: 2.1.4
>
>
> 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.


[jira] Updated: (WW-2266) JasperReports plugin with Websphere

Posted by "Don Brown (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2266?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Don Brown updated WW-2266:
--------------------------

    Fix Version/s:     (was: 2.1.4)
                   2.1.3

> JasperReports plugin with Websphere 
> ------------------------------------
>
>                 Key: WW-2266
>                 URL: https://issues.apache.org/struts/browse/WW-2266
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - JasperReports
>    Affects Versions: 2.0.9
>         Environment: WAS 6.1 , Windows XP
>            Reporter: J Alex
>             Fix For: 2.1.3
>
>
> 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.


[jira] Updated: (WW-2266) JasperReports plugin with Websphere

Posted by "Wes Wannemacher (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2266?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wes Wannemacher updated WW-2266:
--------------------------------

    Fix Version/s:     (was: 2.1.4)
                   2.1.5

> JasperReports plugin with Websphere 
> ------------------------------------
>
>                 Key: WW-2266
>                 URL: https://issues.apache.org/struts/browse/WW-2266
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - JasperReports
>    Affects Versions: 2.0.9
>         Environment: WAS 6.1 , Windows XP
>            Reporter: J Alex
>             Fix For: 2.1.5
>
>
> 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.