Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem in exports object after reportExecution #362

Open
GaetanoPiazzolla opened this issue May 31, 2019 · 1 comment
Open

Problem in exports object after reportExecution #362

GaetanoPiazzolla opened this issue May 31, 2019 · 1 comment

Comments

@GaetanoPiazzolla
Copy link

GaetanoPiazzolla commented May 31, 2019

Hello, l'm executing this request:

   ReportExecutionRequest request = new ReportExecutionRequest()
    		.setReportUnitUri("/report/Composition_report")
    		.setAsync(false)
    		.setOutputFormat("pdf")
    		.setParameters(parameters);

   
    OperationResult<ReportExecutionDescriptor> reportResponse = restSession
    		.reportingService()
    		.newReportExecutionRequest(request);`

and then I would like to pull the report generated using

     ReportExecutionDescriptor reportExecutionDescriptor = reportResponse.getEntity();

    OperationResult<InputStream> operationResult = restSession
            .reportingService()
            .reportExecutionRequest(reportExecutionDescriptor.getRequestId())
            .export(reportExecutionDescriptor.getExports().get(0).getId())
            .outputResource();`

but the exports are empty.
Debugging I've found that the exports is present in the buffer input stream, and If i execute the request from postman the exports are there also.

I'm using jasper server 7.2.0
and jrs-rest-java-client-6.0.8-jar-with-dependencies .

@sdenning71
Copy link

I have the same problem! Do you find a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants