File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes iReport 0.5.1 cannot compile any report Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "iReport 0.5.1 cannot compile any report" Watch "iReport 0.5.1 cannot compile any report" New topic
Author

iReport 0.5.1 cannot compile any report

Basel Al-Mustafa
Greenhorn

Joined: Nov 27, 2004
Posts: 27
Hi,

iReport 0.5.1 prints the stack trace below whenever I try to compile a report. What I did was creating an empty report and then using the "Run without connection" button to test it.

Compiling to file... .\untitled_report_1.jasper -> D:\iReport-0.5.1\untitled_report_1.java Errors compiling .\untitled_report_1.jasper! it.businesslogic.ireport.ReportClassLoader@a0e990 12:47:12,940 ERROR [Thread-5] org.apache.commons.digester.Digester - Parse Fatal Error at line 19 column 29: Attribute "" bound to namespace "null" was already specified for element "jasperReport". org.xml.sax.SAXParseException: Attribute "" bound to namespace "null" was already specified for element "jasperReport". at com.documentum.xerces_2_3_0.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at com.documentum.xerces_2_3_0.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at com.documentum.xerces_2_3_0.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at com.documentum.xerces_2_3_0.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at com.documentum.xerces_2_3_0.xerces.impl.dtd.XMLNSDTDValidator.startNamespaceScope(Unknown Source) at com.documentum.xerces_2_3_0.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source) at com.documentum.xerces_2_3_0.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source) at com.documentum.xerces_2_3_0.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at com.documentum.xerces_2_3_0.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source) at com.documentum.xerces_2_3_0.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at com.documentum.xerces_2_3_0.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.documentum.xerces_2_3_0.xerces.parsers.DTDConfiguration.parse(Unknown Source) at com.documentum.xerces_2_3_0.xerces.parsers.DTDConfiguration.parse(Unknown Source) at com.documentum.xerces_2_3_0.xerces.parsers.XMLParser.parse(Unknown Source) at com.documentum.xerces_2_3_0.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1647) at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:236) at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:223) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:211) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:165) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:149) at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:107) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:461) at java.lang.Thread.run(Thread.java:595) org.xml.sax.SAXParseException: Attribute "" bound to namespace "null" was already specified for element "jasperReport". at com.documentum.xerces_2_3_0.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1647) at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:236) at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:223) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:211) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:165) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:149) at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:107) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:461) at java.lang.Thread.run(Thread.java:595) NESTED BY : net.sf.jasperreports.engine.JRException: Attribute "" bound to namespace "null" was already specified for element "jasperReport". at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:240) at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:223) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:211) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:165) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:149) at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:107) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:461) at java.lang.Thread.run(Thread.java:595) Caused by: org.xml.sax.SAXParseException: Attribute "" bound to namespace "null" was already specified for element "jasperReport". at com.documentum.xerces_2_3_0.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1647) at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:236) ... 7 more Compilation running time : 1344
[ October 22, 2005: Message edited by: Basel Al-Mustafa ]
Ramses L.
Greenhorn

Joined: Dec 09, 2005
Posts: 3
I experienced similar problems while using jasper reports 1.1.0 and having xerces 2.2.1 in my classpath. Removing it and upgrading xerces to 2.7.1 both solved the issue.

I hope this helped,

Ramses
[ December 09, 2005: Message edited by: Ramses L. ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: iReport 0.5.1 cannot compile any report
 
Similar Threads
jasper report error
Jasper Reports Error
doubts in JasperReports and iReport
cannot pass to value to a jasper parameter
doubts in iReport and JasperReports