swatisinghal Posted June 14, 2012 Share Posted June 14, 2012 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=JRPRINTURI HERE IS:http://host1:8080/jasperserver-pro/rest/report/Test/SingleChart?RUN_OUTPUT_FORMAT=JRPRINTResponse status line:HTTP/1.1 201 CreatedSS - 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-42ffcc83e304URI:http://host1:8080/jasperserver-pro/rest/report/158abadc-db7c-4d3b-b2ab-42ffcc83e304?file=reportsending Request. url: http://host1:8080/jasperserver-pro/rest/report/158abadc-db7c-4d3b-b2ab-42ffcc83e304?file=report req verb: GETresponse status line: HTTP/1.1 404 Not Found-----statusCode:404Download 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:58Post Edited by javafreak at 06/14/2012 19:18 Link to comment Share on other sites More sharing options...
swatisinghal Posted June 18, 2012 Author Share Posted June 18, 2012 Found the issue...I am using file=report instead of file=jasperPrint. It works fine when I set the parameter file as jasperPrint. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now