This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 208369 - [71cat] org.xml.sax.SAXParseException: Premature end of file.
Summary: [71cat] org.xml.sax.SAXParseException: Premature end of file.
Status: RESOLVED INCOMPLETE
Alias: None
Product: platform
Classification: Unclassified
Component: Autoupdate (show other bugs)
Version: 7.2
Hardware: All All
: P1 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
: 209444 209650 210009 212909 213071 214657 216240 (view as bug list)
Depends on:
Blocks: 195921
  Show dependency tree
 
Reported: 2012-02-14 07:37 UTC by stefan79
Modified: 2012-09-05 14:22 UTC (History)
17 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 184889


Attachments
stacktrace (711 bytes, text/plain)
2012-02-14 07:37 UTC, stefan79
Details
stacktrace (711 bytes, text/plain)
2012-05-21 10:30 UTC, sunbiz
Details
Possible patch (2.08 KB, patch)
2012-05-31 21:34 UTC, Jesse Glick
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description stefan79 2012-02-14 07:37:33 UTC
Build: NetBeans IDE Dev (Build 201202130400)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.0-b11, Java(TM) SE Runtime Environment, 1.6.0_25-b06
OS: Windows 7

User Comments:
mklaehn: added "downloaded" (self written module to ide)

stefan79: Tried to install the following Plugins:
-) Path Tool
-) RegExPlugin




Stacktrace: 
org.xml.sax.SAXParseException: Premature end of file.
   at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:0)
   at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:0)
   at org.netbeans.updater.XMLUtil.parse(XMLUtil.java:109)
   at org.netbeans.updater.UpdateTracking.readModuleFromFile(UpdateTracking.java:462)
   at org.netbeans.updater.UpdateTracking.scanDir(UpdateTracking.java:541)
   at org.netbeans.updater.UpdateTracking.deleteUnusedFiles(UpdateTracking.java:503)
Comment 1 stefan79 2012-02-14 07:37:36 UTC
Created attachment 115686 [details]
stacktrace
Comment 2 Jiri Rechtacek 2012-05-03 07:06:37 UTC
*** Bug 209650 has been marked as a duplicate of this bug. ***
Comment 3 sunbiz 2012-05-21 10:30:08 UTC
Created attachment 119679 [details]
stacktrace

Activating modules at the start... soon after installation threw this exception
Comment 4 Jiri Rechtacek 2012-05-24 08:05:56 UTC
*** Bug 212909 has been marked as a duplicate of this bug. ***
Comment 5 Quality Engineering 2012-05-25 05:44:52 UTC
Integrated into 'main-golden', will be available in build *201205250002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/2438f5c3459a
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #208369: add logs
Comment 6 Jiri Rechtacek 2012-05-25 09:39:36 UTC
Added some logs - core-main/rev/2438f5c3459a
Could someone reproduce it again once the changeset will be part of Daily Builds (upload in progress right now - http://bits.netbeans.org/dev/nightly/)? Either report it via Exception Reporter, or attach your messages.log here then. Thanks
Comment 7 Jiri Rechtacek 2012-05-30 18:13:52 UTC
Seems to caused by unexpected  XML transformer - all reports complains of net.sf.saxon.IdentityTransformer instead the expected com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl. Does anybody know why saxon transformer became as default in your IDE?
Comment 8 Jiri Rechtacek 2012-05-31 15:36:15 UTC
*** Bug 210009 has been marked as a duplicate of this bug. ***
Comment 9 Jiri Rechtacek 2012-05-31 15:53:09 UTC
Too many dups => Increased the priority. Needed to resolve somehow. How come
TransformerFactory.newInstance().newTransformer() returns unwanted instance of
saxon parser instead of JDK default xalan?
Comment 10 MackSix 2012-05-31 16:33:32 UTC
(In reply to comment #7)
> Seems to caused by unexpected  XML transformer - all reports complains of
> net.sf.saxon.IdentityTransformer instead the expected
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl. Does anybody know
> why saxon transformer became as default in your IDE?

I had it happen to me once in the dupe bug report, but I don't even know how to change the XML transformer. It just happened.
Comment 11 Jiri Rechtacek 2012-05-31 16:50:05 UTC
*** Bug 209444 has been marked as a duplicate of this bug. ***
Comment 12 Jiri Rechtacek 2012-05-31 17:00:49 UTC
*** Bug 213071 has been marked as a duplicate of this bug. ***
Comment 13 Jiri Rechtacek 2012-05-31 17:08:25 UTC
Must be fixed in 7.2, it causes collateral damage in many places in Autoupdate.
Comment 14 Jesse Glick 2012-05-31 21:30:33 UTC
Looks like a variant of bug #195921, probably caused by the Saxon in html.validation. (Which claims to define a TransformerFactory, but one which does not actually work unless you drop in an additional JAR!)
Comment 15 Jesse Glick 2012-05-31 21:34:32 UTC
Created attachment 120163 [details]
Possible patch
Comment 16 Jiri Rechtacek 2012-06-01 12:22:17 UTC
Thanks Jesse, I've tested and applied your patch in core-main/rev/16dcc70607cd
Comment 17 Quality Engineering 2012-06-05 06:03:46 UTC
Integrated into 'main-golden', will be available in build *201206050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/16dcc70607cd
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #208369: [71cat] org.xml.sax.SAXParseException: Premature end of file.;
applied jglick's patch
Comment 18 Marian Mirilovic 2012-06-24 21:34:37 UTC
*** Bug 214657 has been marked as a duplicate of this bug. ***
Comment 19 Jiri Rechtacek 2012-08-02 13:13:33 UTC
Added more logging to catch what went wrong - core-main/rev/051093d3bf75
Comment 20 Quality Engineering 2012-08-03 02:33:45 UTC
Integrated into 'main-golden', will be available in build *201208030001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/051093d3bf75
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #208369 - added logging
Comment 21 Jiri Rechtacek 2012-09-05 14:22:08 UTC
*** Bug 216240 has been marked as a duplicate of this bug. ***