Michael Stegall
2012-06-05
Hello, my name is Mike. Our company uses Adempiere 3.5.2a. I'm having a problem with reports not running if there are pictures in the report. I've looked in the SVN for my Adempiere version and I am using the same iReports version as the JasperReports version. Are these two different animals? I've tried iReports 2, 3, and 4 with no luck. I can literally design a report with graphs, and all, in any of the iReport versions and import them to Adempiere and run them if they have no pictures. All I want is to put the company logo on the reports! Does anybody know how to get this to work. I've searched every forum for about a week now and I can't find an answer. The only forum I found with any info close to my problem dealt with the Adempiere and iReport versions matching up, which I did. If I'm leaving out any info let me know.
Thanks,
-Mike
Rinto Exandi
2012-06-06
The report is not running after deployed to Adempiere or even in iReport also cannot run the preview?
Ranjit
2012-06-06
Hello Mike,
For your answer you can refer below link, hope this helps you.
Michael Stegall
2012-06-06
@ rintoexandi,
The report runs fine in preview in iReports but not when imported to Adempiere. Here is the log:
GNU nano 2.2.2 File: webui.2012-06-06_0.log *** 2012-06-06 07:58:54.953 Adempiere Log (CLogFile) *** ===========> MTree.loadNodes: Nodes w/o parent - adding to root - [Global Tax Management, Bank Transfer, Bank Transfer via Cash, Print Format] [11] ===========> MTree.loadNodes: Nodes w/o parent - adding to root - [Global Tax Management, Bank Transfer, Bank Transfer via Cash, Print Format] [24] ===========> Evaluator.evaluateLogicTuple: Logic tuple does not comply with format '@context@=value' where operand could be one of '=!^><' => Y [15] ===========> Evaluator.evaluateLogicTuple: Logic tuple does not comply with format '@context@=value' where operand could be one of '=!^><' => Y [15] ===========> Evaluator.evaluateLogicTuple: Logic tuple does not comply with format '@context@=value' where operand could be one of '=!^><' => Y [15] ===========> MTree.loadNodes: Nodes w/o parent - adding to root - [Global Tax Management, Bank Transfer, Bank Transfer via Cash, Print Format] [11] ===========> MTree.loadNodes: Nodes w/o parent - adding to root - [Global Tax Management, Bank Transfer, Bank Transfer via Cash, Print Format] [26] ===========> ReportStarter.startProcess: ReportStarter.startProcess: Can not run report - Byte data not found at location : /home/mstegall/ireports/workspace/sdh.jpeg [11] ===========> ReportStarter.startProcess: ReportStarter.startProcess: Can not run report - Byte data not found at location : /home/mstegall/ireports/workspace/sdh.jpeg [11] ===========> MTree.loadNodes: Nodes w/o parent - adding to root - [Global Tax Management, Bank Transfer, Bank Transfer via Cash, Print Format] [15] ===========> MTree.loadNodes: Nodes w/o parent - adding to root - [Global Tax Management, Bank Transfer, Bank Transfer via Cash, Print Format] [29] ===========> MTree.loadNodes: Nodes w/o parent - adding to root - [Global Tax Management, Bank Transfer, Bank Transfer via Cash, Print Format] [15] ===========> MTree.loadNodes: Nodes w/o parent - adding to root - [Global Tax Management, Bank Transfer, Bank Transfer via Cash, Print Format] [32] ===========> ReportStarter.startProcess: ReportStarter.startProcess: Can not run report - Byte data not found at location : /home/mstegall/ireports/workspace/sdh.jpeg [15]
@ ranjitwtc,
I tried adding the folder that the pictures were in to the classpath in iReports as well as the .jpeg images themselves and this is the log from that attempt. Funny error saying byte data not found when it is the correct path. I've tried .gif and .png in case it needed a specific file format. I even put the picture files in the same report directory that Adempiere pulls reports from with no luck. I think I'm missing something. Unfortunately our customized version of Adempiere has no client window > Client Info tab > Logo section > Logo Report field available when logged in as SuperUser.
Michael Stegall
2012-06-06
I figured out the problem. Although the pictures were in the right place, the path in iReports was looking on the wrong machine for the file. Pictures now show up in Adempiere reports. Thanks everyone for your help and patience. I though you could just add them in the classpath setting and be done with it.
-Mike