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.
NB36 RC2, W2K, JDK 142_04 The attached exception was raised when I simply expanded folders of a VCS filesystem in Filesystems tab. The ISE raised is a consequence of changes related to issue 10778.
Created attachment 14252 [details] IllegalStateException
The bug is in InstanceDataObject's node.
*** Issue 40116 has been marked as a duplicate of this issue. ***
Then we should document that you can't call changeOriginal from inside readAccess.
It should be documented. I thought it is, but that is probably only in setChildren. http://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/nodes/Node.html#setChildren(org.openide.nodes.Children)
*** Issue 40200 has been marked as a duplicate of this issue. ***
Created attachment 14281 [details] patch
Jarda or Peter, could you please look at the attached trivial patch and tell me that it is right solution? I will not pretend I understand locking in Nodes. It is org.openide.explorer.view.TreeView$TreePropertyListener.valueChanged(TreeView.java:933) who calls Children.MUTEX.postReadRequest(this); and as a result InstanceDO code is called. So I simply Children.MUTEX.postWriteRequest in which I call changeOriginal. As for the reproduction: I'm always able to reproduce it on whatever filesystem. Just expand a folder which contains some .settings files and then select the .setting file. The first time file is selected in Explorer the exception should be thrown. Second time it is OK.
Trivial and correct patch.
The patch is OK, but I don't understand why is the node changing its delegate when selected. That complicated stack trace looks fishy.
Petr, yes, it is a bit suspicious. Why it happens when .settings file is selected? Perhaps some lazy initialization? OK, thanx guys, I'm going to commit the fix. I afraid than we will receive a lot of bug reports for NB36 with this ISE. But it is too late to fix it there. This is candidate for NB 3.6.X if there will be such a release.
Fixed in: Checking in src/org/openide/loaders/InstanceDataObject.java new revision: 1.10; previous revision: 1.9
David, don't forget to set appropriate TM if you are closing issue ! Thanks in advance.
*** Issue 41706 has been marked as a duplicate of this issue. ***
*** Issue 41717 has been marked as a duplicate of this issue. ***
*** Issue 45056 has been marked as a duplicate of this issue. ***
4.1 is ready