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

germanmary.p

Members
  • Posts

    3
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Posts posted by germanmary.p

  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...