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

Uncaught exception 'Jaspersoft\Exception\RESTRequestException' with message 'null' when i add jrxml resources to a report #22

Open
bigbill91 opened this issue Jun 9, 2016 · 2 comments

Comments

@bigbill91
Copy link

How can I add other sub resources to this report using PHP.
I can't find any documentation of this case.

 `$c = new Client(
 "http://192.168.1.101:8080/jasperserver",
 "jasperadmin",
 "jasperadmin");

try{
     $report = new ReportUnit;
     $report->label = "file5Report";
     $report->description = "file5Report";
     $report->jrxml = "/jrxml/file2";
     $report->dataSource = "/datasources/datasource";
     $report->resources = array("/ImageFolder/Subjrxml");
     $c->repositoryService()->createResource($report, "/ImageFolder", false);
}catch (\Jaspersoft\Exception\RESTRequestException $e){
      echo $e->getMessage();
}`

But always this error shown with message 'null'

@meatballcoder
Copy link

Do you mean as opposed to the path above?

@bigbill91
Copy link
Author

I mean, how can I add sub jrxml files as resources in this principal report file5Report

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