Jump to content
Changes to the Jaspersoft community edition download ×

compiling in the samples


Recommended Posts

By: k.Dammeier - rubia

compiling in the samples

2003-09-04 04:08

I have a problem with the samples. For example 'Shapes'.

I can make the pdf-File etc, also I can fill the .jasper-File, but I could not compile the jrpxml-File.

I think these are the right arguments:

-Tcompile -FShapesReport.jrpxml

 

Errors:

04.09.2003 13:10:48 org.apache.commons.digester.Digester endElement

SCHWERWIEGEND: End event threw exception

java.lang.NoSuchMethodException: No such accessible method: addElement() on object: dori.jasper.engine.xml.JRXmlLoader

at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:248)

at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)

at org.apache.commons.digester.Digester.endElement(Digester.java:1036)

at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)

at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source)

at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)

at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)

at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)

at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

at org.apache.commons.digester.Digester.parse(Digester.java:1514)

at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:373)

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:357)

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:337)

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323)

at dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:102)

at ShapesApp.main(ShapesApp.java:132)

java.lang.NoSuchMethodException: No such accessible method: addElement() on object: dori.jasper.engine.xml.JRXmlLoader

at org.apache.commons.digester.Digester.createSAXException(Digester.java:2312)

at org.apache.commons.digester.Digester.createSAXException(Digester.java:2332)

at org.apache.commons.digester.Digester.endElement(Digester.java:1039)

at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)

at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source)

at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)

at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)

at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)

at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

at org.apache.commons.digester.Digester.parse(Digester.java:1514)

at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:373)

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:357)

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:337)

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323)

at dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:102)

at ShapesApp.main(ShapesApp.java:132)

 

NESTED BY :

java.lang.NoSuchMethodException: No such accessible method: addElement() on object: dori.jasper.engine.xml.JRXmlLoader

at org.apache.commons.digester.Digester.createSAXException(Digester.java:2312)

at org.apache.commons.digester.Digester.createSAXException(Digester.java:2332)

at org.apache.commons.digester.Digester.endElement(Digester.java:1039)

at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)

at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source)

at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)

at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)

at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)

at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

at org.apache.commons.digester.Digester.parse(Digester.java:1514)

at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:373)

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:357)

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:337)

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323)

at dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:102)

at ShapesApp.main(ShapesApp.java:132)

 

NESTED BY :

dori.jasper.engine.JRException: Error at (9, 10: No such accessible method: addElement() on object: dori.jasper.engine.xml.JRXmlLoader

at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:381)

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:357)

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:337)

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323)

at dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:102)

at ShapesApp.main(ShapesApp.java:132)

Caused by: java.lang.NoSuchMethodException: No such accessible method: addElement() on object: dori.jasper.engine.xml.JRXmlLoader

at org.apache.commons.digester.Digester.createSAXException(Digester.java:2312)

at org.apache.commons.digester.Digester.createSAXException(Digester.java:2332)

at org.apache.commons.digester.Digester.endElement(Digester.java:1039)

at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)

at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source)

at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)

at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)

at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)

at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

at org.apache.commons.digester.Digester.parse(Digester.java:1514)

at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:373)

... 5 more

 

Has anybody had the same problem and has the solution?

 

thanks for help

rubia

 

 

 

 

By: skysaint wong - skysaint

RE: compiling in the samples

2003-09-04 19:21

I've got the same problem.......

 

 

 

 

By: Teodor Danciu - teodord

RE: compiling in the samples

2003-09-05 02:03

 

Hi,

 

The *.jrpxml files are not XML report design that

you need to compile.

They are the XML representation of the generated

reports. They have the same content as the

generated PDF files or the *.jrprint files and can

be viewed with the JasperViewer.

 

In all the samples there is the "viewXML" ant task

that displays the file in the JasperViewer.

 

I hope this helps.

Teodor

 

 

 

 

 

By: k.Dammeier - rubia

RE: compiling in the samples

2003-09-05 05:38

Yes, thanks!

 

 

 

 

By: Mike La Budde - mlabudde-aaa

weird report compilation error

2003-10-21 14:00

I'm attempting to compile, fill, and export a report. I'm getting the following weird error when calling JasperCompileManager.compileReport():

 

12:59:09,000 [Thread-15] DEBUG org.apache.commons.digester.Digester.sax - setDocumentLocator(org.apache.xerces.parsers.AbstractSAXParser$LocatorProxy@14d7745)

12:59:09,000 [Thread-15] DEBUG org.apache.commons.digester.Digester.sax - startDocument()

12:59:09,081 [Thread-15] DEBUG org.apache.commons.digester.Digester.sax - startElement(,,jasperReport)

12:59:09,081 [Thread-15] DEBUG org.apache.commons.digester.Digester - Pushing body text ''

12:59:09,081 [Thread-15] DEBUG org.apache.commons.digester.Digester - New match='jasperReport'

12:59:09,081 [Thread-15] DEBUG org.apache.commons.digester.Digester - Fire begin() for FactoryCreateRule[className=dori.jasper.engine.xml.JasperDesignFactory, attributeName=null]

12:59:09,081 [Thread-15] DEBUG org.apache.commons.digester.Digester - [FactoryCreateRule]{jasperReport} New factory dori.jasper.engine.xml.JasperDesignFactory

12:59:09,081 [Thread-15] ERROR org.apache.commons.digester.Digester - Begin event threw exception

java.lang.NullPointerException

at org.apache.commons.digester.FactoryCreateRule.getFactory(FactoryCreateRule.java:373)

at org.apache.commons.digester.FactoryCreateRule.begin(FactoryCreateRule.java:291)

at org.apache.commons.digester.Digester.startElement(Digester.java:1237)

at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)

at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)

at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)

at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)

at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

at org.apache.commons.digester.Digester.parse(Digester.java:1514)

at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:373)

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:357)

at dori.jasper.engine.JasperCompileManager.compileReport(JasperCompileManager.java:185)

at com.americanappraisal.report.ConnectionDSM.fillReport(Unknown Source)

at com.americanappraisal.report.ReportManager.runReport(Unknown Source)

at com.americanappraisal.report.ReportManagerSessionEJBImpl.runReport(Unknown Source)

at com.americanappraisal.report._sk_report_ReportManagerSessionEJB.invoke(_sk_report_ReportManagerSessionEJB.java:160)

12:59:09,101 [Thread-15] ERROR com.americanappraisal.report.ConnectionDSM - Exception: dori.jasper.engine.JRException : Error at (17, 30: null

12:59:09,101 [Thread-15] DEBUG com.americanappraisal.report.ConnectionDSM - about to release connection

 

Any help would be greatly appreciated!

 

Thanks,

 

Mike

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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