你可以帮我解决这个错误jrs-rst客户端v2

时间:2015-08-20 00:33:40

标签: php jasper-reports

Fatal error: Uncaught exception 'Jaspersoft\Exception\RESTRequestException' with message 'An unexpected HTTP status code was returned by the server' in C:\wamp\www\new_hris\vendor\jaspersoft\rest-client\src\Jaspersoft\Tool\RESTRequest.php:364 
Stack trace: 
#0 C:\wamp\www\new_hris\vendor\jaspersoft\rest-client\src\Jaspersoft\Tool\RESTRequest.php(451): Jaspersoft\Tool\RESTRequest->handleError(404, Array, '<html><head><ti...') 
#1 C:\wamp\www\new_hris\vendor\jaspersoft\rest-client\src\Jaspersoft\Client\Client.php(158): Jaspersoft\Tool\RESTRequest->prepAndSend('http://localhos...', Array, 'GET', NULL, true, 'application/jso...', 'application/jso...') 
#2 C:\wamp\www\new_hris\report.php(14): Jaspersoft\Client\Client->serverInfo() #3 {main} thrown in C:\wamp\www\new_hris\vendor\jaspersoft\rest-client\src\Jaspersoft\Tool\RESTRequest.php on line 364"

我收到了这个错误,我不知道如何调试它。

顺便说一下,这是我的代码:

    require_once("vendor/autoload.php");

    use Jaspersoft\Client\Client;
    $c = new Client(
            "http://localhost:3307/jasperserver",
            "jasperadmin",
            "password"

           );       

  $js = $c->jobService();               
  $c->setRequestTimeout(60); 
  $info = $c->serverInfo();

   $report = $c->reportService()->runReport('/reports/samples/AllAccounts', 'html');