jasper_erpnext_report icon indicating copy to clipboard operation
jasper_erpnext_report copied to clipboard

Error : Fail to save as local jrxml only in JasperServerConfig

Open naim5441 opened this issue 8 years ago • 14 comments

Hello guys,

i have encounter this following error when try to save as local jrxml in setting.

"You don't have local server. Install python module pyjnius first."

http://imgur.com/a/TK6nJ

i have run bench update --requirements to install and make sure the java path is point to right directory.

Any suggestion is really appreciated.Thanks

naim5441 avatar Sep 05 '16 15:09 naim5441

What do you mean by java path. You have to export also JAVA_HOME in .bashrc file for instance.

saguas avatar Sep 06 '16 08:09 saguas

Hi Saguas, thanks for your reply. From the tutorial: "Note: If you have nay trouble like pyjnius is not installed check if you have JAVA_HOME exported and added it to PATH. Check also if it is the right path to java folder."

from my droplet:

frappe@trainee:~/frappe-bench$ echo $JAVA_HOME
/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java

Is this the correct path?

naim5441 avatar Sep 06 '16 09:09 naim5441

Try this:

export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
export PATH=$PATH:/usr/lib/jvm/java-7-openjdk-amd64/bin

If this work you must update jasper_erpnext_report (bench update).

saguas avatar Sep 06 '16 12:09 saguas

Hi Saguas, I have done those export on my droplet and below is the result but the problem is still persist.

echo $JAVA_HOME
/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java
echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-7-openjdk-amd64/bin

naim5441 avatar Sep 07 '16 04:09 naim5441

JAVA_HOME is not like i wrote.

Luis Fernandes

No dia 07/09/2016, às 05:15, naim5441 [email protected] escreveu:

Hi Saguas, I have done those export on my droplet and below is the result but the problem is still persist.

echo $JAVA_HOME /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-7-openjdk-amd64/bin — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

saguas avatar Sep 07 '16 09:09 saguas

Ops..my bad, i have made the correction but the problem is still there.

frappe@trainee:~/frappe-bench$ echo $JAVA_HOME
/usr/lib/jvm/java-7-openjdk-amd64
frappe@trainee:~/frappe-bench$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-7-openjdk-amd64/bin

I have uninstall and reinstall the apps, and the pyniuis is stated as True.

frappe@trainee:~/frappe-bench$ bench install-app jasper_erpnext_report
Installing jasper_erpnext_report...
Updating jasper_erpnext_report      : [================                        ]CLASSPATH /home/frappe/frappe-bench/apps/jasper_erpnext_report/jasper_erpnext_report/java/lib/*:.:
pyjnius is installed: True
Updating jasper_erpnext_report      : [========================================]
Installing fixtures...

May i know, where should i be looking next?..Thanks Luis

naim5441 avatar Sep 07 '16 15:09 naim5441

Hi.

Follow the examples in example folder and learn jasper report or use his application.

Luís Fernandes.

No dia 07/09/2016, às 16:28, naim5441 [email protected] escreveu:

Ops..my bad, i have made the correction but the problem is still there.

frappe@trainee:~/frappe-bench$ echo $JAVA_HOME /usr/lib/jvm/java-7-openjdk-amd64 frappe@trainee:~/frappe-bench$ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-7-openjdk-amd64/bin

I have uninstall and reinstall the apps, and the pyniuis is stated as True.

frappe@trainee:~/frappe-bench$ bench install-app jasper_erpnext_report Installing jasper_erpnext_report... Updating jasper_erpnext_report : [================ ]CLASSPATH /home/frappe/frappe-bench/apps/jasper_erpnext_report/jasper_erpnext_report/java/lib/*:.: pyjnius is installed: True Updating jasper_erpnext_report : [========================================] Installing fixtures... May i know, where should i be looking next?..Thanks Luis

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/saguas/jasper_erpnext_report/issues/12#issuecomment-245318066, or mute the thread https://github.com/notifications/unsubscribe-auth/ACTH5afB9HzhINBjR1zRN674xNaNs_tPks5qntgQgaJpZM4J1JsG.

saguas avatar Sep 07 '16 17:09 saguas

hmm..actually im still stuck with the problem 'You don't have local server. Install python module pyjnius first' even it shows in my droplet 'pyjnius is installed: True'.

If i ignore the error and proceed to create a new report, there is no option to select local server in Choose origin.

naim5441 avatar Sep 08 '16 07:09 naim5441

Hi.

It is very strange. Try to restart frappe. I will see what is wrong.

But with me is everything ok, and i also made a fresh install.

Luís Fernandes.

No dia 08/09/2016, às 08:34, naim5441 [email protected] escreveu:

hmm..actually im still stuck with the problem 'You don't have local server. Install python module pyjnius first' even it shows in my droplet 'pyjnius is installed: True'.

If i ignore the error and proceed to create a new report, there is no option to select local server in Choose origin.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/saguas/jasper_erpnext_report/issues/12#issuecomment-245517188, or mute the thread https://github.com/notifications/unsubscribe-auth/ACTH5VFTNBs1a9lUFsiMPc1ztlwbUKvXks5qn7p-gaJpZM4J1JsG.

saguas avatar Sep 08 '16 09:09 saguas

Hi,

I did the bench restart after i install jasper, and reload the page first before go to the configuration , but cant get rid of the problem .

naim5441 avatar Sep 09 '16 07:09 naim5441

I made some updated.

Please do bench update.

Luís Fernandes.

No dia 09/09/2016, às 08:13, naim5441 [email protected] escreveu:

Hi,

I did the bench restart after i install jasper, and reload the page first before go to the configuration , but cant get rid of the problem .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/saguas/jasper_erpnext_report/issues/12#issuecomment-245837574, or mute the thread https://github.com/notifications/unsubscribe-auth/ACTH5SwSHD1fCPzs537e9jJ_Syrxe52fks5qoQcVgaJpZM4J1JsG.

saguas avatar Sep 09 '16 08:09 saguas

Hi , sorry for late update..

I just did the bench update but unfortunately the error is still persist.

Can i just ignore it and proceed with Jasperserver only?..Will there any consequence later on?

Thanks for your time.

naim5441 avatar Sep 13 '16 06:09 naim5441

Luis Fernandes

No dia 13/09/2016, às 07:23, naim5441 [email protected] escreveu:

Hi , sorry for late update..

I just did the bench update but unfortunately the error is still persist.

Can i just ignore it and proceed with Jasperserver only?..Will there any consequence later on?

Thanks for your time.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

saguas avatar Sep 13 '16 06:09 saguas

Try to ignore it. No consequences.

But i think some thing is not configure it in the right way.

Luis Fernandes

No dia 13/09/2016, às 07:23, naim5441 [email protected] escreveu:

Hi , sorry for late update..

I just did the bench update but unfortunately the error is still persist.

Can i just ignore it and proceed with Jasperserver only?..Will there any consequence later on?

Thanks for your time.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

saguas avatar Sep 13 '16 06:09 saguas