JayVora-SerpentCS / Jasperreports_odoo

Jasper Reports Engine for Odoo
http://www.serpentcs.com
82 stars 144 forks source link

print error:Uncaught TypeError: Cannot read property 'body' of null #84

Closed lili94 closed 4 years ago

lili94 commented 5 years ago

hi i am using jasper report in odoo v11 , i create my xml template and desgin it in jasper studio , and i import it in my odoo project when i click in print button i got these error "Uncaught TypeError: Cannot read property 'body' of null" please help

hiren-serpentcs commented 5 years ago

Hello @lili94,

Thanks for Reporting Issue.

The issue might be due to the Jasper Server or Jasper report. Can you please provide us your .jrml file as well as the java log file (which is located at /jasper_reports/java/jasperserver.log ?

Meanwhile, you can check the detailed configuration in https://github.com/JayVora-SerpentCS/Jasperreports_odoo/wiki/Documentation

lili94 commented 5 years ago

hi @hiren-serpentcs thanks for your replay i follow the documentation exactly like you do, but i got the same error, this is my log and my jrxml file i make it for test jasper_devis.txt My log jasperserver.txt

thanks for help please

lili94 commented 5 years ago

@hiren-serpentcs do you find the isues

hiren-serpentcs commented 5 years ago

Hello @lili94, After looking into your log file, the problem is with the Jasper Server connectivity. The Jasper server is trying to connect with a wrong username and password. Can you please check the db username and db password in the odoo configuration?

lili94 commented 5 years ago

hi @hiren-serpentcs thanks for replay i create new database db username :cetic_odoo7 db password :cetic2018 in odoo configuration and i install jasper and sale module i fix the error of Uuid when i print your demo i got the same error this is the my new log jasperserver.txt i find this file in /jasper_reports/java/ jasperserver.log may help you

thanks sir

hiren-serpentcs commented 5 years ago

Hello @lili94, Looking at the log file, I guess you have accidentally misplaced a quote during the deletion of uuid in the .jrxml file.

lili94 commented 5 years ago

hi @hiren-serpentcs this is my jrxml after delete uuid sale_order_report.txt.txt log jasperserver.txt

thanks i need to work so much jasperserver.log

hiren-serpentcs commented 5 years ago

Hi @lili94, You have to remove the uuid attribute along with it's value as well from your .jrxml file.

You can refer to the documentation here: https://github.com/JayVora-SerpentCS/Jasperreports_odoo/wiki/Documentation#uuid-error

lili94 commented 5 years ago

hi @hiren-serpentcs after fixed the problem of uuid i will got this error help me please Capture_test

vimalpatelserpentcs commented 5 years ago

Hi @lili94, We have checked your logs and jrxml file and also we added your jrxml file into the local system, it's working well. It would be nice to have to add reproduce steps or video/screenshot link so we will to get a better idea about your issue

Thanks & Regards Vimal Patel

hiren-serpentcs commented 4 years ago

@JayVora-SerpentCS

We can assume this is fixed and close the issue.

@lili94 you can reopen the issue if it's not fixed.