Jasper report doesn't show

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:

plugins.jasperPluginRMI.runReport('dca_db', 'test1.jasper' , null, 'view', null, null);

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

plugins.jasperPluginRMI.getReports();

and get test1.jasper back.

Any suggestions?

Thanks,
Reto

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.

The same happens to me under Windows XP Pro 32 bits.

I had the same Problem! The Guide of Thomas Parry on http://www.prospect-saas.biz/subpage1.html helped me much.

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.

Used Libs

  • commons-beanutils.jar (v 1.8.0)
  • commons-collections.jar (v 3.2.1)
  • commons-digester.jar (v 1.7)
  • commons-javaflow.jar (v 20060411)
  • itext.jar (v 2.1.0)
  • jasperreports-3.5.2.jar (v 3.5.2)
  • jdt-compiler.jar (v 3.1.1)

Using The Plugin Version 2.1.5

Edited servoy_jasperreports.jar.jnlp:

<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="%%serverURL%%" href="/servoy-client/plugins/servoy_jasperreports.jar.jnlp">
	<information>
		<title>Servoy Client Plugins</title>
		<vendor>Servoy and Others</vendor>
	</information>
	<resources>
		<jar href="/plugins/servoy_jasperreports.jar" download="eager"/>
		<jar href="/plugins/servoy_jasperreports/jasperreports-3.5.2.jar" download="eager"/>
		<jar href="/plugins/servoy_jasperreports/commons-collections.jar" download="eager" part="commons-collections"/> 
		    <package name="org.apache.commons.collections.*" part="commons-collections" recursive="true"/>
		<jar href="/plugins/servoy_jasperreports/commons-digester.jar" download="eager" part="commons-digester"/> 
		    <package name="org.apache.commons.digester.*" part="commons-digester" recursive="true"/>
	</resources>
	<component-desc></component-desc>
</jnlp>

You can find all libs in the iReport App! I copied them to the /plugins/servoy_jasperreport/ folder as described in the jnlp.

I hope this helps a litte bit.

Regards, Stef