Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Bug?: Birt designer and org.xml.sax.SAXParseException: Premature end of file
Bug?: Birt designer and org.xml.sax.SAXParseException: Premature end of file [message #755971] Thu, 10 November 2011 11:02 Go to next message
Missing name Missing name is currently offline Missing name Missing name
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

Re: Bug?: Birt designer and org.xml.sax.SAXParseException: Premature end of file [message #755992 is a reply to message #755971] Thu, 10 November 2011 12:31 Go to previous messageGo to next message
Missing name Missing name is currently offline Missing name Missing name
Messages: 55
Registered: July 2010
Member
I found out that removing those unused two elements resulted an exception:

...ReportEngine 2011-11-10 14:19:23,683 ERROR [WebContainer :
 2] - [null, null, null] Failed to prepare the following query for the data set
type (org.eclipse.datatools.enablement.oda.xml.dataSet).


but PDF created still succesfully.

Is there any clean command etc. to clean the report template in the designer? Or how to fix this kind of bugs?

BR,

Mika
Re: Bug?: Birt designer and org.xml.sax.SAXParseException: Premature end of file [message #756004 is a reply to message #755992] Thu, 10 November 2011 13:03 Go to previous message
Missing name Missing name is currently offline Missing name Missing name
Messages: 55
Registered: July 2010
Member
It seems that there is unused DataSet and I should remove it with the designer and not straight from the XML. But still I think it is not ok to have an exception as described in my first post..
Previous Topic:wget report
Next Topic:BIRT 3.7 in a GWT Application
Goto Forum:
  


Current Time: Fri Oct 24 10:25:15 GMT 2014

Powered by FUDForum. Page generated in 0.08970 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software