Problem with plugins.jasperPluginRMI.relativeReportsDirector

Questions and answers on developing, deploying and using plugins and JavaBeans

Re: Problem with plugins.jasperPluginRMI.relativeReportsDire

Postby Andrei Costache » Wed Dec 19, 2012 2:21 pm

pentamsi wrote:And other question, what happens with the external styles? they say to me that not find the source.

External styles for the report template?
Have you tried adding them in the extra directories (also a setting for this in admin page plugins section)?

Regards,
Andrei
Andrei Costache
Servoy
User avatar
Andrei Costache
 
Posts: 196
Joined: Mon Sep 07, 2009 11:53 am

Re: Problem with plugins.jasperPluginRMI.relativeReportsDire

Postby pentamsi » Wed Dec 19, 2012 4:02 pm

But if the styles are in the same directory of reports i have to put the entire route to this?
Image
User avatar
pentamsi
 
Posts: 335
Joined: Thu Nov 03, 2011 2:20 pm
Location: Barcelona, Spain

Re: Problem with plugins.jasperPluginRMI.relativeReportsDire

Postby Andrei Costache » Wed Dec 19, 2012 4:10 pm

pentamsi wrote:But if the styles are in the same directory of reports i have to put the entire route to this?

If the styles are in the same directory as the report you are running, i think you don't have to specify anything else; they should be seen/used from there.

Regards,
Andrei
Andrei Costache
Servoy
User avatar
Andrei Costache
 
Posts: 196
Joined: Mon Sep 07, 2009 11:53 am

Re: Problem with plugins.jasperPluginRMI.relativeReportsDire

Postby pentamsi » Wed Dec 19, 2012 4:18 pm

I have this structure:

reports
-styles
--styles.jrtx
-report
--report.jrxml
--report.jasper

and all is on the same folder, but different subfolders
Image
User avatar
pentamsi
 
Posts: 335
Joined: Thu Nov 03, 2011 2:20 pm
Location: Barcelona, Spain

Re: Problem with plugins.jasperPluginRMI.relativeReportsDire

Postby Andrei Costache » Wed Dec 19, 2012 4:24 pm

The for instance have this in the server admin page of the plugin:
directory.jasper.report=/reports/report
directories.jasper.extra=/reports/styles
Andrei Costache
Servoy
User avatar
Andrei Costache
 
Posts: 196
Joined: Mon Sep 07, 2009 11:53 am

Re: Problem with plugins.jasperPluginRMI.relativeReportsDire

Postby pentamsi » Wed Dec 19, 2012 4:40 pm

And in the report jrxml i need to do anything? Actually i have this:

$P{SUBREPORT_DIR}+"/qcinst/styles/penta.jrtx"

But i don't know if i put the extra directory if i have to change this line

I put the extra directory but show me this error:

MSG: Byte data not found at : //qcinst/styles/penta.jrtx

and i don't know what exactly doing wrong.

And relative directories need to be a complete path or relative?
Image
User avatar
pentamsi
 
Posts: 335
Joined: Thu Nov 03, 2011 2:20 pm
Location: Barcelona, Spain

Re: Problem with plugins.jasperPluginRMI.relativeReportsDire

Postby Andrei Costache » Thu Dec 20, 2012 4:36 pm

pentamsi wrote:And in the report jrxml i need to do anything? Actually i have this:

$P{SUBREPORT_DIR}+"/qcinst/styles/penta.jrtx"

But i don't know if i put the extra directory if i have to change this line

I put the extra directory but show me this error:

MSG: Byte data not found at : //qcinst/styles/penta.jrtx

and i don't know what exactly doing wrong.

And relative directories need to be a complete path or relative?

Yes, relative directories need a relative path also.
Andrei Costache
Servoy
User avatar
Andrei Costache
 
Posts: 196
Joined: Mon Sep 07, 2009 11:53 am

Re: Problem with plugins.jasperPluginRMI.relativeReportsDire

Postby pentamsi » Fri Dec 28, 2012 2:02 pm

But i don't understand the way to the plugin acces the subreports in the server, i define the extra directorys but don't get anything
Image
User avatar
pentamsi
 
Posts: 335
Joined: Thu Nov 03, 2011 2:20 pm
Location: Barcelona, Spain

Re: Problem with plugins.jasperPluginRMI.relativeReportsDire

Postby Andrei Costache » Sat Dec 29, 2012 8:59 pm

pentamsi wrote:And in the report jrxml i need to do anything? Actually i have this:
$P{SUBREPORT_DIR}+"/qcinst/styles/penta.jrtx"
But i don't know if i put the extra directory if i have to change this line

You don't have to change that line necessarily, if the SUBREPORT_DIR parameter is a location relative to the setting you made in the admin page extra directories setting.

pentamsi wrote:I put the extra directory but show me this error:
MSG: Byte data not found at : //qcinst/styles/penta.jrtx
and i don't know what exactly doing wrong.

Why is the $P{SUBREPORT_DIR} value that you send to in this case? What kind of a report is this? What are your admin page settings and your relative path client settings (for report and extra directories)?

pentamsi wrote:And relative directories need to be a complete path or relative?

As said in my previous post, they are relative (to the admin page setting).

Regards,
Andrei
Andrei Costache
Servoy
User avatar
Andrei Costache
 
Posts: 196
Joined: Mon Sep 07, 2009 11:53 am

Re: Problem with plugins.jasperPluginRMI.relativeReportsDire

Postby pentamsi » Mon Dec 31, 2012 10:29 am

For more info i have this configuration in the server, i say too is a localhost machine, not the production server, is the one who I'm testing the applications, and this is the configuration of the plugin, are anything wrong?

Image
Image
User avatar
pentamsi
 
Posts: 335
Joined: Thu Nov 03, 2011 2:20 pm
Location: Barcelona, Spain

Re: Problem with plugins.jasperPluginRMI.relativeReportsDire

Postby Andrei Costache » Mon Jan 07, 2013 11:00 am

Please open an issue at https://www.servoyforge.net/projects/se ... issues/new.
Also specify please the type of report you are using: classic sql, foundset or dataset based.
What you are saying seems to be that external styles are somehow not picked up.

Regards,
Andrei
Andrei Costache
Servoy
User avatar
Andrei Costache
 
Posts: 196
Joined: Mon Sep 07, 2009 11:53 am

Re: Problem with plugins.jasperPluginRMI.relativeReportsDire

Postby pentamsi » Mon Jan 07, 2013 12:49 pm

Okey, thanks for all Andrei, now i proceed to create an issue.
Image
User avatar
pentamsi
 
Posts: 335
Joined: Thu Nov 03, 2011 2:20 pm
Location: Barcelona, Spain

Re: Problem with plugins.jasperPluginRMI.relativeReportsDire

Postby rossent » Fri Jun 07, 2013 1:26 pm

There seems to be an issue in the Servoy JasperPlugin as far as the styles (.jrtx) files are concerned. When using relative paths, the reports engine cannot load the styles files and fails. When using absolute paths (using the deprecated property reportDirectory) everything works fine. I updated the case in the ServoyForge bug tracking system, but am wondering if we need to make a case for this in the standard Servoy Jira?
Rossen Totev
Argos Software
rossent
 
Posts: 288
Joined: Wed Dec 31, 2008 2:03 pm

Re: Problem with plugins.jasperPluginRMI.relativeReportsDire

Postby Andrei Costache » Fri Jun 07, 2013 2:25 pm

The corresponding issue, related to style loading, is almost ready, just some finishing touches to be done.
The fix will involve using relative paths - this will also be documented. I will update this topic and the corresponding issue as soon as possible.

Regards,
Andrei
Andrei Costache
Servoy
User avatar
Andrei Costache
 
Posts: 196
Joined: Mon Sep 07, 2009 11:53 am

Re: Problem with plugins.jasperPluginRMI.relativeReportsDire

Postby pentamsi » Fri Jun 07, 2013 3:52 pm

Thanks for all Andrei, I appreciate a lot your work!
Image
User avatar
pentamsi
 
Posts: 335
Joined: Thu Nov 03, 2011 2:20 pm
Location: Barcelona, Spain

PreviousNext

Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 9 guests