我在Cloud9中使用JasperReports从Laravel 5.2中收到此错误
Exception in JasperPHP.php line 178: Your report has an error and couldn't be processed! Try to output the command using the function `output();` and run it manually in the console.
这是我的代码的一部分
$database = \Config::get('database.connections.mysql');
$output = public_path() . '/reportes/'.time().'_resumen';
$ext = "pdf";
\JasperPHP::process(
public_path() . '/reportes/resumen.jasper',
$output,
array($ext),
array("idVersion"=> $idVersion),
$database,
false,
false
)->execute();
我已经将执行更改为输出,这就是我得到的
$command= \JasperPHP::process(
public_path() . '/reportes/resumen.jasper',
$output,
array($ext),
array("idVersion"=> $idVersion),
$database,
false,
false
)->output();
echo $command;
die();
这是对 jasperstarter 的调用(为了便于阅读,有一些换行符):
/home/ubuntu/workspace/vendor/cossou/jasperphp/src/JasperPHP/../JasperStarter/bin/jasperstarter
process /home/ubuntu/workspace/public/reportes/resumen.jasper
-o /home/ubuntu/workspace/public/reportes/1467084704resumen
-f pdf
-r /home/ubuntu/workspace/vendor/cossou/jasperphp/src/JasperPHP/../../../../../
-P idVersion=68 -t mysql -u pms1023 -H localhost -n c9 --db-port 3306