-
-
Notifications
You must be signed in to change notification settings - Fork 163
Argument -p: expected one argument #63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello @amechax, show your code. |
Hi, please find the code below
|
How I solved/figured out with this ERROR below:
|
Great.
XD
…________________________________
De: azaman2204 <notifications@github.com>
Enviado: quinta-feira, 23 de novembro de 2017 21:31
Para: PHPJasper/phpjasper
Cc: Daniel Rodrigues; Comment
Assunto: Re: [PHPJasper/phpjasper] Argument -p: expected one argument (#63)
How I solved/figured out with this ERROR below:
Fatal error: Uncaught exception 'JasperPHP\Exception\ErrorCommandExecutable' with message 'Your report has an error and couldn 't be processed!\ Try to output the command using the function o utput(); and run it manually in the console.
1. As suggested by geekcom, I echo the output commands to execute by changing the following to get the command line
$jasper->process( $input, $output, $options )->execute();
TO
echo $jasper->process( $input, $output, $options )->output();
1. I ran the out of the above (1) on the console, and found out the issue/problem.
Found out the problem was with one of my parameter that was usinag java.sql.Date tyep which is not yet supported by PHPJasper. I changed the paramter type in Jasper Studio to string type and it solved the problem.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#63 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ADxc3a_0JwQiMzM3G-VtNRpxZiU9xxihks5s5g5_gaJpZM4Pexvz>.
|
Dear @azaman2204 How to run the output from console? Regards, |
Dear @amechax , Argument -p: expected one argument | Because you not passed any password in the DB config. Create an user for your database and assign rights, then pass that username and password in Jasper config. |
Facing the error below while trying to compile;
D:\xampp\htdocs\pro\testoneusage: jasperstarter process [-h] -f [ ...] [-o ] [-w]
] [--data-file ][-a []] [-P [ ...]]
[-r []] [-t ] [-H ]
[-u ] [-p ] [-n ]
[--db-sid ] [--db-port ]
[--db-driver ] [--db-url ]
[--jdbc-dir
[--csv-first-row] [--csv-columns ]
[--csv-record-del ]
[--csv-field-del ]
[--csv-charset ] [--xml-xpath ]
[--json-query ] [-N ] [-d]
[-s ] [-c ]
[--out-field-del ]
[--out-charset ]
jasperstarter: error: argument -p: expected one argument
PHP Fatal error: Uncaught exception 'JasperPHP\Exception\ErrorCommandExecutable' with message 'Your report has an error and couldn 't be processed!\ Try to output the command using the functi
on
output();
and run it manually in the console.' in D:\xampp\htdocs\pro\testone\vendor\geekcom\phpjasper\src\JasperPHP.php:198Stack trace:
#0 D:\xampp\htdocs\pro\testone\report.php(52): JasperPHP\JasperPHP->execute()
#1 {main}
thrown in D:\xampp\htdocs\pro\testone\vendor\geekcom\phpjasper\src\JasperPHP.php on line 198
Fatal error: Uncaught exception 'JasperPHP\Exception\ErrorCommandExecutable' with message 'Your report has an error and couldn 't be processed!\ Try to output the command using the function
o utput();
and run it manually in the console.' in D:\xampp\htdocs\pro\testone\vendor\geekcom\phpjasper\src\JasperPHP.php:198Stack trace:
#0 D:\xampp\htdocs\pro\testone\report.php(52): JasperPHP\JasperPHP->execute()
#1 {main}
thrown in D:\xampp\htdocs\pro\testone\vendor\geekcom\phpjasper\src\JasperPHP.php on line 198
The text was updated successfully, but these errors were encountered: