By: Eric Carlson - ericcarlson
2002-03-22 01:15

I'm getting that exception with resin 2.0.5 when jasper executes this:
XMLReader xmlReader = XMLReaderFactory.createXMLReader();
xmlReader.setFeature("", true);

Resin uses its own XML parser which I suppose I could kick but I was wondering if there is a param I could use to disable validation instead?
It seems a little final hardcoding the "true" in in this way...

It would be more flexible to validate during development but turn off for production (in a closed environment).

By: Dave Cook - butsafire
RE: org.xml.sax.SAXNotSupportedException
2002-03-22 06:53
Yes, I have the same problem. I too use Resin and the parsers are conflicting. Unfortunately, I have other code written to the Resin parser as well. I have an odd thing happening. When I boot the server and load Resin, my own code works but Jasper won't. Then if I shell out and do a /etc/init.d/resin restart, my Jasper reports funtion fine. (I'm running my reports from the Web via .JSP scripts)

By: Teodor Danciu - teodord
RE: org.xml.sax.SAXNotSupportedException
2002-03-25 07:50


For the moment there is no such flag to turn
the validation off.
Maybe in the future versions.

However, you should note that the intended way
to use JasperReports is to create your XML report
design and compile it once, in the development
phase, not every time you run the report.
It's just like you would have an application that
generates java source code that you compile every
time you run it.

The report designs should be fixed and only data
should change with every execution.
Instead of generating report designs at runtime
you should create special data sources if the
default ones are not flexible enough.


By: Teodor Danciu - teodord
RE: org.xml.sax.SAXNotSupportedException
2002-11-06 13:49


This is now possible in 0.4.3 by setting the
system property to false.

Thank you,
2001 JI Open Discussion's picture
Joined: Aug 10 2006 - 3:26am
Last seen: 17 years 1 month ago

0 Answers:

No answers yet