dileep.tananki Posted November 23, 2015 Share Posted November 23, 2015 I have installed jasper server and xampp, now i need to generated the report in jasper server using PHP.I have downloaded the code zip from https://github.com/Jaspersoft/jrs-rest-php-clientand my code is:require_once __DIR__ . "/jaspa/autoload.dist.php"; header('Content-Type: text/html'); use JaspersoftClientClient; $c = new Client( "http://localhost:8080/jasperserver-pro", "jasperadmin", "jasperadmin", "organization_1" ); $report = $c->reportService()->runReport('/reports/samples/AllAccounts', 'html');echo $report; It showing the error Fatal error: Uncaught exception 'JaspersoftExceptionRESTRequestException' with message 'An unexpected HTTP status code was returned by the server' in C:xampphtdocsjaspersrcJaspersoftToolRESTRequest.php:395 Stack trace: #0 C:xampphtdocsjaspersrcJaspersoftToolRESTRequest.php(479): JaspersoftToolRESTRequest->handleError(404, Array, '<!DOCTYPE HTML ...') #1 C:xampphtdocsjaspersrcJaspersoftServiceReportService.php(40): JaspersoftToolRESTRequest->prepAndSend('localhost/rest_...', Array, 'GET', NULL, true) #2 C:xampphtdocstestreport.php(18): JaspersoftServiceReportService->runReport('/reports/AllAcc...', 'jrxml') #3 {main} thrown inC:xampphtdocsjaspersrcJaspersoftToolRESTRequest.php on line 395 Please Help me to generate report using jasper in PHP. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now