Jump to content
We've recently updated our Privacy Statement, available here ×

germanmary.p

Members
  • Posts

    3
  • Joined

  • Last visited

germanmary.p's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. i am new to this i dont undertstand how to do it . i have created the report and tried in server .i used this code with php client jrs-rest-php-client-2.0.0 after downloading i had written a php file and run through xampp . <?php /*ini_set('display_errors',1);ini_set('display_startup_errors',1);error_reporting(E_ALL); *///require_once __DIR__ . "/autoload.dist.php"; require_once("autoload.dist.php"); use JaspersoftClientClient; //require_once "src/Jaspersoft/Client/Client.php"; /* try { */ $d = new Client( "http://localhost:8080/jasperserver", "jasperadmin", "jasperadmin" ,"" ); $info = $d->serverInfo(); printf($info); /*} catch (RESTRequestException $e) { echo 'RESTRequestException:'; echo 'Exception message: ', $e->getMessage(), "n"; echo 'Set parameters: ', $e->parameters, "n"; echo 'Expected status code:', $e->expectedStatusCodes, "n"; echo 'Error code: ', $e->errorCode, "n"; } $conts=array("agtid"=>2); $report = $c->reportService()->runReport('/reports/samples/Cascading_multi_select_report',"pdf",null,null,$conts); */ //echo $report; ?>
  2. Fatal error: Uncaught exception 'JaspersoftExceptionRESTRequestException' with message 'An unexpected HTTP status code was returned by the server' in C:xampphtdocssamplesrcJaspersoftToolRESTRequest.php:378 Stack trace: #0 C:xampphtdocssamplesrcJaspersoftToolRESTRequest.php(451): JaspersoftToolRESTRequest->handleError(0, Array, false) #1 C:xampphtdocssamplesrcJaspersoftClientClient.php(158): JaspersoftToolRESTRequest->prepAndSend('http://192.168....', Array, 'GET', NULL, true, 'application/jso...', 'application/jso...') #2 C:xampphtdocssamplesample.php(15): JaspersoftClientClient->serverInfo() #3 {main} thrown in C:xampphtdocssamplesrcJaspersoftToolRESTRequest.php on line 378
  3. Please tell me how to resolve this issue; Fatal error: Uncaught exception 'JaspersoftExceptionRESTRequestException' with message 'An unexpected HTTP status code was returned by the server' in C:xampphtdocssamplesrcJaspersoftToolRESTRequest.php:378 Stack trace: #0 C:xampphtdocssamplesrcJaspersoftToolRESTRequest.php(451): JaspersoftToolRESTRequest->handleError(0, Array, false) #1 C:xampphtdocssamplesrcJaspersoftClientClient.php(158): JaspersoftToolRESTRequest->prepAndSend('http://192.168....', Array, 'GET', NULL, true, 'application/jso...', 'application/jso...') #2 C:xampphtdocssamplesample.php(15): JaspersoftClientClient->serverInfo() #3 {main} thrown in C:xampphtdocssamplesrcJaspersoftToolRESTRequest.php on line 378
×
×
  • Create New...