Error when running a main report using a subreport twice


I have an issue when trying to execute a report which is using a subreport twice but with different parameters.

For exemple, I have a main report which is displaying technical specifications for different catégories. 

Main report :

- Subreport 1 ( parameter : 'Printer')

- Subreport  ( parameter : 'Screen')


It's working when executing it in the Studio but when I publish it on the server and try to execute it, I get an error : "An error occured, please contact your administrator".

Does anybody know how to solve this ??


valeria_g's picture
Joined: Feb 2 2016 - 1:20am
Last seen: 7 years 6 months ago

Can you please paste the log? I don´t think that is enough information for us to work out a solution.

javier.ggi90 - 7 years 6 months ago

I get this message :

Error filling report net.sf.jasperreports.engine.JRException: Resource not found at : MyDirectory/Subreport1.jasper

I deploy the report ant its subreport with the "publish" button in Jasper Studio. I don't think it's a subreport path issue because with only one instance of it, it's ok. It's only when I put 2 or more instances of the subreport in the main report that the server crashes...

valeria_g - 7 years 6 months ago

1 Answer:

Hi Valeria,

If you see the properties of your subreport you can find the Expression , there you need to modify instead of MyDirectory/Subreport1.jasper place "repo:MyDirectory/Subreport1.jrxml".


Sukanya Parisa's picture
Joined: Dec 5 2013 - 10:29pm
Last seen: 6 years 6 months ago