Webclient printing

Forum to discuss the Web client version of Servoy.

Webclient printing

Postby willem1345100370 » Tue Feb 09, 2021 11:18 am

Hi

I am having a problem with printing reports in a webclient. Smartclient works fine.
It does not give any message but does not create a PDF either.

In the server log it give this error message.
org.mozilla.javascript.WrappedException: Wrapped java.lang.Exception: net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
calculator_ClientCard_1612861793518_610721: 18: unable to resolve class net.sf.jasperreports.compilers.GroovyEvaluator
@ line 18, column 1.
calculator_ClientCard_1612861793518_610721: 28: unable to resolve class JRFillParameter
@ line 28, column 5.
and continues for each field on the report.

Our server version is as follows

Server Information
Servoy version 2019.12.1 -releaseNumber 3543
Port used by RMI Registry: 1099
Repository version 51
Current time: Tue Feb 09 10:59:36 CAT 2021
Uptime: 7 days 22 hours 22 minutes 17 seconds
Server ID: 89510A25-A205-4C38-92A3-F70770C70999

JVM Information
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
java.version=1.8.0_251
java.vm.info=mixed mode
java.vm.vendor=Oracle Corporation

and we use jasper reports plugin version v.6.4.1_2019.12.1 with groovy-all-2.4.5.jar file in the jasper_reports folder in the plugins folder on the server.

I know that you can change the report language to Java to not use groovy but that is not really an option for us.

Any help will be appreciated

Regards
Willem
willem1345100370
 
Posts: 8
Joined: Thu Aug 16, 2012 8:59 am

Re: Webclient printing

Postby willem1345100370 » Mon Feb 15, 2021 12:29 pm

Any Ideas would be welcome.
willem1345100370
 
Posts: 8
Joined: Thu Aug 16, 2012 8:59 am

Re: Webclient printing

Postby Gabi Boros » Mon Feb 15, 2021 2:03 pm

I did a bit of research and found this: https://community.jaspersoft.com/questi ... ing-report and then this https://community.jaspersoft.com/jasper ... ssues/9476
They have a similar issue when using an old groovy (2.4.5), like you do, but it seems it works fine with a newer one, like 2.4.15? Maybe you can give it a try.
Gabi Boros
Servoy
Gabi Boros
 
Posts: 399
Joined: Tue Jun 26, 2007 4:03 pm
Location: Timisoara, Romania

Re: Webclient printing

Postby willem1345100370 » Tue Feb 16, 2021 3:29 pm

Hi Gabi

Thank you for taking the time to research and respond to my post.

On reading the jasper plugin page it said to download the ChartCN version of the plugin instead of the basic version of the plugin.
I have done so and it updated the groovy file to 2.4.16.

Unfortunately I still get the exact same error.

It is almost as if the webclient does not know where to find the Jar file.

Does the webclient have a different Classpath to smartclient?
willem1345100370
 
Posts: 8
Joined: Thu Aug 16, 2012 8:59 am

Re: Webclient printing

Postby Gabi Boros » Wed Feb 17, 2021 2:53 pm

This looks exactly like in https://support.servoy.com/browse/SVY-4634 ( https://support.servoy.com/browse/SVY-2738 ) and https://www.servoyforge.net/issues/696 , and seems an issue with the jasper lib itself, with no workaround, just switching to java in the scripting.
Gabi Boros
Servoy
Gabi Boros
 
Posts: 399
Joined: Tue Jun 26, 2007 4:03 pm
Location: Timisoara, Romania


Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 7 guests