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

I am trying to make the report to work but for some reason I can’t get it done,

  • I install Jasperstarter and set up the environment variable.
  • I’m using the example of hello_world.jrxml
  • I’m using laravel 5.3 project.

my code:

use JasperPHP\JasperPHP;
public function partida_provisiones_get_data(Request $request)
{
     $input = __DIR__ . '/vendor/geekcom/phpjasper/examples/hello_world.jrxml';
     $jasper = new JasperPHP;
     $jasper = \JasperPHP::compile($input)->execute();
}

But for some reason I’m getting this error: screenshot 174

Can you tell me if there is any missing step.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 35 (17 by maintainers)

Most upvoted comments

Thank you!! These lines were missing,

  'jdbc_driver' => 'com.microsoft.sqlserver.jdbc.SQLServerDriver',
  'jdbc_url' => 'jdbc:sqlserver://'.env('DB_HOST', 'localhost').':'.env('DB_PORT', '1433').';databaseName='.env('DB_DATABASE', 'forge'),
  'jdbc_dir' => '/vendor/geekcom/src/JasperStarter/jdbc/'

Right now Is working well I guess thats it for now.

yea sure, thanks for the help… 💯

Did you run the command from the “C: \ Users \ Erick” folder the jasperstarter binary is there?

Shows the code you are making