Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
Bug 231383 - org.xml.sax.SAXParseException after update / module install
org.xml.sax.SAXParseException after update / module install
Status: RESOLVED WORKSFORME
Product: platform
Classification: Unclassified
Component: Autoupdate
7.4
PC Windows 7
: P3 (vote)
: 7.4
Assigned To: Jiri Rechtacek
au-issues
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-17 16:46 UTC by ent38
Modified: 2013-06-20 13:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


Attachments
NB logs (41.18 KB, text/plain)
2013-06-17 16:47 UTC, ent38
Details
updater log (8.09 KB, text/plain)
2013-06-20 13:38 UTC, ent38
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ent38 2013-06-17 16:46:56 UTC
[ JDK VERSION : 1.7.0_21 ]

With the ZIP version of NetBeans 7.4 beta:
- start and download the "JUnit" and "NetBeans API Documentation" 
modules
- restart NetBeans
- I get a SAXParseException Exception dialog at startup (but it disappears 
after a few seconds only and it is not written to NB logs. After that, I get a 
NPE dialog):

org.xml.sax.SAXParseException; systemId: jar:file:/C:/Java/74beta/
netbeans/ide/modules/org-netbeans-modules-defaults.jar!/org/
netbeans/modules/defaults/mf-layer.xml; lineNumber: 851; 
columnNumber: 23; External Entity: Failed to read external document 'mf-
layer-eclipse-keybinding.xml', because 'file' access is not allowed.
	at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX
ParseException(ErrorHandlerWrapper.java:203)
	at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError
(ErrorHandlerWrapper.java:177)
	at 
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError
(XMLErrorReporter.java:441)
	at 
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError
(XMLErrorReporter.java:368)
	at 
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity
(XMLEntityManager.java:1209)
	at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScann
erImpl.scanEntityReference
(XMLDocumentFragmentScannerImpl.java:1907)
	at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScann
erImpl$FragmentContentDriver.next
(XMLDocumentFragmentScannerImpl.java:3040)
	at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.nex
t(XMLDocumentScannerImpl.java:606)
	at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScann
erImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:509)
	at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
(XML11Configuration.java:858)
	at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
(XML11Configuration.java:787)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse
(XMLParser.java:123)
	at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse
(AbstractSAXParser.java:1137)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl
$JAXPSAXParser.parse(SAXParserImpl.java:602)
	at 
org.netbeans.core.startup.layers.ParsingLayerCacheManager.createRoot
(ParsingLayerCacheManager.java:169)
Caused: java.lang.IllegalStateException: Can't overwrite cause with 
org.xml.sax.SAXParseException; systemId: jar:file:/C:/Java/74beta/
netbeans/java/modules/org-netbeans-modules-java-editor.jar!/org/
netbeans/modules/java/editor/resources/layer.xml; lineNumber: 444; 
columnNumber: 32; External Entity: Failed to read external document 
'eclipse-global-keymap.xml', because 'file' access is not allowed.
	at java.lang.Throwable.initCause(Throwable.java:457)
	at 
org.netbeans.core.startup.layers.ParsingLayerCacheManager.createRoot
(ParsingLayerCacheManager.java:184)
Caused: java.io.IOException
	at 
org.netbeans.core.startup.layers.ParsingLayerCacheManager.createRoot
(ParsingLayerCacheManager.java:194)
	at 
org.netbeans.core.startup.layers.ParsingLayerCacheManager.store
(ParsingLayerCacheManager.java:131)
[catch] at org.netbeans.core.startup.layers.LayerCacheManager
$1Updater.run(LayerCacheManager.java:164)
	at org.openide.filesystems.EventControl.runAtomicAction
(EventControl.java:127)
	at org.openide.filesystems.FileSystem.runAtomicAction
(FileSystem.java:609)
	at org.openide.filesystems.FileUtil.runAtomicAction
(FileUtil.java:415)
	at org.netbeans.core.startup.layers.LayerCacheManager.store
(LayerCacheManager.java:184)
	at 
org.netbeans.core.startup.layers.ModuleLayeredFileSystem.setURLs
(ModuleLayeredFileSystem.java:259)
	at 
org.netbeans.core.startup.layers.ModuleLayeredFileSystem.addURLs
(ModuleLayeredFileSystem.java:283)
	at org.netbeans.core.startup.NbInstaller.loadLayers
(NbInstaller.java:638)
	at org.netbeans.core.startup.NbInstaller.loadImpl
(NbInstaller.java:356)
	at org.netbeans.core.startup.NbInstaller.access
$000(NbInstaller.java:105)
	at org.netbeans.core.startup.NbInstaller$1.run
(NbInstaller.java:346)
	at org.openide.filesystems.FileUtil$2.run(FileUtil.java:431)
	at org.openide.filesystems.EventControl.runAtomicAction
(EventControl.java:127)
	at org.openide.filesystems.FileSystem.runAtomicAction
(FileSystem.java:609)
	at org.openide.filesystems.FileUtil.runAtomicAction
(FileUtil.java:415)
	at org.openide.filesystems.FileUtil.runAtomicAction
(FileUtil.java:435)
	at org.netbeans.core.startup.NbInstaller.load
(NbInstaller.java:343)
	at org.netbeans.ModuleManager.enable
(ModuleManager.java:1188)
	at org.netbeans.ModuleManager.enable
(ModuleManager.java:1011)
	at org.netbeans.core.startup.ModuleList.installNew
(ModuleList.java:340)
	at org.netbeans.core.startup.ModuleList.trigger
(ModuleList.java:276)
	at org.netbeans.core.startup.ModuleSystem.restore
(ModuleSystem.java:301)
	at org.netbeans.core.startup.Main.getModuleSystem
(Main.java:181)
	at org.netbeans.core.startup.Main.getModuleSystem
(Main.java:150)
	at org.netbeans.core.startup.Main.start(Main.java:307)
	at org.netbeans.core.startup.TopThreadGroup.run
(TopThreadGroup.java:123)
	at java.lang.Thread.run(Thread.java:724)
Comment 1 ent38 2013-06-17 16:47:18 UTC
Created attachment 135912 [details]
NB logs
Comment 2 ent38 2013-06-17 16:49:59 UTC
Config details:

Product Version: NetBeans IDE 7.4 Beta (Build 201306132201)
Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)
User directory: C:\Java\__prefs__\7.4.0_jdk7_userdir
Cache directory: C:\Java\__prefs__\7.4.0_jdk7_cachedir
Comment 3 Jiri Rechtacek 2013-06-19 13:32:57 UTC
Please attach updater.log.* from C:\Java\__prefs__\7.4.0_jdk7_userdir\var\log. Thanks
Comment 4 ent38 2013-06-20 13:38:22 UTC
Created attachment 136086 [details]
updater log

Good news: I have installed 7.4 Beta again in the same environment, and no bug happened.
This is strange because I always work with a fresh install (a virtualized OS, fresh install, restored everytime I test a new NB version). Maybe something has been updated in NetBeans update centers?

I also checked the latest devbuild: no bug :)
Comment 5 ent38 2013-06-20 13:40:09 UTC
Will re-open if I encounter this bug again.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo