JasperReports on Servoy 3.5.10

Hi guys,

I’ve got problems with JasperReports on Servoy 3.5.10. When I use the ‘view’ property a blank screen appears in the client. But when doing it in the developer is work correctly. When I use the ‘pdf’ propety I get this error message:

org.mozilla.javascript.JavaScriptException: java.lang.NoSuchMethodError: com.lowagie.text.pdf.PdfWriter.setRgbTransparencyBlending(Z)V

Is this a known bug in Servoy 3.5.10 or is it one of ours?

Additional info:

OS: Windows XP SP3
Servoy Developer
Version 3.5.10-build 524
Java version 11.2-b01 (Windows XP)

We also tried it on Mac OSX, Linux and Windows Vista / 7 but doesn’t work… Too badly.

Kind Regards,

Rick Bonkestoter
Ambitius BV

The culprit is probably an iText jar that is not the correct version for the iReports/JasperReports version that you are using.
From your error message it looks like the typical pdf output is not correct version(com.lowagie.text.pdf…)
Please tell us your configuration and versions of the servoy jasperreports plugin.
There is a new version of the 3.0.0 alpha (yes it can work in 3.5.10 with care).

Search the forum for Jasper Reports or iText.

Have a look at my tips:
http://www.prospect-saas.biz/gpage.html

It might help.

HI,
I am getting a little confused about what version of the jasper plugin to use with what version of ireports ??

Could some clarify please ??

This is my current setup

jasperreports-3.0.0
ireport 3.0.0

is the above correct ?

Many Thanks

Phil,
for your situation of using iReports 3.0.0 the servoy_jasperreports.jar version 2.1.5 should be ok when using Servoy 3.5.x
Although you still have to be careful about the version of the iText being used in the plugins directory to be compatible.

If using Servoy 3.5.x and you want to use the latest iReports (which I recommend - 3.5.2 - because the classic version (< 3) will not be supported and more features are being added) then the dependent jar files are also required to be upgraded. You can use the latest servoy_jasperreports 3.0.0 alpha 2 from the google code page - in theory the libs/jars etc dependencies are fixed.

Remember that you should have ONLY one version of the servoy_jasperreports in your plugins directory.

Let us know how you fare.

I also had considerable difficulty getting JasperReports to work well with 3.5.10. My goal was to produce output in the Viewer, PDF and Excel formats, on both Mac and PC. After much struggling, I finally got a configuration to work.

I found:

  • There were multiple copies of iText in my plugins directory. Search sub folders to make sure you only have one copy.
  • There were multiple copies of other Jars in sub folders (I recall multiple copies of the commons.jar)
  • I had an old Servoy Jasper Reports RMI folder that I had to get rid of.

I have a final plugins folder that contains everything needed for cross-platform support on Servoy 3.5.10 and works with iReports 3.5.2. If you want a copy of it, contact me, and I will email it to you. It is 8 megs and too big to upload.

Good thread. Thx.

Gary,
would you be so kind as to email me with the essentials of the plugin “fixes” and the servoy jasper reports jnlp. I can then post on my tips page:
http://www.prospect-saas.biz/gpage.html

…and welcome to the frustrated jasper reports plugin “club” as a graduate 8)

Hi,

We have already fixed the problem. We had to update the iText to iText 2.1.0 explained by Tom Parry on the website http://www.prospect-saas.biz.

Tnx