Project

General

Profile

Defect #416

Error webclient compile report (Groovy ?)

Added by Lambert Willemsen about 12 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Urgent
Start date:
02/03/2012
Due date:
% Done:

100%

Estimated time:
Browser (if web client):
Firefox

Description

In both version 3.2.0 and 3.3.0 b1

Smartclient works ok.

net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: calculator_saldi32balans_1328276064988_880597: 18: unable to resolve class JREvaluator line 18, column 1. calculator_saldi32balans_1328276064988_880597: 25: unable to resolve class JRFillParameter line 25, column 5. calculator_saldi32balans_1328276064988_880597: 26: unable to resolve class JRFillParameter line 26, column 5. calculator_saldi32balans_1328276064988_880597: 27: unable to resolve class JRFillParameter line 27, column 5. calculator_saldi32balans_1328276064988_880597: 28: unable to resolve class JRFillParameter line 28, column 5. calculator_saldi32balans_1328276064988_880597: 29: unable to resolve class JRFillParameter line 29, column 5. calculator_saldi32balans_1328276064988_880597: 30: unable to resolve class JRFillParameter line 30, column 5. calculator_saldi32balans_1328276064988_880597: 31: unable to resolve class JRFillParameter line 31, column 5. calculator_saldi32balans_1328276064988_880597: 32: unable to resolve class JRFillParameter line 32, column 5. calculator_saldi32balans_1328276064988_880597: 33: unable to resolve class JRFillParameter line 33, column 5. calculator_saldi32balans_1328276064988_880597: 34: unable to resolve class JRFillParameter line 34, column 5. calculator_saldi32balans_1328276064988_880597: 35: unable to resolve class JRFillParameter line 35, column 5. calculator_saldi32balans_1328276064988_880597: 36: unable to resolve class JRFillParameter line 36, column 5. calculator_saldi32balans_1328276064988_880597: 37: unable to resolve class JRFillParameter line 37, column 5. calculator_saldi32balans_1328276064988_880597: 38: unable to resolve class JRFillParameter line 38, column 5. calculator_saldi32balans_1328276064988_880597: 39: unable to resolve class JRFillParameter line 39, column 5. calculator_saldi32balans_1328276064988_880597: 40: unable to resolve class JRFillParameter line 40, column 5. calculator_saldi32balans_1328276064988_880597: 41: unable to resolve class JRFillParameter line 41, column 5. calculator_saldi32balans_1328276064988_880597: 42: unable to resolve class JRFillParameter line 42, column 5. calculator_saldi32balans_1328276064988_880597: 43: unable to resolve class JRFillParameter line 43, column 5. calculator_saldi32balans_1328276064988_880597: 44: unable to resolve class JRFillParameter @ line 44, column 5. calculator_saldi32balans_1328276064988_880597: 45:


Files

saldi_balans.jrxml (15.2 KB) saldi_balans.jrxml Lambert Willemsen, 02/03/2012 03:17 PM

History

#2

Updated by Andrei Costache over 11 years ago

  • Status changed from New to In Progress
  • Assignee set to Andrei Costache
  • Component version set to 3.3.0 b1

Hi Lambert,

Did you have the groovy library in your /plugins/servoy_jasperreports directory? I assume that you created the report with iReport, and i see it has groovy as scripting language, but maybe you are using the older basic version of the plugin, which did not provide groovy by default.
Or maybe you have created your report with a newer version of jasperreports provided in iReport and the plugin has an older one.

Regards,
Andrei

#3

Updated by Lambert Willemsen over 11 years ago

Hi Andrei,

We are using the https://www.servoyforge.net/attachments/download/425/ChartNScript_Servoy_JasperReports_Plugin_v.3.2.0.zip
File groovy-all-1.7.5.jar is present in the /plugins/servoy_jasperreports directory

Again : Always this error on different machines developer and application server when compiling with webclient. No error in Smartclient in same configuration !

Regards,
Lambert.

#4

Updated by Andrei Costache over 11 years ago

Just for the record: i see it also with Servoy 5.2.13 and plugin version 3.3 (web client).

#5

Updated by Lambert Willemsen over 11 years ago

Things are now set in motion I guess...
I hope you find a solution, thanks in advance for looking into this.

Regards,
Lambert.

#6

Updated by Andrei Costache over 11 years ago

Lambert, what iReport version are you using when creating the reports?

I suppose you are just trying to do something plugins.jasperPluginRMI.compileReport(...), yes?

#7

Updated by Lambert Willemsen over 11 years ago

Andrei,

I uploaded an jrxml-file 7 months ago. I-report v 3.7.2.
The error is thrown when using plugins.jasperPluginRMI.compileReport()...

#8

Updated by Andrei Costache over 11 years ago

Thank you for providing the details. Am looking into this and just want to make sure i know all pieces in the puzzle :)

#9

Updated by Andrei Costache over 11 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100

Hi Lambert,

We found a fix for this. Although this issue appears to be a jasperreports issue (http://jasperforge.org/projects/jasperreports/tracker/view.php?id=5014), which has been fixed in version 4.0.1, it still was reproducible on our side (i could see it also with the trunk version of the plugin, which we build against jasperreports 4.6.0).

Everything seems to work fine; the fix is included in both versions of the plugin (3.3 and 4.0b1). Have tested in Servoy 5.2.x, Servoy 6.0.7 with version 3.3 of the plugin and also tested trunk version of the plugin against Servoy 6.0.7 and Servoy 6.1. All appears to be working well.

Thanks for the patience on this one! :)

Regards,
Andrei

#10

Updated by Lambert Willemsen over 11 years ago

Thanks Andrei,

As said we work with plugin version 3.2 ...

Regards,
Lambert.

#11

Updated by Andrei Costache over 11 years ago

I hope this fixed unblocked or eased upgrading to plugin version 3.3.0 or later, if that was the case.

Regards,
Andrei

#12

Updated by Juan C. Cristobo over 10 years ago

I receive the same error message using v4.0.1 of the plugin. Only webclient (no errors in developer)

#13

Updated by Andrei Costache over 10 years ago

I am not sure if it is an option for you, but switching the scripting language of your report to Java should probably fix the issue.

Regards,
Andrei

#14

Updated by Lambert Willemsen over 10 years ago

Andrei Costache wrote:

I am not sure if it is an option for you, but switching the scripting language of your report to Java should probably fix the issue.

Regards,
Andrei

Is there an issue with Groovy in v4.0.1 ?
We want to update to v4.0.1 and we have all our (customer) reports (1000+) with report language Groovy...

For the average report designer Groovy is so much easier than Java !!!

Regards,
Lambert Willemsen.

#15

Updated by Juan C. Cristobo over 10 years ago

Andrei Costache wrote:

I am not sure if it is an option for you, but switching the scripting language of your report to Java should probably fix the issue.

I'm newbie about this, I don't know the differences between Java and Groovy when you design a report... Do I only change the report language, or I have to change other parts of the report?

#16

Updated by Andrei Costache over 10 years ago

Juan C. Cristobo wrote:

Andrei Costache wrote:

I am not sure if it is an option for you, but switching the scripting language of your report to Java should probably fix the issue.

I'm newbie about this, I don't know the differences between Java and Groovy when you design a report... Do I only change the report language, or I have to change other parts of the report?

Hi Juan,

Just setting/changing the report language to Java or Groovy is a matter of setting a property for instance in iReport, on your report. Designing your report used one language or the other as the scripting language is a different matter. It will require you to write expressions in your report differently; for example, have a look at this url for Groovy expressions: http://community.jaspersoft.com/wiki/creating-expressions-using-groovy.

Hope this helps,
Andrei

#17

Updated by Juan C. Cristobo over 10 years ago

I changed language to Java and it works, thanks!

I noticed that there's algo javascript as language, but I found no documentation about this...

#18

Updated by Lambert Willemsen over 10 years ago

@Andrei : HELP !

We very much want to use Groovy as expression language !!

#19

Updated by Andrei Costache over 10 years ago

Lambert Willemsen wrote:

@Andrei : HELP !

We very much want to use Groovy as expression language !!

Please post the exception (if it's not the same as the one in the case description) and also details about your working environment (Servoy version, report type), in case they different from the ones in the case info.

#20

Updated by Lambert Willemsen over 10 years ago

Andrei,

I just reacted on your comment :

"I am not sure if it is an option for you, but switching the scripting language of your report to Java should probably fix the issue."

Do you believe somehow in recurring errors as this one was fixed one year ago ?

#21

Updated by Andrei Costache over 10 years ago

Juan C. Cristobo wrote:

I changed language to Java and it works, thanks!

I noticed that there's algo javascript as language, but I found no documentation about this...

Juan, my suggestion was a quick workaround, but I suppose you have some Java expressions in your report and are compiling using Groovy as the scripting language.

If you want to use Groovy, you code your expressions in the Groovy fashion. I am no Groovy language expert, but I think there are plenty of tutorials on the web.
If you are not using Java expressions and still get the compilation error, please reopen this issue.

#22

Updated by Andrei Costache over 10 years ago

Lambert Willemsen wrote:

Andrei,

I just reacted on your comment :

"I am not sure if it is an option for you, but switching the scripting language of your report to Java should probably fix the issue."

Do you believe somehow in recurring errors as this one was fixed one year ago ?

Hi Lambert,

My suggestion to Juan was a quick workaround/fix. Please see my comment for him.
If you use Groovy as your scripting language and code your reports accordingly, you should have no issue, it should work just fine.
In case you do have a problem, please reopen this case and provide some details (a stack).
Sorry if my comment for you was confusing earlier, but I supposed you had a new issue with this, that is why I asked for details. But, again, this should work.

Hope this helps.

Regards,
Andrei

#23

Updated by Lambert Willemsen over 10 years ago

Hi Andrei,

All clear now, thanks for your answer.

Regards,
Lambert.

#24

Updated by Juan C. Cristobo over 10 years ago

Andrei Costache wrote:

If you want to use Groovy, you code your expressions in the Groovy fashion. I am no Groovy language expert, but I think there are plenty of tutorials on the web.
If you are not using Java expressions and still get the compilation error, please reopen this issue.

I have no Java expressions in my reports, so I only changed scripting language from Groovy to Java and I works fine (without any errors).
As I said, if you open the report with iReport you can choose 3 scripting languages: Java, Groovy and Javascript. I had never seen the last option and I wondered how it works...

Also available in: Atom PDF