Jump to content
Changes to the Jaspersoft community edition download ×

No such accessible method: setDatasetRun() on object error


dleo9307

Recommended Posts

My jasperreport server is work in Windows10 but, it doesn`t work in Linux(CentOS7)

 

error

1 [pool-1-thread-1] ERROR digester.Digester  - End event threw exception
java.lang.NoSuchMethodException: No such accessible method: setDatasetRun() on object: net.sf.jasperreports.engine.design.JRDesignComponentElement
        at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:214)
        at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:220)
        at org.apache.commons.digester.Rule.end(Rule.java:257)
        at org.apache.commons.digester.Digester.endElement(Digester.java:1345)
        at net.sf.jasperreports.engine.xml.JRXmlDigester.endElement(JRXmlDigester.java:203)
        at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:610)
        at java.xml/com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.endElement(XMLSchemaValidator.java:947)
        at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1716)
        at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2881)
        at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:605)
        at java.xml/com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)
        at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:534)
        at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:888)
        at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:824)
        at java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
        at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1216)
        at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:635)
        at org.apache.commons.digester.Digester.parse(Digester.java:1892)
        at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:298)
        at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:285)
        at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:274)
        at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:219)
        at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:194)
        at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:185)
        at net.sf.jasperreports.engine.JasperCompileManager.compile(JasperCompileManager.java:288)
        at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:575)
        at kr.co.ctilab.Report.report.ReadJrxml.readJrxml(Unknown Source)
        at kr.co.ctilab.Report.report.ReadJrxml.<init>(Unknown Source)
        at kr.co.ctilab.Report.rest.RestApi.Request_Run(Unknown Source)
        at kr.co.ctilab.Report.rest.RestApi.handle(Unknown Source)
        at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:77)
        at jdk.httpserver/sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:82)
        at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:80)
        at jdk.httpserver/sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:692)
        at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:77)
        at jdk.httpserver/sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:664)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:834)
net.sf.jasperreports.engine.JRException: org.xml.sax.SAXParseException; lineNumber: 284; columnNumber: 19; Error at line 284 char 19: No such accessible method: setDatasetRun() on object: net.sf.jasperreports.engine.design.JRDesignComponentElement
        at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:302)
        at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:285)
        at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:274)
        at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:219)
        at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:194)
        at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:185)
        at net.sf.jasperreports.engine.JasperCompileManager.compile(JasperCompileManager.java:288)
        at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:575)
        at kr.co.ctilab.Report.report.ReadJrxml.readJrxml(Unknown Source)
        at kr.co.ctilab.Report.report.ReadJrxml.<init>(Unknown Source)
        at kr.co.ctilab.Report.rest.RestApi.Request_Run(Unknown Source)
        at kr.co.ctilab.Report.rest.RestApi.handle(Unknown Source)
        at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:77)
        at jdk.httpserver/sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:82)
        at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:80)
        at jdk.httpserver/sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:692)
        at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:77)
        at jdk.httpserver/sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:664)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: org.xml.sax.SAXParseException; lineNumber: 284; columnNumber: 19; Error at line 284 char 19: No such accessible method: setDatasetRun() on object: net.sf.jasperreports.engine.design.JRDesignComponentElement
        at org.apache.commons.digester.Digester.createSAXException(Digester.java:3363)
        at org.apache.commons.digester.Digester.createSAXException(Digester.java:3389)
        at org.apache.commons.digester.Digester.endElement(Digester.java:1348)
        at net.sf.jasperreports.engine.xml.JRXmlDigester.endElement(JRXmlDigester.java:203)
        at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:610)
        at java.xml/com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.endElement(XMLSchemaValidator.java:947)
        at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1716)
        at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2881)
        at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:605)
        at java.xml/com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)
        at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:534)
        at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:888)
        at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:824)
        at java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
        at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1216)
        at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:635)
        at org.apache.commons.digester.Digester.parse(Digester.java:1892)
        at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:298)
        ... 20 more
Caused by: java.lang.NoSuchMethodException: No such accessible method: setDatasetRun() on object: net.sf.jasperreports.engine.design.JRDesignComponentElement
        at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:214)
        at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:220)
        at org.apache.commons.digester.Rule.end(Rule.java:257)
        at org.apache.commons.digester.Digester.endElement(Digester.java:1345)
        ... 35 more

what should i do?

 <pieDataset>
                                        <dataset>
                                                <datasetRun subDataset="pie_01" uuid="5be1cc80-ced8-4ba1-9e19-9b5f92b73e4c">
                                                        <dataSourceExpression><![CDATA[((net.sf.jasperreports.engine.data.JsonDataSource)$P{REPORT_DATA_SOURCE}
).subDataSource("pie_01_data")]]></dataSourceExpression>
                                                </datasetRun>
                                        </dataset>
                                        <keyExpression><![CDATA[$F{name}]]></keyExpression>
                                        <valueExpression><![CDATA[$F{value}]]></valueExpression>
                                </pieDataset>

 

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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...