djohns2 Posted October 31, 2013 Share Posted October 31, 2013 I have a master report with three sub-reports. Every time I run the master the .jasper files for the second two get deleted and I have to re-compile them before the report will run successfully. Otherwise it complains that it cannot find the .jasper file. No duh - you just deleted them!! This happens with other reports which have sub-reports as well. Any idea why it is doing this? I am running JasperReports 5.2.0 in Eclipse 4.3.1 (I think...it is Kepler SR1 Build 20130919-0819). I see a Jasper Reports Property in Preferences of ...compiler.keep.java.file which is set to false but these are not .java files, they are .jasper. It didn't have any effect anyway when I set it to true. Is there some other setting in Eclipse that will keep these .jasper files once they are created so I do not have to go through the extra steps every single time!? Link to comment Share on other sites More sharing options...
ajinkya_c Posted November 1, 2013 Share Posted November 1, 2013 Hi,Are you using subreports as resource of main report?ThanksAjinkya Link to comment Share on other sites More sharing options...
djohns2 Posted November 1, 2013 Author Share Posted November 1, 2013 The main report has one query, using a SP. The subreports each use different SPs. They each take the same parameter as the master. They all use the $P{REPORT_CONNECTION}. Same for another report I had, which also had three sub-reports but the main one there only had a querystring of 'Select 1' and the sub-reports did all the work. Link to comment Share on other sites More sharing options...
Massimo Rabbi Posted November 4, 2013 Share Posted November 4, 2013 Hi,could you please register a screencast of what occurs. Moreover do you have "Build Automatically" flagged or not in your Eclipse development environment?I quick tested with some simple reports (1 master and two subreports) and I didn't experienced this kind of problem. Neither with the 5.5+ configuration nor with the 5.2.0 plugin version installed into a Kepler 4.3.1.Best regards,Massimo. Link to comment Share on other sites More sharing options...
djohns2 Posted November 4, 2013 Author Share Posted November 4, 2013 I am not sure how to record this as a screen cast and I don't know what it would show? I can watch in the file Navigator as the report is compiling. If there are .jasper files for each sub-report they will just disappear as the master is compiling. There is no message or warning...they just go away.I have tried this with the Auto Build checked and unchecked and got the same results. Here are the steps I use:1) Import master and 3 sub reports from file system into Eclipse Project folder.2) Add the single parameter they all share from Properties for each sub in the master2)Preview Master...using One Empty Record to see what the page layout looks like3) Eclipse/Jasper creates .jasper file for the first sub-report in the list, not for the rest.4)Error message...Resource not found - it is the next file listed in the folder.5) Manually compile both remaining files and the report will work..until I save a change for anything in the master report.6) Then the second two .jasper files will just disappear when I run the report. Link to comment Share on other sites More sharing options...
Massimo Rabbi Posted November 5, 2013 Share Posted November 5, 2013 Hi,I'm really not able to reproduce your problem.Especially seeing this behavior of .jasper files being removed and then partially recreated.You could register a screencast of the Jaspersoft Studio window area using Jing or even Quicktime.Best regards,Massimo. 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