0

ZK5 jasper error (same project work fine with ZK3)

asked 2010-02-27 04:27:30 +0800

pymsoft gravatar image pymsoft
133 5

HTTP Status 410 - Impossibile caricare /view/gt5g/z_t5_41/0/reports/DataSourceReport.pdf Cause: org/apache/commons/digester/Rule

type Status report

message Impossibile caricare /view/gt5g/z_t5_41/0/reports/DataSourceReport.pdf Cause: org/apache/commons/digester/Rule

description The requested resource (Impossibile caricare /view/gt5g/z_t5_41/0/reports/DataSourceReport.pdf Cause: org/apache/commons/digester/Rule ) is no longer available, and no forwarding address is known.

I have this error testing the zk sample http://www.zkoss.org/smalltalks/jasperreport/jasperreport.dsp


I state that with version 3 of ZK, the same example does not give me errors.


Any idea?

Thank you

Pedro Gonzalez

delete flag offensive retag edit

5 Replies

Sort by ยป oldest newest

answered 2010-02-27 04:34:07 +0800

pymsoft gravatar image pymsoft
133 5

ok. I add the library commons-digester-1.7.jar http://repo2.maven.org/maven2/commons-digester/commons-digester/1.7/

and work fine.


Pedro Gonzalez

link publish delete flag offensive edit

answered 2010-12-22 06:20:02 +0800

markdamne gravatar image markdamne
33

I have the similar error and I add the library commons-digester-1.7.jar...
the error is :

HTTP Status 410 - Impossibile caricare /view/gpgn1/z_pg_c3/0/C:/Users/Marco/Documents/NetBeansProjects/WebApplication1/web/report1.rtf Cause: Unknown exception: java.lang.NullPointerException.

Mark

link publish delete flag offensive edit

answered 2010-12-22 09:52:48 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

Hi Mark,
What version of ZK are you use?
Could you post your sample?

link publish delete flag offensive edit

answered 2010-12-22 13:21:10 +0800

markdamne gravatar image markdamne
33

Hi as1225, version is ZK5.0.5. I tried a simple example with one parameter:


<image src = "/image/document_icon.png" onClick="showReport()"/>
<jasperreport id="report" height="111px" />
<zscript><![CDATA[
void showReport() {
//Preparing parameters
Map parameters = new HashMap();
parameters.put("ReportTitle",cliente);
report.setSrc("C:/Users/Marco/Documents/NetBeansProjects/WebApplication1/web/jasperreport1.jasper");
report.setParameters(parameters);
report.setType("rtf");
}
]]>
</zscript>



I took an example from the internet and go, but when I edit and compile with Jaspersoft iReport Designer 3.7.6 the following should not be more ..
In the libs directory of iReport lacked the tools.jar file, but inserting it wrong anyway ...

link publish delete flag offensive edit

answered 2010-12-23 09:52:56 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

You cannot give a absolute path, it only allow a resource within webapp and give a relative path.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-02-27 04:27:30 +0800

Seen: 638 times

Last updated: Dec 23 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More