Jump to content
Changes to the Jaspersoft community edition download ×

compiler error when language="java" and datasource is xmldatasource


abhibhagia

Recommended Posts

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

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...