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 182556 - org.xml.sax.SAXParseException: Premature end of file.
Summary: org.xml.sax.SAXParseException: Premature end of file.
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P1 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2010-03-23 10:49 UTC by J Bachorik
Modified: 2010-03-25 05:53 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 164856


Attachments
stacktrace (1.18 KB, text/plain)
2010-03-23 10:49 UTC, J Bachorik
Details
Example of an NB platform causing this problem (5.90 MB, application/octet-stream)
2010-03-23 11:35 UTC, J Bachorik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description J Bachorik 2010-03-23 10:49:50 UTC
Build: NetBeans IDE Dev (Build 201003220200)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.3-b01, Java(TM) SE Runtime Environment, 1.6.0_17-b04
OS: Linux

User Comments:
yardus: Adding a new platform

yardus: Adding another NB6.8 based platform




Stacktrace: 
org.xml.sax.SAXParseException: Premature end of file.
   at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239)
   at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
   at org.openide.xml.XMLUtil.parse(XMLUtil.java:348)
   at org.netbeans.modules.apisupport.project.universe.ModuleList.scanCluster(ModuleList.java:926)
   at org.netbeans.modules.apisupport.project.universe.ModuleList.findOrCreateModuleListFromCluster(ModuleList.java:883)
   at org.netbeans.modules.apisupport.project.universe.ModuleList.findOrCreateModuleListFromBinaries(ModuleList.java:856)
Comment 1 J Bachorik 2010-03-23 10:49:54 UTC
Created attachment 95590 [details]
stacktrace
Comment 2 J Bachorik 2010-03-23 11:35:46 UTC
Created attachment 95598 [details]
Example of an NB platform causing this problem

The exception pops out when trying to add a platform containing some *.xml_hidden files. The attached application exhibits the problem. The same attached application works fine in NB6.8
Comment 3 J Bachorik 2010-03-23 11:36:33 UTC
Regression against NB6.8
Comment 4 Jesse Glick 2010-03-23 16:45:33 UTC
Exception is coming from Netigso-related code:

changeset:   156973:3b3ed9d0e31f
user:        Jaroslav Tulach <jtulach@netbeans.org>
date:        Mon Oct 05 15:24:20 2009 +0200
summary:     Use config/Modules/*.xml to locate appropriate cluster modules
Comment 5 Jaroslav Tulach 2010-03-24 15:04:08 UTC
http://hg.netbeans.org/core-main/rev/48a2f573f6e0
Comment 6 Quality Engineering 2010-03-25 05:53:41 UTC
Integrated into 'main-golden', will be available in build *201003250201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/48a2f573f6e0
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #182556: Don't parse files which don't have .xml extension