wood burning stoves 2.0*
The moose likes Other Open Source Projects and the fly likes Jasper Report error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Jasper Report error" Watch "Jasper Report error" New topic
Author

Jasper Report error

A.Arun Kumar
Greenhorn

Joined: Mar 14, 2004
Posts: 15
Hi all,

I am getting the following error when i run jasper reports..
can anybody help me..Please reply as early as possible..

Nov 18, 2004 11:29:56 AM org.apache.commons.digester.Digester warning
SEVERE: Parse Warning at line 1 column 0: URI was not reported to parser for ent
ity [document]
org.xml.sax.SAXParseException: URI was not reported to parser for entity [docume
nt]
at gnu.xml.aelfred2.SAXDriver.warn(SAXDriver.java:934)
at gnu.xml.aelfred2.SAXDriver.startExternalEntity(SAXDriver.java:631)
at gnu.xml.aelfred2.XmlParser.pushURL(XmlParser.java:3358)
at gnu.xml.aelfred2.XmlParser.doParse(XmlParser.java:159)
at gnu.xml.aelfred2.SAXDriver.parse(SAXDriver.java:320)
at gnu.xml.aelfred2.XmlReader.parse(XmlReader.java:294)
at org.apache.commons.digester.Digester.parse(Digester.java:1514)
at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:387)
at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:371)
at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:339)
at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323)
at dori.jasper.engine.JasperManager.loadXmlDesign(JasperManager.java:101
7)
at jas.main(jas.java:18)
Nov 18, 2004 11:29:56 AM org.apache.commons.digester.Digester warning
SEVERE: Parse Warning at line 3 column 124: No base URI; hope URI is absolute: h
ttp://jasperreports.sourceforge.net/dtds/jasperreport.dtd
org.xml.sax.SAXParseException: No base URI; hope URI is absolute: http://jasperr
eports.sourceforge.net/dtds/jasperreport.dtd
at gnu.xml.aelfred2.SAXDriver.warn(SAXDriver.java:934)
at gnu.xml.aelfred2.XmlParser.readExternalIds(XmlParser.java:2399)
at gnu.xml.aelfred2.XmlParser.parseDoctypedecl(XmlParser.java:804)
at gnu.xml.aelfred2.XmlParser.parseProlog(XmlParser.java:522)
at gnu.xml.aelfred2.XmlParser.parseDocument(XmlParser.java:414)
at gnu.xml.aelfred2.XmlParser.doParse(XmlParser.java:167)
at gnu.xml.aelfred2.SAXDriver.parse(SAXDriver.java:320)
at gnu.xml.aelfred2.XmlReader.parse(XmlReader.java:294)
at org.apache.commons.digester.Digester.parse(Digester.java:1514)
at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:387)
at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:371)
at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:339)
at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323)
at dori.jasper.engine.JasperManager.loadXmlDesign(JasperManager.java:101
7)
at jas.main(jas.java:18)
Nov 18, 2004 11:29:56 AM org.apache.commons.digester.Digester warning
SEVERE: Parse Warning at line 3 column 126: No base URI; hope this SYSTEM id is
absolute: http://jasperreports.sourceforge.net/dtds/jasperreport.dtd
org.xml.sax.SAXParseException: No base URI; hope this SYSTEM id is absolute: htt
p://jasperreports.sourceforge.net/dtds/jasperreport.dtd
at gnu.xml.aelfred2.SAXDriver.warn(SAXDriver.java:934)
at gnu.xml.aelfred2.SAXDriver.absolutize(SAXDriver.java:606)
at gnu.xml.aelfred2.SAXDriver.resolveEntity(SAXDriver.java:585)
at gnu.xml.aelfred2.XmlParser.pushURL(XmlParser.java:3336)
at gnu.xml.aelfred2.XmlParser.parseDoctypedecl(XmlParser.java:845)
at gnu.xml.aelfred2.XmlParser.parseProlog(XmlParser.java:522)
at gnu.xml.aelfred2.XmlParser.parseDocument(XmlParser.java:414)
at gnu.xml.aelfred2.XmlParser.doParse(XmlParser.java:167)
at gnu.xml.aelfred2.SAXDriver.parse(SAXDriver.java:320)
at gnu.xml.aelfred2.XmlReader.parse(XmlReader.java:294)
at org.apache.commons.digester.Digester.parse(Digester.java:1514)
at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:387)
at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:371)
at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:339)
at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323)
at dori.jasper.engine.JasperManager.loadXmlDesign(JasperManager.java:101
7)
at jas.main(jas.java:18)
Nov 18, 2004 11:29:57 AM org.apache.commons.digester.Digester warning
SEVERE: Parse Warning at line 3 column 126: URI was not reported to parser for e
ntity [dtd]
org.xml.sax.SAXParseException: URI was not reported to parser for entity [dtd]
at gnu.xml.aelfred2.SAXDriver.warn(SAXDriver.java:934)
at gnu.xml.aelfred2.SAXDriver.startExternalEntity(SAXDriver.java:631)
at gnu.xml.aelfred2.SAXDriver.resolveEntity(SAXDriver.java:591)
at gnu.xml.aelfred2.XmlParser.pushURL(XmlParser.java:3336)
at gnu.xml.aelfred2.XmlParser.parseDoctypedecl(XmlParser.java:845)
at gnu.xml.aelfred2.XmlParser.parseProlog(XmlParser.java:522)
at gnu.xml.aelfred2.XmlParser.parseDocument(XmlParser.java:414)
at gnu.xml.aelfred2.XmlParser.doParse(XmlParser.java:167)
at gnu.xml.aelfred2.SAXDriver.parse(SAXDriver.java:320)
at gnu.xml.aelfred2.XmlReader.parse(XmlReader.java:294)
at org.apache.commons.digester.Digester.parse(Digester.java:1514)
at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:387)
at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:371)
at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:339)
at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323)
at dori.jasper.engine.JasperManager.loadXmlDesign(JasperManager.java:101
7)
at jas.main(jas.java:18)
Nov 18, 2004 11:29:57 AM org.apache.commons.digester.Digester warning
SEVERE: Parse Warning at line 3 column 126: missing system ID, using http://jasp
erreports.sourceforge.net/dtds/jasperreport.dtd
org.xml.sax.SAXParseException: missing system ID, using http://jasperreports.sou
rceforge.net/dtds/jasperreport.dtd
at gnu.xml.aelfred2.SAXDriver.warn(SAXDriver.java:934)
at gnu.xml.aelfred2.XmlParser.pushURL(XmlParser.java:3348)
at gnu.xml.aelfred2.XmlParser.parseDoctypedecl(XmlParser.java:845)
at gnu.xml.aelfred2.XmlParser.parseProlog(XmlParser.java:522)
at gnu.xml.aelfred2.XmlParser.parseDocument(XmlParser.java:414)
at gnu.xml.aelfred2.XmlParser.doParse(XmlParser.java:167)
at gnu.xml.aelfred2.SAXDriver.parse(SAXDriver.java:320)
at gnu.xml.aelfred2.XmlReader.parse(XmlReader.java:294)
at org.apache.commons.digester.Digester.parse(Digester.java:1514)
at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:387)
at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:371)
at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:339)
at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323)
at dori.jasper.engine.JasperManager.loadXmlDesign(JasperManager.java:101
7)
at jas.main(jas.java:18)
org.xml.sax.SAXParseException: URI was not reported to parser for entity [docume
nt]
at gnu.xml.aelfred2.SAXDriver.warn(SAXDriver.java:934)
at gnu.xml.aelfred2.SAXDriver.startExternalEntity(SAXDriver.java:631)
at gnu.xml.aelfred2.XmlParser.pushURL(XmlParser.java:3358)
at gnu.xml.aelfred2.XmlParser.doParse(XmlParser.java:159)
at gnu.xml.aelfred2.SAXDriver.parse(SAXDriver.java:320)
at gnu.xml.aelfred2.XmlReader.parse(XmlReader.java:294)
at org.apache.commons.digester.Digester.parse(Digester.java:1514)
at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:387)
at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:371)
at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:339)
at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323)
at dori.jasper.engine.JasperManager.loadXmlDesign(JasperManager.java:101
7)
at jas.main(jas.java:18)

NESTED BY :
org.xml.sax.SAXParseException: URI was not reported to parser for entity [docume
nt]
at gnu.xml.aelfred2.SAXDriver.warn(SAXDriver.java:934)
at gnu.xml.aelfred2.SAXDriver.startExternalEntity(SAXDriver.java:631)
at gnu.xml.aelfred2.XmlParser.pushURL(XmlParser.java:3358)
at gnu.xml.aelfred2.XmlParser.doParse(XmlParser.java:159)
at gnu.xml.aelfred2.SAXDriver.parse(SAXDriver.java:320)
at gnu.xml.aelfred2.XmlReader.parse(XmlReader.java:294)
at org.apache.commons.digester.Digester.parse(Digester.java:1514)
at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:387)
at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:371)
at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:339)
at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323)
at dori.jasper.engine.JasperManager.loadXmlDesign(JasperManager.java:101
7)
at jas.main(jas.java:18)

NESTED BY :
dori.jasper.engine.JRException: URI was not reported to parser for entity [docum
ent]
at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:411)
at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:371)
at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:339)
at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323)
at dori.jasper.engine.JasperManager.loadXmlDesign(JasperManager.java:101
7)
at jas.main(jas.java:18)
Caused by: org.xml.sax.SAXParseException: URI was not reported to parser for ent
ity [document]
at gnu.xml.aelfred2.SAXDriver.warn(SAXDriver.java:934)
at gnu.xml.aelfred2.SAXDriver.startExternalEntity(SAXDriver.java:631)
at gnu.xml.aelfred2.XmlParser.pushURL(XmlParser.java:3358)
at gnu.xml.aelfred2.XmlParser.doParse(XmlParser.java:159)
at gnu.xml.aelfred2.SAXDriver.parse(SAXDriver.java:320)
at gnu.xml.aelfred2.XmlReader.parse(XmlReader.java:294)
at org.apache.commons.digester.Digester.parse(Digester.java:1514)
at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:387)
... 5 more

regards
arun kumar..
Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
Can you pls post code?


My blood is tested +ve for Java.
Ricardo Mano
Greenhorn

Joined: Dec 06, 2004
Posts: 2
I have the same error...
I've created a report in ireport.

The line of the error is the following

JasperReport jasperReport = JasperCompileManager.compileRepor ("c:/Documents and Settings/Rui/Desktop/c:/Documents and Settings/Rui/Desktop/teste.jrxml");

I'm using jasperreports-0.6.3 and ireport 0.4.0.

Does anybody have this error and solve it??
Ricardo Mano
Greenhorn

Joined: Dec 06, 2004
Posts: 2
Problem solved... in a different way but solved...

i've compiled the report throught ireport and then filled the report with the parameters

JasperPrint jasperPrint = JasperFillManager.fillReport("c:/Documents and Settings/Rui/Desktop/teste2.jasper", map, ds);


Ricardo Mano
Augusto Pedroza
Greenhorn

Joined: Dec 28, 2005
Posts: 1
I had the same problem and the only way I got it to work was importing all the jar's (add external jars option in Eclipse) from the 'lib' folder of the ireport-0.5.2 open source project.
Everything is working fine now.

Hope this helps!!
[ December 28, 2005: Message edited by: Augusto Pedroza ]
Chengwei Lee
Ranch Hand

Joined: Apr 02, 2004
Posts: 884
JasperReport jasperReport = JasperCompileManager.compileRepor ("c:/Documents and Settings/Rui/Desktop/c:/Documents and Settings/Rui/Desktop/teste.jrxml");


Not sure if its a typo, but your path seems to be wrong.


SCJP 1.4 * SCWCD 1.4 * SCBCD 1.3 * SCJA 1.0 * TOGAF 8
Victor Ott
Greenhorn

Joined: Jan 16, 2007
Posts: 2
Maybe someone stumbles over this again, like I did, but is too blind to read the stack trace (like me too):

The reason is �gnujaxp.jar�. Nowadays it should be safe to remove it from the CLASSPATH. This drove me crazy all afternoon� Who has the patience to read (I�m not among those) will notice the �gnu.xml.aelfred2�� in the stack trace:

Caused by: org.xml.sax.SAXParseException: URI was not reported to parser for entity [document]
at gnu.xml.aelfred2.SAXDriver.warn(SAXDriver.java:934)
[ January 16, 2007: Message edited by: Victor Ott ]
Mohamed Iqzas
Ranch Hand

Joined: Jan 02, 2012
Posts: 55

I am having this same problem. I dont know much about these reports or jFreechart stuff. but I have added the jars and using XMLResourceMgr to extract values from xml keys. Its working very fine in my machine. But when i try it in another machine in which it is required it's not working. I tried moving the gnujaxp.jar from the lib folders it was present. but still the problem persist while running the application jar from commmand line. When i run it through eclipse the xml parsing is working very fine.

First I got the error in eclipse IDE also. but when i removed the jar file from directory it is working through eclipse. But still not working when i launch the application through jar command line execution.
Please help!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jasper Report error
 
Similar Threads
Random occurrence of error
Struts 2.1.8 + Jfree Chart + tomcat 6 + jdk 1.5.0
WSDL2Java error : Axis on Linux
Error in reding xml file
Problem: Jasper Report 3.7.2 and Oracle JDeveloper 11g