mm972 Posted February 25, 2015 Share Posted February 25, 2015 Hi, alli use Jasper Server Community 6.0 and Jasper Studio 6.0 on my Pcwhen I deploy my report, where are located the . jrxml and .jasper file in the remote server..???I ask this, beacause sometimes when i execute a REPORT, occurred the following error the the SUBREPORT inside Caused by: net.sf.jasperreports.engine.JRException: Resource not found at : SUBREPORT.jasperat net.sf.jasperreports.repo.RepositoryUtil.getResourceFromLocation(RepositoryUtil.java:145)at net.sf.jasperreports.repo.RepositoryUtil.getReport(RepositoryUtil.java:107)at net.sf.jasperreports.engine.fill.JRFillSubreport.loadReport(JRFillSubreport.java:383)at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluateReport(JRFillSubreport.java:350)at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluateSubreport(JRFillSubreport.java:408)at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluate(JRFillSubreport.java:326)at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:259)at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:455)at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillTitle(JRVerticalFiller.java:320)at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:256)at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:124)at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:540)at net.sf.jasperreports.engine.fill.BaseFillHandle$ReportFill.run(BaseFillHandle.java:120)... 10 more Thanks Max Link to comment Share on other sites More sharing options...
marianol Posted February 25, 2015 Share Posted February 25, 2015 If the subreport is inside the main report object you need to use repo:subreportname.jrxmlIf is stored in the repository as a regular object you can use repo:/path/to/the/subreportname.jrxmlSee that the Jasperreports Server will use .jrxml files as subreport and not the .jasper ones. Jaspersoft Studio should the conversion of the subreport expresion to add the "repo:" to the expression and also identify the reports that need to be uploaded if you use the publish report wizard. Check the samples there is a couple of reports that contain subreports. 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