# Jasper report doesn't show

**URL:** <https://forum.servoy.com/t/jasper-report-doesnt-show/11031>\
**Category:** Classic Servoy\
**Created:** [August 8, 2009, 2:31pm UTC](https://forum.servoy.com/t/jasper-report-doesnt-show/11031 "2009-08-08T14:31:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![xtsr](https://avatars.discourse-cdn.com/v4/letter/x/c67d28/32.png) [@xtsr](https://forum.servoy.com/u/xtsr)\
**Post date:** [August 8, 2009, 2:31pm UTC](https://forum.servoy.com/t/jasper-report-doesnt-show/11031/1 "2009-08-08T14:31:17Z")

</div>

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:

```auto
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

```auto
plugins.jasperPluginRMI.getReports();

```

and get _test1.jasper_ back.

Any suggestions?

Thanks,  
Reto

---

<div class="post-metadata">

**Author:** ![Thomas\_Parry](https://avatars.discourse-cdn.com/v4/letter/t/b38774/32.png) [@Thomas\_Parry](https://forum.servoy.com/u/Thomas_Parry)\
**Post date:** [August 9, 2009, 1:59am UTC](https://forum.servoy.com/t/jasper-report-doesnt-show/11031/2 "2009-08-09T01:59:49Z")

</div>

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](http://www.prospect-saas.biz/gpage.html))to see if anything sounds familiar.

---

<div class="post-metadata">

**Author:** ![xtsr](https://avatars.discourse-cdn.com/v4/letter/x/c67d28/32.png) [@xtsr](https://forum.servoy.com/u/xtsr)\
**Post date:** [August 9, 2009, 5:35am UTC](https://forum.servoy.com/t/jasper-report-doesnt-show/11031/3 "2009-08-09T05:35:44Z")

</div>

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… ![:(]( "Sad")

---

<div class="post-metadata">

**Author:** ![Thomas\_Parry](https://avatars.discourse-cdn.com/v4/letter/t/b38774/32.png) [@Thomas\_Parry](https://forum.servoy.com/u/Thomas_Parry)\
**Post date:** [August 10, 2009, 12:12pm UTC](https://forum.servoy.com/t/jasper-report-doesnt-show/11031/4 "2009-08-10T12:12:41Z")

</div>

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:

> **[Google Code Archive - Long-term storage for Google Code Project Hosting.](https://code.google.com/archive/p/servoy-jasperreports-plugin)**

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.

---

<div class="post-metadata">

**Author:** ![ProRM](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/prorm/32/4861_2.png) [@ProRM](https://forum.servoy.com/u/ProRM)\
**Post date:** [August 19, 2009, 7:34pm UTC](https://forum.servoy.com/t/jasper-report-doesnt-show/11031/5 "2009-08-19T19:34:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![stefbrt](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@stefbrt](https://forum.servoy.com/u/stefbrt)\
**Post date:** [August 20, 2009, 3:50pm UTC](https://forum.servoy.com/t/jasper-report-doesnt-show/11031/6 "2009-08-20T15:50:26Z")

</div>

I had the same Problem! The Guide of Thomas Parry on [http://www.prospect-saas.biz/subpage1.html](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:

```auto
<?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
