• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Jasper Report error

 
Greenhorn
Posts: 15
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you pls post code?
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Ranch Hand
Posts: 884
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
Greenhorn
Posts: 2
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Ranch Hand
Posts: 77
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!!
 
Please do not shoot the fish in this barrel. But you can shoot at this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!