Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Developing Analytics Applications
BIRT throwing XMLParserException on well-formed XML
Migrateduser
The BIRT engine, when served through our application server is throwing XMLParserExceptions on perfectly fine XML code. The exceptions all seem to happen around the same area, regardless of the actual line of code (the first report errored on line 1316, another on 1315, the next 1320, etc.). This doesn't happen with all the reports, just 4-5 right now, but this prevent them from being viewed at all, and the line it is failing to parse is 1) usually auto-generated XML and 2) passes in a XML validator.<br />
<br />
Here is an example of the error:<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
ERROR 2009-07-27 12:23:31 Line Number:1320 Error Code:Error.XMLParserException.SAX_ERROR Exception:org.xml.sax.SaxParseException: Character conversion error: "Malformed UTF-8 char -- is an XML encoding declaration missing?" (line number may be too low). Message:Sax detected an error with the basic XML syntax of the file.
</pre>
<br />
And here is line 1320 and a few lines around it:<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
Line:1317 <column id="364">
Line:1318 <property name="width">70%</property>
Line:1319 </column>
Line:1320 <column id="553">
Line:1321 <property name="width">30%</property>.
Line:1322 </column>
</pre>
<br />
So the line of XML is perfectly legal, but it throws a SAX exception. I've encountered several of these instances, all about the same line number, different lines of XML, but same basic issue, valid XML throwing a parse exception. Has anyone seen this before and know a solution. The app server that BIRT is being run on is Tomcat with JDK 1.5_09.<br />
<br />
Thank you for your help.
Find more posts tagged with
Comments
There are no comments yet