Jasper Reports Plugin

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?

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

application.output(plugins.jasperPluginRMI.reportDirectory)

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

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\

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

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

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

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

I think your fourth param is wrong, try this:

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

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

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?

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.

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

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$

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

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

https://support.servoy.com/browse/SVY-2706

https://www.servoyforge.net/issues/534

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

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).

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 ?

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!