Bug?: Birt designer and org.xml.sax.SAXParseException: Premature end of file [message #755971] |
Thu, 10 November 2011 11:02 |
Mika Tapanainen Messages: 55 Registered: July 2010 |
Member |
|
|
Hello,
I got the exception:
[11/4/11 11:45:54:006 EET] 00000025 SaxParser W Exceptions occur during xml parsing
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.eclipse.datatools.enablement.oda.xml.util.SaxParser.parse(SaxParser.java:168)
at org.eclipse.datatools.enablement.oda.xml.util.SaxParser.run(SaxParser.java:119)
at java.lang.Thread.run(Thread.java:811)
Caused by: org.xml.sax.SAXParseException: Premature end of file.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
... 7 more
but my custom servlet created the PDF report successfully. When I checked the template (near 15000 rows) I found out that there was unused <xml-property name="queryText"> and <xml-property name="designerValues"> elements. When I removed <xml-property name="queryText"> element the exception disappeared.
So it seems that the BIRT designer doesn't clean the report template correctly. Do you know is this a bug?
BR,
Mika
[Updated on: Thu, 10 November 2011 12:27] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.50517 seconds