valeria_g Posted March 23, 2016 Share Posted March 23, 2016 Hi,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 ??Thanks! Link to comment Share on other sites More sharing options...
javier.ggi90 Posted March 23, 2016 Share Posted March 23, 2016 Can you please paste the log? I don´t think that is enough information for us to work out a solution. Link to comment Share on other sites More sharing options...
valeria_g Posted March 24, 2016 Author Share Posted March 24, 2016 I get this message :Error filling report net.sf.jasperreports.engine.JRException: Resource not found at : MyDirectory/Subreport1.jasperI 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... Link to comment Share on other sites More sharing options...
Sukanya Parisa Posted March 24, 2016 Share Posted March 24, 2016 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". Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now