I just installed iReport and the Jasper Plugin, but can’t seem to get Servoy to show the report. I don’t see what I am missing…
iReport works and I managed to create a test report that shows data from my Servoy DB (MySQL). In Servoy I have a global method that should show the report.
I use the following call:
There’s no error message, but nothing happens. I also tried “application.updateUI();”, but no change. The report can be found; I checked this by modifying the file name to an invalid name and got an error message.
Furthermore I checked the report with
What is the servoy_jasperreports plugin version that you have?
What is the version of Servoy being used?
I assume that you are trying the report form the developer or is the error only from the Smart client?
Check that the arguments that you supply to the plugin are correct and in the correct order.
Check the version of iText in the plugins directory form compatibility.
Have a look at my tips page (http://www.prospect-saas.biz/gpage.html)to see if anything sounds familiar.
Sorry about the scarce information. I’m trying to run the report in Developer.
I use
Mac OS X version 10.5.7
Java SE 6 (64-bit)
Servoy Version: 4.1.3 - build 672
iReport 3.5.3
iText-2.1.0.jar (in iReport/modules/ext)
In my Servoy application_server plugins folder I have the following Jasper related files:
servoy_jasperreports.jar
servoy_jasperreports.jar.jnlp
servoy_jasperreports (folder)
In the folder there are only two files
commons-digester-1.7.jar
jasperreports-3.5.2.jar
There is no iText file in the plugins folder. When I check an older installation of Servoy/Jasper i find iText in the servoy_jasperreports folder. However, I did not test if everything works back then.
I also downloaded the latest servoy_jasperreports plugin (servoy_jasperreports-3.0.0a2.zip). The download is only 253 KB (as opposed to 2.3 MB of servoy_jasperreports-3.0.0a1.zip) and the content is completely different. There are only the following files
servoy_jasperreports.properties
ant-contrib-1.0b3.jar (in lib folder)
servoy_jasperreports.jar (in lib folder)
The call to the method seems OK, at least it’s according to the example.
Do I have to go back to iReport 3.5.2? Or use another plugin in Servoy? Do the iText plugins in iReport and Servoy have to have the same version?
As you can tell, I’m not very familiar with the subject…
From first glance at your environment it appears you are running 64 bit Java. This means that the jasper report libraries invoked by the plugin most likely will fail since they were built for 32 bit. Since you did not specify the version of Java SE except for 64 bit I suspect this is not compatible with the Jasper libraries.
It is not the iReport version that is of issue here but the version of the JasperSoft libraries that the plugin used to make its jar file.
Going back to iReport 3.5.2 will not make a difference.
You might want to raise the issue of running the plugin on Java 64 bit in the Google code area:
Have you tried an older version of the Java such as 1.5 on your MAC OS X (others please chime in here I have not tested with the MAC)?
Yes, the versions combination of Java, servoy plugin and JasperSoft are amazingly frustrating to get correct.
I use the following with Mac OSX 10.5.8 and java 1.5 SE. The most features work with java 6 (64bit) too but I was not able to Print out of the Smart Client with Java 6 so the server (Mac OSX 10.5.8 Server) runs with java 1.5 SE and the Client have to run with java 1.5
The iText.jar is updated in the pdf_output Folder.