Project

General

Profile

Defect #615

Your jasper.report.directory setting has not been set.

Added by Jos de Bruijn over 12 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Start date:
12/20/2012
Due date:
% Done:

0%

Estimated time:
Browser (if web client):

Description

I've recently upgraded to Servoy 6.1.3 and to plugin version 3.3.0
But now my reports are no longer working. I get the following error:
Your jasper.report.directory setting has not been set.
However in the admin page of my developer I do have that setting (see admin_page.JPG)
I've included a sample solution with the report.


Files

report_test.servoy (3.47 KB) report_test.servoy sample solution Jos de Bruijn, 12/20/2012 11:20 AM
admin_page.JPG (19.9 KB) admin_page.JPG screenshot admin page Jos de Bruijn, 12/20/2012 11:20 AM
report2.jrxml (2.34 KB) report2.jrxml sample report Jos de Bruijn, 12/20/2012 11:20 AM
reports.rar (35.3 KB) reports.rar Jos de Bruijn, 12/21/2012 03:10 PM

History

#1

Updated by Andrei Costache over 12 years ago

Jos, did you manually set that value in the admin page, or was it autoset by the plugin?

Regards,
Andrei

#2

Updated by Jos de Bruijn over 12 years ago

Manually changed on the admin page.

#3

Updated by Andrei Costache over 12 years ago

Jos, please check your admin page servoy.application_server.trustedRemotePlugins property. I think it is empty and i think that's the problem.

Please add servoy.IJasperReportService as the value of the servoy.application_server.trustedRemotePlugins property (or servoy.application_server.trustedRemotePlugins=servoy.IJasperReportService in the properties file).

See also https://www.servoyforge.net/issues/500 (i think it is the same problem).

#4

Updated by Jos de Bruijn over 12 years ago

Thanks Andrei the normal reports are working now.
Subreports are not, but i'll look into that.

#5

Updated by Andrei Costache over 12 years ago

Try to use the com.servoy.plugins.jasperreports.JasperReportsResourceLoader.loadReport(String) method; see these release notes for details, if you are using subreports in a foundset based report.

#6

Updated by Jos de Bruijn over 12 years ago

yea I've seen that post, however my report is not foundset based. I pass a sql string as parameter to the report (and then through to the subreports)

#7

Updated by Andrei Costache over 12 years ago

Then that should work.

Are you getting any exception/error in the logs (server and workspace) or in the Java console if you are running a (webstart) smart client, as to why this fails?

Regards,
Andrei

#8

Updated by Jos de Bruijn over 12 years ago

I get the following error:

Could not load object from location : mr_AantalTabel.jasper
Wrapped java.lang.Exception: Could not load object from location : mr_AantalTabel.jasper (D:\\servoy61_workspace\\report_test\\forms\\main.js#21)
    at D:\\servoy61_workspace\\report_test\\forms\\main.js:21 (onAction)

I have even removed all extra params from the report, only the default settings as in iReport (there the report works correctly)
I'm using the following code to run the report:

function onAction(event) {
    application.output("Jasper version: " +plugins.jasperPluginRMI.pluginVersion);
    plugins.jasperPluginRMI.relativeReportsDirectory = 'FBricks\\\\'

    var _params = new java.util.HashMap();

    var _path = 'mr_AantalTabel.jasper';
    _params.put("P_AANTAL_PATH",_path)
    _path = 'mr_AantalChart_month.jasper';
    _params.put("P_CHART_PATH",_path)

    plugins.jasperPluginRMI.runReport('welcome', 'ManagementAantallen.jrxml', null, plugins.jasperPluginRMI.OUTPUT_FORMAT.VIEW, _params);    

}

#9

Updated by Andrei Costache over 12 years ago

Hi Jos,

Sorry for the late reply. Are all 3 reports (1 main report and 2 subreports) in the same root folder, which is 'FBricks'? Also, is your extra directories property set to anything?

Regards,
Andrei

#10

Updated by Jos de Bruijn over 12 years ago

Hi Andrei,
I was away on holidays also, so no problem.

The reports are all in the same folder:
c:\\Servoy61\\application_server\\server\\webapps\\ROOT\\reports\\FBricks\\
The directory.jasper.report setting is:
c:\\Servoy61\\application_server\\server\\webapps\\ROOT\\reports\\

I had not set the directories.jasper.extra setting, but setting it to the same folder has no results.
I've also upgraded to the latest plugin version 4.0.0 but with the same result:

Resource not found at : mr_AantalTabel.jasper
Wrapped java.lang.Exception: Resource not found at : mr_AantalTabel.jasper (D:\\servoy61_workspace\\report_test\\forms\\main.js#22)
at D:\\servoy61_workspace\\report_test\\forms\\main.js:22 (onAction)

#11

Updated by Andrei Costache over 12 years ago

Hi Jos,

Now i was on holidays, so sorry for a late reply. Question: what if you place the report and subreport at the same location and specify then no params to runReport. Does it work then?

Regards,
Andrei

#12

Updated by Andrei Costache about 12 years ago

Hi Jos,

Were you able to try to place the report and subreport at the same location and specify no params to runReport. If you tried, did it work then? Or is this not a problem anymore?

Regards,
Andrei

#13

Updated by Jos de Bruijn about 12 years ago

Hi Andrei,

I think the problem was somehow related to my servoy environment. I've now installed 6.1.4 as a new servoy instance and here my plugin (3.3.1) seems to work correctly.

Jos

#14

Updated by Andrei Costache about 12 years ago

  • Status changed from New to Closed

Hi Jos,

Good to hear it works correct.
Am closing this then.

Best regards,
Andrei

Also available in: Atom PDF