Skip to content

Problem in exports object after reportExecution #362

@GaetanoPiazzolla

Description

@GaetanoPiazzolla

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 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions