-
Notifications
You must be signed in to change notification settings - Fork 102
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
Scheduled Jasper Server Job isn't passing parameters #82
base: master
Are you sure you want to change the base?
Conversation
…xt from json string
The bug can not be reproduced on the latest version of client (6.1.4). Please, try this version and reopen the issue. |
Thanks for pointing to the issue. We fixed it in a bit another way. Please try the latest release version and fill free to reopen an issue if something doesn't work. |
Tried with 6.2.2. The issue persists. The job is created with the parameters set to null. Thanks, |
This is still an issue in 6.3.1. How do I get around this problem? |
clientSessionForAsynchronousRequest.jobsService().scheduleReportWithHack(job) |
We are using the jrs-rest-java-client, version 5.5.0 (https://github.com/Jaspersoft/jrs-rest-java-client ) to schedule a
Job on the Jasper (Tomcat) Server. The problem is, though the job is created on the server, the report parameters are
all null.
This is the client code:
private Session clientSessionForAsynchronousRequest;
private void scheduleJob(String reportUri, Map parameters) {
Job job = new Job();
job.setLabel("New Job for ISS Report");
job.setDescription("New Job for the report template: " + reportUri);
JobSource jobSource = new JobSource();
jobSource.setReportUnitURI(reportUri);
}
However, we have a bad work-around, by changing the JobsService in jrs-rest-java-client. The above code works if I replace:
long jobId = clientSessionForAsynchronousRequest.jobsService().scheduleReport(job);
With:
long jobId = clientSessionForAsynchronousRequest.jobsService().scheduleReportWithHack(job);
// long jobId = clientSessionForAsynchronousRequest.jobsService().scheduleReport(job);
Also, I have forked the project on git-hub, and you will find my changes here:
https://github.com/paawak/jrs-rest-java-client
Thanks,
Palash.