Getting error on report generation

0

I am trying to integrate an existing report using visualize.js and its giving me error in chrome console. The report is working fine when invoked externally through jaspersoft. See below the error, I have also attached sceen shot

GET http://172.16.32.84:8080/jasperserver-pro/rest_v2/reportExecutions/6ce7479b…2-d1f544b5e65c/exports/2925c367-b606-44fd-91fb-d87db9c45a94/outputResource 404 (Not Found) 16:17:34.530 [bi/report/Report] [ERROR] - resource.not.found : Resource 2925c367-b606-44fd-91fb-d87db9c45a94 not found.

Report is initialized fine as no error is logged in

 v.report({ error: function (err) {...} });

Even this method is invoked fine

event: {reportCompleted: function (status) {...}}

JS Fiddle snippet, available at http://jsfiddle.net/atifoxon/4wujkm3y/2/

Error I am getting in this method

report.run().fail(function (err) {...}}

One more thing I observed: I receive same error while running a sample report instead of one our report? See in

atifoxon's picture
Joined: May 17 2015 - 6:03am
Last seen: 3 years 9 months ago

@hozawa I cannot access the url by typing it in the URL. Furthermore I have digged through this error and it seems to be related with Restuful webservice Requesting Report Output. Does at the backend is it using web services?

atifoxon - 4 years 6 months ago

3 Answers:

0

Try entering the url causing the error in your web browser to see if the file can be found. JasperReports Server, also, protect against cross site scripting so the js files must be in the same domain as the report file.

hozawa's picture
52392
Joined: Apr 24 2010 - 4:31pm
Last seen: 5 months 6 days ago
0

Can any one help whats the issue with simple report rendering here?

atifoxon's picture
Joined: May 17 2015 - 6:03am
Last seen: 3 years 9 months ago
0

Probably you already got the answer but I got the same problem. The fix is the headers from the first request should be passed to the next request. If you do so it will work.

nick_39's picture
Joined: Jun 4 2019 - 10:15pm
Last seen: 3 weeks 1 day ago
Feedback