lordan Posted July 21, 2010 Share Posted July 21, 2010 Hi, I need some subreports in my main report to use a different data source than the main report.The main report will be filled by a talend job but the subreports have to use their own connection to a sql database. I really would hate to drag out all the logic I set up in my existing report and rebuild it in talend... Btw.: at the moment I am struggling with talend and using a report with subreports at all...a testreport is working fine with talend as long it does not contain a subreport. the second I add the plainest subreport (just a "Test"-Text in Title, no other bands, no data connection etc.) it fails giving my this:Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/groovy/control/CompilationFailedException at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at net.sf.jasperreports.engine.JasperCompileManager.getCompiler(JasperCompileManager.java:472) at net.sf.jasperreports.engine.JasperCompileManager.loadEvaluator(JasperCompileManager.java:238) at net.sf.jasperreports.engine.JasperCompileManager.loadEvaluator(JasperCompileManager.java:260) at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluateSubreport(JRFillSubreport.java:328) at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluate(JRFillSubreport.java:266) at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:256) at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:482)...[\quote] kind regards,Harald Link to comment Share on other sites More sharing options...
jcrumley Posted July 22, 2010 Share Posted July 22, 2010 Yes you should be able to use a different data source for your subreport. At least according to this post:http://stage.jasperforge.org/plugins/espforum/view.php?group_id=102&forumid=103&topicid=6495 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