Skip to content

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

@bigbill91

Description

@bigbill91

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions