Fatal error: Uncaught exception 'Jaspersoft\Exception\RESTRequestException' with message 'An unexpected HTTP status code was returned by the server'

Hi ,

I have a report with 5 parameters. report run successfully for the three of the parameters and there are two multiselect values parameter for which I am getting the below exception. 

RESTRequestException:Exception message: An unexpected HTTP status code was returned by the server Set parameters: Expected status code:Array Error code: Array ( [0] => 200 ) Jaspersoft\Exception\RESTRequestException Object ( [message] => An unexpected HTTP status code was returned by the server [expectedStatusCodes] => Array ( [0] => 200 ) [statusCode] => 0 [jrsMessage] => [errorCode] => [parameters] => [string:Exception:private] => [code:protected] => 0 [file:protected] => C:\xampp\htdocs\lsp\site\local\reports\jrs-rest-php-client-master\src\Jaspersoft\Tool\RESTRequest.php [line:protected] => 409 [trace:Exception:private] => Array ( [0] => Array ( [file] => C:\xampp\htdocs\lsp\site\local\reports\jrs-rest-php-client-master\src\Jaspersoft\Tool\RESTRequest.php [line] => 479 [function] => handleError [class] => Jaspersoft\Tool\RESTRequest [type] => -> [args] => Array ( [0] => 0 [1] => Array ( [0] => 200 ) [2] => ) ) [1] => Array ( [file] => C:\xampp\htdocs\lsp\site\local\reports\jrs-rest-php-client-master\src\Jaspersoft\Service\ReportService.php [line] => 40 [function] => prepAndSend [class] => Jaspersoft\Tool\RESTRequest [type] => -> [args] => Array ( [0] => http://localhost:8080/jasperserver/rest_v2/reports/ContentFiles/html/Tea... [1] => Array ( [0] => 200 ) [2] => GET [3] => [4] => 1 ) ) [2] => Array ( [file] => C:\xampp\htdocs\lsp\site\local\reports\teacherperformancereport.php [line] => 146 [function] => runReport [class] => Jaspersoft\Service\ReportService [type] => -> [args] => Array ( [0] => /ContentFiles/html/TeacherPerformanceReport [1] => html [2] => [3] => [4] => Array ( [trackId] => Array ( [0] => 1 ) ) [5] => 1 [6] => 1 ) ) ) [previous:Exception:private] => )

How to solve this issue? when checked jasper logs couldn't find any errors.  the report is running perfectly in Jasper server and Jasper studio. 

Kindly help to solve the issue. Thanks in Advance.

Padma

vspadma01's picture
Joined: Nov 29 2021 - 5:22am
Last seen: 1 year 2 months ago

0 Answers:

No answers yet
Feedback