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 100091

Summary: SaxParseException when connecting to file with unknown structure
Product: platform Reporter: Jaromir Uhrik <juhrik>
Component: AutoupdateAssignee: Jiri Rechtacek <jrechtacek>
Status: RESOLVED FIXED    
Severity: blocker CC: rmatous
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 89627    

Description Jaromir Uhrik 2007-04-05 12:46:21 UTC
-Go to Settings tab
-Push New button
-Fill in some existing url to URL field (e.g. http://www.seznam.cz) and push OK
-Go to New Plugins tab
-Push Refresh list button
You got following exception:

org.xml.sax.SAXParseException: Premature end of file.
	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:264)
	at
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292)
	at org.openide.xml.XMLUtil.parse(XMLUtil.java:319)
	at
org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogParser.getDocument(AutoupdateCatalogParser.java:107)
	at
org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogParser.getUpdateItems(AutoupdateCatalogParser.java:68)
...
Comment 1 Jiri Rechtacek 2007-04-10 23:01:43 UTC
The exception is logged only into log. But, the URL should be validated.