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.
[200408111800 - a; j2sdk1.5.0-beta3-b59] 1.Create project "a" (there will be "a" package with "Main.java" in this project) 2.Refactor->Rename package "a"->"b" 3.Refactor->Rename class "Main"->"x" This tree is contained in the project Source Packages: --b --x --Main --Fields ... (Sometimes node x has x child correctly - then repeat steps 1-2 again to reproduce issue.) Clicking on Fields node fires following exception javax.jmi.reflect.InvalidObjectException: Object with MOFID C39197A6-EC3F-11D8-AB5E-996BEB61AA77:0000000000000B59 no longer exists. at org.netbeans.mdr.handlers.BaseObjectHandler._getDelegate(BaseObjectHandler.java:322) at org.netbeans.mdr.handlers.AttrImmutCollWrapper.getInnerCollection(AttrImmutCollWrapper.java:61) at org.netbeans.mdr.handlers.AttrListWrapper.getInnerList(AttrListWrapper.java:35) at org.netbeans.mdr.handlers.AttrListWrapper.listIterator(AttrListWrapper.java:62) at org.netbeans.modules.javacore.jmiimpl.javamodel.LightAttrList.listIterator(LightAttrList.java:196) at org.netbeans.modules.javacore.jmiimpl.javamodel.LightAttrList.listIterator(LightAttrList.java:213) at org.netbeans.modules.javacore.jmiimpl.javamodel.LightAttrList.iterator(LightAttrList.java:209) at org.netbeans.modules.javacore.jmiimpl.javamodel.FeaturesList.size(FeaturesList.java:56) at org.netbeans.modules.java.ui.nodes.elements.ClassChildren.collectKeys(ClassChildren.java:233) at org.netbeans.modules.java.ui.nodes.elements.ChildrenProvider.run(ChildrenProvider.java:82) at org.openide.util.Task.run(Task.java:136) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:686)
Duplicate of issue 46208?
Probably not. IOE is thrown form java.ui.nodes.
Honzo, can you look at it please? It looks like ui nodes holds element, that is no more valid: ClassChildren.collectKeys() : . List features = element.getFeatures(); List members = new ArrayList(features.size()); . } But element.isValid() returns false...-> InvalidObjectException is thrown.
fixed in /cvs/java/src/org/netbeans/modules/java/ui/nodes/elements/ChildrenProvider.java new revision: 1.5; previous revision: 1.4 /cvs/java/src/org/netbeans/modules/java/ui/nodes/elements/ClassChildren.java new revision: 1.9; previous revision: 1.8 /cvs/java/src/org/netbeans/modules/java/ui/nodes/elements/SourceChildren.java new revision: 1.7; previous revision: 1.6
I'm still able to reproduce in #200409131800; jdk1.5.0-rc-b63.
The fix is probably only in trunk - not in beta2...?
The issue is reproducible only in trunk build, I am not able to reproduce it in Beta2.
Yes, it is fixed in the main trunk. No reason to guess, next see cvs revisions or integration date.
!First ignore my last comment's part about Beta2! I am able to reproduce following problems on trunk build #200409131800; jdk1.5.0-rc-b63: 1.Create project "a" (there will be "a" package with "Main.java" in this project) 2.Refactor->Rename package "a"->"b" 3.Refactor->Rename class "Main"->"x" 4.Refactor->Rename package "b"->"c" 5.Refactor->Rename class "x"->"y" This tree is contained in the project Source Packages: --c --y --x --Fields Invoke popup menu on Fields node (and then move the mouse) fires following exception: javax.jmi.reflect.InvalidObjectException: Object with MOFID 704FCD46-0643-11D9-B40A-7954EFEAAA77:0000000000000622 no longer exists. at org.netbeans.mdr.handlers.BaseObjectHandler._getDelegate(BaseObjectHandler.java:322) at org.netbeans.mdr.handlers.InstanceHandler.getInstanceDelegate(InstanceHandler.java:48) at .... See attached ide.log for more.
Created attachment 17613 [details] Ide.log attached...
Then I have to close this as fixed again. According to the stack trace you have provided it is a separate issue related to the refactoring module and as such it should be treated. So please file a new issue for the refactoring module.
Exception Jara attached is already fixed, but the problem remains: See attachment: there is class "y" in the Editor, but Navigation View shows, that there is class "Main" opened in the Editor and Projects View shows, that there is class "x" in file "y.java". But MDR database is up-to-date, because code completion correctly shows, that there is only one class "y" in the packace "c". Simply - Navigation View nodes and Projects View nodes holds objects, which are not valid.
Created attachment 17618 [details] Screenshot
I get it. SourceChildren has to keep track of the resource identity to prevent IOE. /cvs/java/src/org/netbeans/modules/java/ui/nodes/elements/SourceChildren.java new revision: 1.9; previous revision: 1.8
merged to release40_beta2 /cvs/java/src/org/netbeans/modules/java/ui/nodes/elements/ChildrenProvider.java new revision: 1.4.4.1; previous revision: 1.4 /cvs/java/src/org/netbeans/modules/java/ui/nodes/elements/ClassChildren.java new revision: 1.8.4.1; previous revision: 1.8 /cvs/java/src/org/netbeans/modules/java/ui/nodes/elements/SourceChildren.java new revision: 1.6.4.1; previous revision: 1.6
Verified in release40_beta2 build #200409160517; jdk1.5.0-rc-b63.
*** Issue 49032 has been marked as a duplicate of this issue. ***