abhibhagia Posted June 28, 2013 Share Posted June 28, 2013 log4j:WARN No appenders could be found for logger (net.sf.jasperreports.engine.xml.JRXmlDigesterFactory).log4j:WARN Please initialize the log4j system properly.net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:1. The method subDataSource(String) is undefined for the type JRDataSource value = ((net.sf.jasperreports.engine.JRDataSource)parameter_REPORT_DATA_SOURCE.getValue()).subDataSource("/measInfo/measValue"); //$JR_EXPR_ID=9$ <----------->2. The method subDataSource(String) is undefined for the type JRDataSource value = ((net.sf.jasperreports.engine.JRDataSource)parameter_REPORT_DATA_SOURCE.getValue()).subDataSource("/measInfo/measValue"); //$JR_EXPR_ID=9$ <----------->3. The method subDataSource(String) is undefined for the type JRDataSource value = ((net.sf.jasperreports.engine.JRDataSource)parameter_REPORT_DATA_SOURCE.getValue()).subDataSource("/measInfo/measValue"); //$JR_EXPR_ID=9$ <----------->3 errors at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:204) at net.sf.jasperreports.engine.JasperCompileManager.compile(JasperCompileManager.java:241) at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:501) at DummyReport.main(DummyReport.java:28) PFA JRXML file Link to comment Share on other sites More sharing options...
Thomas Zimmer Posted June 30, 2013 Share Posted June 30, 2013 You have to type cast the datasource explicitely:((...JRXmlDataSource) $P{REPORT_DATA_SOURCE}).subDataSource...Cheers, Thomashttp://www.thomaszimmer.net 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