0

I'm getting this error from Laravel 5.2 with JasperReports in cloud9

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.

This is part of my code

 $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();

I already change execute to output and this is what I get

$command= \JasperPHP::process(
            public_path() . '/reportes/resumen.jasper', 
            $output, 
            array($ext),
            array("idVersion"=> $idVersion),
            $database,
            false,
            false
        )->output();
        echo $command;
        die();

This is the call to jasperstarter (with some line breaks for readability):

/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
4

0 に答える 0