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 202826 - ModuleLayeredFileSystem is broken
Summary: ModuleLayeredFileSystem is broken
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.1
Hardware: All All
: P1 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2011-09-29 14:05 UTC by Vladimir Voskresensky
Modified: 2011-09-30 14:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2011-09-29 14:05:25 UTC
after recent changes (most probably in ModuleLayeredFileSystem)
we have a lot of broken tests (will send link privately)
I.e. org.netbeans.modules.cnd.folding.APTFoldingTest
is failing with java.lang.StackOverflowError
Caused by: java.lang.StackOverflowError
	at org.openide.filesystems.URLMapper$DefaultURLMapper.findFileObjectsInRepository(URLMapper.java:333)
	at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
	at org.openide.filesystems.URLMapper$DefaultURLMapper.getFileObjects(URLMapper.java:313)
	at org.netbeans.modules.openide.filesystems.DefaultURLMapperProxy.getFileObjects(DefaultURLMapperProxy.java:78)
	at org.openide.filesystems.URLMapper.findFileObject(URLMapper.java:216)
	at org.netbeans.core.startup.layers.NbinstURLMapper.decodeURL(NbinstURLMapper.java:113)
	at org.netbeans.core.startup.layers.NbinstURLStreamHandler$NbinstURLConnection.connect(NbinstURLStreamHandler.java:88)
	at org.netbeans.core.startup.layers.NbinstURLStreamHandler$NbinstURLConnection.getInputStream(NbinstURLStreamHandler.java:112)
	at org.openide.filesystems.XMLFileSystem$FileObjRef.timeFromDateHeaderField(XMLFileSystem.java:1152)
	at org.openide.filesystems.XMLFileSystem$FileObjRef.lastModified(XMLFileSystem.java:1132)
	at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228)
	at org.openide.filesystems.XMLFileSystem.lastModified(XMLFileSystem.java:453)
	at org.openide.filesystems.XMLFileSystem.access$200(XMLFileSystem.java:175)
	at org.openide.filesystems.XMLFileSystem$Impl.lastModified(XMLFileSystem.java:768)
	at org.openide.filesystems.AbstractFileObject.initLastModified(AbstractFileObject.java:98)
	at org.openide.filesystems.AbstractFileObject.lastModified(AbstractFileObject.java:179)
	at org.openide.filesystems.XMLFileSystem.refreshChildren(XMLFileSystem.java:564)
	at org.openide.filesystems.XMLFileSystem.refreshChildren(XMLFileSystem.java:567)
	at org.openide.filesystems.XMLFileSystem.refreshChildren(XMLFileSystem.java:567)
	at java.io.File.exists(File.java:733)
	at org.openide.filesystems.XMLFileSystem.refreshChildren(XMLFileSystem.java:567)
	at org.openide.filesystems.XMLFileSystem.refreshChildrenInAtomicAction(XMLFileSystem.java:527)
	at org.openide.filesystems.XMLFileSystem.setXmlUrls(XMLFileSystem.java:367)
	at org.openide.filesystems.XMLFileSystem.setXmlUrls(XMLFileSystem.java:308)
	at org.netbeans.core.startup.layers.ModuleLayeredFileSystem.appendLayers(ModuleLayeredFileSystem.java:177)
	at org.netbeans.core.startup.layers.ModuleLayeredFileSystem.<init>(ModuleLayeredFileSystem.java:112)
	at org.netbeans.core.startup.layers.ModuleLayeredFileSystem.<init>(ModuleLayeredFileSystem.java:108)
	at org.netbeans.core.startup.layers.ModuleLayeredFileSystem.<init>(ModuleLayeredFileSystem.java:104)
	at org.netbeans.core.startup.layers.SystemFileSystem.create(SystemFileSystem.java:236)
	at org.netbeans.core.startup.layers.SessionManager.create(SessionManager.java:99)
	at org.netbeans.core.startup.NbRepository.createDefaultFileSystem(NbRepository.java:144)
	at org.netbeans.core.startup.NbRepository.<init>(NbRepository.java:74)
	at sun.misc.URLClassPath$FileLoader.getResource(URLClassPath.java:995)
	at sun.reflect.GeneratedConstructorAccessor3.newInstance(Unknown Source)
	at sun.misc.URLClassPath$FileLoader.findResource(URLClassPath.java:962)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at sun.misc.URLClassPath$1.next(URLClassPath.java:195)
	at sun.misc.URLClassPath$1.hasMoreElements(URLClassPath.java:205)
	at java.net.URLClassLoader$3$1.run(URLClassLoader.java:393)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader$3.next(URLClassLoader.java:390)
	at java.net.URLClassLoader$3.hasMoreElements(URLClassLoader.java:415)
	at sun.misc.CompoundEnumeration.next(CompoundEnumeration.java:27)
	at sun.misc.CompoundEnumeration.hasMoreElements(CompoundEnumeration.java:36)
	at org.openide.util.NbCollections$4$1.hasNext(NbCollections.java:561)
	at org.netbeans.core.startup.layers.ModuleLayeredFileSystem.appendLayers(ModuleLayeredFileSystem.java:155)
	at org.netbeans.core.startup.layers.ModuleLayeredFileSystem.<init>(ModuleLayeredFileSystem.java:112)
	at org.netbeans.core.startup.layers.ModuleLayeredFileSystem.<init>(ModuleLayeredFileSystem.java:108)
	at org.netbeans.core.startup.layers.ModuleLayeredFileSystem.<init>(ModuleLayeredFileSystem.java:104)
	at org.netbeans.core.startup.layers.SystemFileSystem.create(SystemFileSystem.java:236)
	at org.netbeans.core.startup.layers.SessionManager.create(SessionManager.java:99)
	at org.netbeans.core.startup.NbRepository.createDefaultFileSystem(NbRepository.java:144)
	at org.netbeans.core.startup.NbRepository.<init>(NbRepository.java:74)
Comment 1 Vladimir Voskresensky 2011-09-29 14:50:11 UTC
Problems occurred after one of the following commits:
 Changeset 203166:a85624a5b652  by ffjre@netbeans.org:
Merge of http://hg.netbeans.org/ergonomics/
Changeset 203165:904fda11d04d by Jaroslav Tulach :
Manual merge with main-silver
Changeset 203164:97d9aedcd968 by ffjre@netbeans.org:
Automated merge with main-silver
Changeset 203163:e8647c17eecc by Jaroslav Tulach :
#202242: Better way to find out if JEditorPane is in activated TopComponent
The file was modified	openide.text/src/org/openide/text/CloneableEditor.java (diff)
The file was modified	openide.text/test/unit/src/org/openide/text/CloneableEditorCreationFinishedTest.java (diff)
Changeset 203162:d9bd98756bd9 by Jaroslav Tulach :
Splitting the tests to isolate them from mutual influence
The file was added	uihandler/test/unit/src/org/netbeans/modules/uihandler/InstallerLittleTest.java
The file was modified	uihandler/test/unit/src/org/netbeans/modules/uihandler/InstallerInitTest.java (diff)
Changeset 203161:605903e2a265 by ffjre@netbeans.org:
Automated merge with main-silver
Changeset 203160:d1ac0b98f7d4 by Jaroslav Tulach :
#202316: Hiding attributes with backslash only for end user of the API. When MultiFSs are nested, continue to return their values. Also using ... instead of [].
The file was modified	openide.filesystems/src/org/openide/filesystems/MultiFileObject.java (diff)
The file was modified	openide.filesystems/src/org/openide/filesystems/MultiFileSystem.java (diff)
The file was modified	openide.filesystems/test/unit/src/org/openide/filesystems/MultiFileSystemGetAttrTest.java (diff)
Changeset 203159:0bab41d62d66 by ffjre@netbeans.org:
Automated merge with main-silver
Changeset 203158:f8e712a010b2 by ffjre@netbeans.org:
Automated merge with main-silver
Changeset 203157:b777e155c57f by ffjre@netbeans.org:
Automated merge with main-silver
Changeset 203156:55ebecc93a2a by Jaroslav Tulach :
Adding Standa's check for null: #202656
The file was modified	core.multiview/src/org/netbeans/core/spi/multiview/text/MultiViewCloneableEditor.java (diff)
Changeset 203155:970bfac59d9f by Jaroslav Tulach :
Vladimir reverted bb3c22be8a00 without a good reason. Vladimir's change breaks the MultiViewEditorCreationFinishedTest which has been written per Vladimir's request to ensure that behavior of multiview editor is the same as classical editor provided by openide.text.
The file was modified	core.multiview/src/org/netbeans/core/spi/multiview/text/MultiViewCloneableEditor.java (diff)
Changeset 203154:494662fe722f by ffjre@netbeans.org:
Automated merge with main-silver
Changeset 203153:b23c2d93506a by Jaroslav Tulach :
Merging airplane work
Changeset 203152:087cff8edc52 by Jaroslav Tulach :
Only create XMLFS when there are some URLs to add to it
The file was modified	core.startup/src/org/netbeans/core/startup/layers/ModuleLayeredFileSystem.java (diff)
Changeset 203151:d13f5995c81c by Jaroslav Tulach :
Register factory sooner than in constructor. Prevents StackOverFlowErrors.
The file was modified	core.startup/src/org/netbeans/core/startup/NbRepository.java (diff)
Changeset 203150:d3b38e6f7b57 by Jaroslav Tulach :
Cannot use getSystemClassLoader(). NbModuleSuite masks system classpath.
The file was modified	core.startup/src/org/netbeans/core/startup/layers/ModuleLayeredFileSystem.java (diff)
Changeset 203149:0bc3e0c6704b by ffjre@netbeans.org:
Automated merge with main-silver
Changeset 203148:77387ec76d0f by ffjre@netbeans.org:
Automated merge with main-silver
Changeset 203147:f610a2bdd8ce by ffjre@netbeans.org:
Automated merge with main-silver
Changeset 203146:989003ad809c by ffjre@netbeans.org:
Automated merge with main-silver
Changeset 203145:03e8e310aa10 by ffjre@netbeans.org:
Automated merge with main-silver
Changeset 203144:b50ffe721bd0 by ffjre@netbeans.org:
Automated merge with main-silver
Changeset 203143:da31fdb492cf by ffjre@netbeans.org:
Automated merge with main-silver
Changeset 203142:10d53f8edea2 by ffjre@netbeans.org:
Automated merge with main-silver
Changeset 203141:9ebbd7c6f6fb by ffjre@netbeans.org:
Automated merge with main-silver
Changeset 203140:ac274620d2e8 by ffjre@netbeans.org:
Automated merge with main-silver
Changeset 203139:1897ce2407f6 by ffjre@netbeans.org:
Automated merge with main-silver
Changeset 203138:7723233dd167 by Jaroslav Tulach :
#200848: Read classpath layers only from classpath classloader
The file was modified	core.startup/src/org/netbeans/core/startup/layers/ModuleLayeredFileSystem.java (diff)
Changeset 203137:133dd50e8c25 by Jaroslav Tulach :
Per Vladimir's request using the CloneableEditorCreationFinishedTest to test the multiview editor impl for #202242. Works now, Fails on release71_beta_base.
The file was added	core.multiview/test/unit/src/org/netbeans/core/spi/multiview/text/MultiViewEditorCreationFinishedTest.java
The file was modified	core.multiview/nbproject/project.xml (diff)
The file was modified	openide.filesystems/src/org/openide/filesystems/MultiFileObject.java (diff)
The file was modified	openide.text/src/org/openide/text/CloneableEditorSupport.java (diff)
The file was modified	openide.text/test/unit/src/org/openide/text/CloneableEditorCreationFinishedTest.java (diff)
Changeset 203136:5a1777683ea0 by Jaroslav Tulach :
Merge of backout of 30630a09b8bd due to regressions like #201544
Changeset 203135:9cd8ec035a8a by Jaroslav Tulach :
Causes bug #201544: Backed out changeset 30630a09b8bd
The file was modified	core.startup/src/org/netbeans/core/startup/layers/ModuleLayeredFileSystem.java (diff)
The file was modified	core.startup/test/unit/src/org/netbeans/core/startup/NbRepositoryTest.java (diff)
Changeset 203134:42677c75f0ca by Anton Chechel :
changing default platform name according to Gail's request
The file was modified	javafx2.platform/src/org/netbeans/modules/javafx2/platform/Utils.java (diff)
Comment 2 Jaroslav Tulach 2011-09-29 22:35:24 UTC
ergonomics#b4384d690f7c
Comment 3 Vladimir Voskresensky 2011-09-30 06:24:56 UTC
It fixed all 96 broken tests! Thanks
Comment 4 Quality Engineering 2011-09-30 14:38:03 UTC
Integrated into 'main-golden', will be available in build *201109300601* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/b4384d690f7c
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #202826: Cleanup code caused StackOverFlowError in APTFoldingTest