Jump to content
We've recently updated our Privacy Statement, available here ×

JRPRINT Output format throws a 404 using REST


swatisinghal

Recommended Posts

 Hi,

I am quite new to Jasper server, so am struggling with a very basic problem here:

I am able to fetch the list of resources under a folder from the repository and then make a PUT request to get a report. Once I get the UUID of the report, I make a GET request to run the report and get the output. However, that throws a 404 to me. Please see the code and my logs below:

 

 

My logs show:

 

URI:http://host1:8080/jasperserver-pro/rest/report/Test/SingleChart?RUN_OUTPUT_FORMAT=JRPRINT

URI HERE IS:http://host1:8080/jasperserver-pro/rest/report/Test/SingleChart?RUN_OUTPUT_FORMAT=JRPRINT

Response status line:HTTP/1.1 201 Created

SS - Get the RDs: <report>

<uuid>158abadc-db7c-4d3b-b2ab-42ffcc83e304</uuid>

<originalUri>/Test/SingleChart</originalUri>

<totalPages>1</totalPages>

<startPage>1</startPage>

<endPage>1</endPage>

<file type="application/octet-stream"><![CDATA[jasperPrint]]></file>

</report>

**************

-----ReportUUid:158abadc-db7c-4d3b-b2ab-42ffcc83e304

URI:http://host1:8080/jasperserver-pro/rest/report/158abadc-db7c-4d3b-b2ab-42ffcc83e304?file=report

sending Request. url: http://host1:8080/jasperserver-pro/rest/report/158abadc-db7c-4d3b-b2ab-42ffcc83e304?file=report req verb: GET

response status line: HTTP/1.1 404 Not Found

-----statusCode:404

Download failed: HTTP/1.1 404 Not Found

 

Can someone help me figure out what I'm doing wrong?

 

Thanks!

 

Code:



Post Edited by javafreak at 06/14/2012 18:58



Post Edited by javafreak at 06/14/2012 19:18
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...