# Jasper Reports Plugin

**URL:** <https://forum.servoy.com/t/jasper-reports-plugin/15827>\
**Category:** Classic Servoy\
**Created:** [April 18, 2012, 5:45am UTC](https://forum.servoy.com/t/jasper-reports-plugin/15827 "2012-04-18T05:45:26Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![fgsmartest](https://avatars.discourse-cdn.com/v4/letter/f/c2a13f/32.png) [@fgsmartest](https://forum.servoy.com/u/fgsmartest)\
**Post date:** [April 18, 2012, 5:45am UTC](https://forum.servoy.com/t/jasper-reports-plugin/15827/1 "2012-04-18T05:45:26Z")

</div>

Upon using the runform method of the jasperreports plug i get the error: Your jasper.report.directory setting has not been set although i have set that property in the localhost admin page, any idea what else i con do?

---

<div class="post-metadata">

**Author:** ![jdbruijn](https://avatars.discourse-cdn.com/v4/letter/j/ed8c4c/32.png) [@jdbruijn](https://forum.servoy.com/u/jdbruijn)\
**Post date:** [April 18, 2012, 7:41am UTC](https://forum.servoy.com/t/jasper-reports-plugin/15827/2 "2012-04-18T07:41:48Z")

</div>

Do you get the correct/valid directory when you debug your code?

```auto
application.output(plugins.jasperPluginRMI.reportDirectory)

```

---

<div class="post-metadata">

**Author:** ![fgsmartest](https://avatars.discourse-cdn.com/v4/letter/f/c2a13f/32.png) [@fgsmartest](https://forum.servoy.com/u/fgsmartest)\
**Post date:** [April 18, 2012, 2:48pm UTC](https://forum.servoy.com/t/jasper-reports-plugin/15827/3 "2012-04-18T14:48:22Z")

</div>

i ran the code application.output(plugins.jasperPluginRMI.reportDirectory) and it returned null. What should i do? it seems like the admin page is not saving what i set, although when i return to the page the directory is stil stored there. is there any other way to set the directory? Do you know what could be the problem?

I tried setting the report directory using plugins.jasperPluginRMI.reportDirectory=“C:\Reports” //$NON-NLS-1$ but it returns an error saying that the given report cannot be found in the directory

---

<div class="post-metadata">

**Author:** ![jdbruijn](https://avatars.discourse-cdn.com/v4/letter/j/ed8c4c/32.png) [@jdbruijn](https://forum.servoy.com/u/jdbruijn)\
**Post date:** [April 18, 2012, 2:53pm UTC](https://forum.servoy.com/t/jasper-reports-plugin/15827/4 "2012-04-18T14:53:18Z")

</div>

it is stored in the servoy.properties file, so you could check if that is actually the correct value:  
directory.jasper.report=c:\Servoy6\application\_server\server\webapps\ROOT\reports\

---

<div class="post-metadata">

**Author:** ![fgsmartest](https://avatars.discourse-cdn.com/v4/letter/f/c2a13f/32.png) [@fgsmartest](https://forum.servoy.com/u/fgsmartest)\
**Post date:** [April 18, 2012, 2:57pm UTC](https://forum.servoy.com/t/jasper-reports-plugin/15827/5 "2012-04-18T14:57:00Z")

</div>

where in that path should i put the name of my reports directory?

---

<div class="post-metadata">

**Author:** ![jdbruijn](https://avatars.discourse-cdn.com/v4/letter/j/ed8c4c/32.png) [@jdbruijn](https://forum.servoy.com/u/jdbruijn)\
**Post date:** [April 18, 2012, 3:00pm UTC](https://forum.servoy.com/t/jasper-reports-plugin/15827/6 "2012-04-18T15:00:08Z")

</div>

that should be the complete path to your reports dir. So the reports dir in my example is where my \*.jasper files are stored.

---

<div class="post-metadata">

**Author:** ![fgsmartest](https://avatars.discourse-cdn.com/v4/letter/f/c2a13f/32.png) [@fgsmartest](https://forum.servoy.com/u/fgsmartest)\
**Post date:** [April 18, 2012, 3:03pm UTC](https://forum.servoy.com/t/jasper-reports-plugin/15827/7 "2012-04-18T15:03:15Z")

</div>

when i go to that path there is no “reports” in the root folder.

What should i do with the path you posted, i"m a bit confused

---

<div class="post-metadata">

**Author:** ![fgsmartest](https://avatars.discourse-cdn.com/v4/letter/f/c2a13f/32.png) [@fgsmartest](https://forum.servoy.com/u/fgsmartest)\
**Post date:** [April 18, 2012, 3:13pm UTC](https://forum.servoy.com/t/jasper-reports-plugin/15827/8 "2012-04-18T15:13:08Z")

</div>

plugins.jasperPluginRMI.reportDirectory=“C:\Reports” //$NON-NLS-1$  
plugins.jasperPluginRMI.runReport(“payroll\_db”, “C:\Reports\PaydayReport.jrxml” , null,‘view’,null) //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-1$

when i did that and click the button no error occurred but no report came up

---

<div class="post-metadata">

**Author:** ![jdbruijn](https://avatars.discourse-cdn.com/v4/letter/j/ed8c4c/32.png) [@jdbruijn](https://forum.servoy.com/u/jdbruijn)\
**Post date:** [April 18, 2012, 3:20pm UTC](https://forum.servoy.com/t/jasper-reports-plugin/15827/9 "2012-04-18T15:20:50Z")

</div>

I think your fourth param is wrong, try this:

```auto
plugins.jasperPluginRMI.runReport("payroll_db", 'PaydayReport.jasper', null, OUTPUT_FORMAT.VIEW, null);

```

---

<div class="post-metadata">

**Author:** ![fgsmartest](https://avatars.discourse-cdn.com/v4/letter/f/c2a13f/32.png) [@fgsmartest](https://forum.servoy.com/u/fgsmartest)\
**Post date:** [April 18, 2012, 3:29pm UTC](https://forum.servoy.com/t/jasper-reports-plugin/15827/10 "2012-04-18T15:29:10Z")

</div>

nothing happens same way. u think a reporting service should be running or something like tht?

---

<div class="post-metadata">

**Author:** ![fgsmartest](https://avatars.discourse-cdn.com/v4/letter/f/c2a13f/32.png) [@fgsmartest](https://forum.servoy.com/u/fgsmartest)\
**Post date:** [April 18, 2012, 3:31pm UTC](https://forum.servoy.com/t/jasper-reports-plugin/15827/11 "2012-04-18T15:31:43Z")

</div>

could it be that i have the wrong version of the plugin?  
i have the newest version of servoy…the beta. what version of the plugin should i use with that?

---

<div class="post-metadata">

**Author:** ![jdbruijn](https://avatars.discourse-cdn.com/v4/letter/j/ed8c4c/32.png) [@jdbruijn](https://forum.servoy.com/u/jdbruijn)\
**Post date:** [April 18, 2012, 4:06pm UTC](https://forum.servoy.com/t/jasper-reports-plugin/15827/12 "2012-04-18T16:06:56Z")

</div>

I don’t know if there are any incompatabilities between the plugin and the servoy beta, you could ask on the servoyforge forum for the plugin.  
What version of the plugin and iReport are you running? Maybe that is the problem, I’m using plugin v3.2.0 with iReport 4.0.

---

<div class="post-metadata">

**Author:** ![fgsmartest](https://avatars.discourse-cdn.com/v4/letter/f/c2a13f/32.png) [@fgsmartest](https://forum.servoy.com/u/fgsmartest)\
**Post date:** [April 19, 2012, 12:25am UTC](https://forum.servoy.com/t/jasper-reports-plugin/15827/13 "2012-04-19T00:25:53Z")

</div>

i am using ireports 4.5.1 and the v. 3.3.0\_b1 of the plugin

---

<div class="post-metadata">

**Author:** ![fgsmartest](https://avatars.discourse-cdn.com/v4/letter/f/c2a13f/32.png) [@fgsmartest](https://forum.servoy.com/u/fgsmartest)\
**Post date:** [April 19, 2012, 2:18am UTC](https://forum.servoy.com/t/jasper-reports-plugin/15827/14 "2012-04-19T02:18:31Z")

</div>

I am now getting this error:

Unknown hyperlink target 0  
Wrapped java.lang.Exception: Unknown hyperlink target 0 (C:\Users\Francois\servoy\_workspace\Payroll\forms\BaseForm.js#63)  
at C:\Users\Francois\servoy\_workspace\Payroll\forms\BaseForm.js:63 (callReport)

for this code:

plugins.jasperPluginRMI.runReport(“payroll\_db”, “PaydayReport.jrxml”, null, OUTPUT\_FORMAT.VIEW, null); //$NON-NLS-1$ //$NON-NLS-2$

---

<div class="post-metadata">

**Author:** ![jdbruijn](https://avatars.discourse-cdn.com/v4/letter/j/ed8c4c/32.png) [@jdbruijn](https://forum.servoy.com/u/jdbruijn)\
**Post date:** [April 19, 2012, 7:31am UTC](https://forum.servoy.com/t/jasper-reports-plugin/15827/15 "2012-04-19T07:31:24Z")

</div>

> fgsmartest:  
> i am using ireports 4.5.1 and the v. 3.3.0\_b1 of the plugin

maybe this will help:  
[https://www.servoyforge.net/boards/13/topics/494?r=503#message-503](https://www.servoyforge.net/boards/13/topics/494?r=503#message-503)

---

<div class="post-metadata">

**Author:** ![kwpsd](https://avatars.discourse-cdn.com/v4/letter/k/bb73d2/32.png) [@kwpsd](https://forum.servoy.com/u/kwpsd)\
**Post date:** [July 19, 2012, 12:21am UTC](https://forum.servoy.com/t/jasper-reports-plugin/15827/16 "2012-07-19T00:21:43Z")

</div>

I, too, am having the same problem. Posted on Servoy Support and Servoy Forge:

[https://support.servoy.com/browse/SVY-2706](https://support.servoy.com/browse/SVY-2706)

[https://www.servoyforge.net/issues/534](https://www.servoyforge.net/issues/534)

---

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [July 19, 2012, 1:08pm UTC](https://forum.servoy.com/t/jasper-reports-plugin/15827/17 "2012-07-19T13:08:51Z")

</div>

Hi, can you have look in the servoy-admin page, under server plugins → jasperPluginRMI → report directory?

---

<div class="post-metadata">

**Author:** ![kwpsd](https://avatars.discourse-cdn.com/v4/letter/k/bb73d2/32.png) [@kwpsd](https://forum.servoy.com/u/kwpsd)\
**Post date:** [July 19, 2012, 1:55pm UTC](https://forum.servoy.com/t/jasper-reports-plugin/15827/18 "2012-07-19T13:55:39Z")

</div>

Hi, Harjo.

In my Servoy 6.1 installation, there is a path specified in ‘plugins → jasperPluginRMI → report directory’ and, also, in the associated ‘servoy.properties’ file, yet the error persists. It’s the same path used in my Servoy 6.0.7 installation that works. Both the 6.1 and 6.0.7 installations use the same version of the JasperReports plug-in (v4.5.1).

---

<div class="post-metadata">

**Author:** ![produzione](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@produzione](https://forum.servoy.com/u/produzione)\
**Post date:** [August 1, 2012, 12:59pm UTC](https://forum.servoy.com/t/jasper-reports-plugin/15827/19 "2012-08-01T12:59:05Z")

</div>

I have this same problem. I’m using Servoy 6.1 and Jasper Plugin version 3.20 (but was the same with the last beta 4.0).  
It’s not possible to print and test reports…

Is there a solution ?

---

<div class="post-metadata">

**Author:** ![kwpsd](https://avatars.discourse-cdn.com/v4/letter/k/bb73d2/32.png) [@kwpsd](https://forum.servoy.com/u/kwpsd)\
**Post date:** [August 1, 2012, 4:20pm UTC](https://forum.servoy.com/t/jasper-reports-plugin/15827/20 "2012-08-01T16:20:16Z")

</div>

produzione,

Are you running both versions 6.0.7 and 6.1 on the same computer? If so, you need to change the port number on one of them (I changed my version 6.1 to port 9090). Now you will have two installed versions of the Application Server. Log into the administration page of version 6.1 (remember to use the new port number) and set the Jasper Reports directory to you liking. This should get things working for you.

I hope this helps!

[Next page](https://forum.servoy.com/t/jasper-reports-plugin/15827.md?page=2)
