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 43478

Summary: InvalidObjectException during Find Usages
Product: editor Reporter: Jan Chalupa <jchalupa>
Component: RefactoringAssignee: issues@java <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker Keywords: RANDOM
Priority: P2    
Version: 4.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: InvalidObjectException stack trace
NPE stack trace

Description Jan Chalupa 2004-05-18 21:23:57 UTC
[refactoring build #040518, JDK 1.5 beta-2 (b51)]

1. Started with a clean userdir
2. Opened 'openide' project
3. Set 'openide' CVS source root
4. Navigated to o.o.f.FileObject.java
5. Invoked Find Usages
6. Got InvalidObjectException: Object with 
MOFID ... no longer exists (see attachment #1 [details])
7. Another exception -- NPE form 
javaClassImpl.initChildren() -- was thrown too 
(see attachment #2 [details])

No usages were found. This worked in yesterday's 
build, although I was probably testing w/ 1.4.2 
then. Need to check.
Comment 1 Jan Chalupa 2004-05-18 21:24:45 UTC
Created attachment 14953 [details]
InvalidObjectException stack trace
Comment 2 Jan Chalupa 2004-05-18 21:25:36 UTC
Created attachment 14954 [details]
NPE stack trace
Comment 3 Jan Chalupa 2004-05-18 21:27:23 UTC
Stack traces tops (for reader's convenience):

javax.jmi.reflect.InvalidObjectException: Object with MOFID 611B43A2-
A907-11D8-B66B-A3FDC21EAA77:0000000000000245 no longer exists.
	at org.netbeans.mdr.handlers.BaseObjectHandler._getDelegate
(BaseObjectHandler.java:322)
	at 
org.netbeans.mdr.handlers.InstanceHandler.getInstanceDelegate
(InstanceHandler.java:48)
	at 
org.netbeans.mdr.handlers.InstanceHandler._immediateComposite
(InstanceHandler.java:251)
	at 
org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement._imme
diateComposite(MetadataElement.java:1222)
...

Annotation: Exception occurred in Request Processor
java.lang.NullPointerException
	at 
org.netbeans.modules.javacore.jmiimpl.javamodel.JavaClassImpl.initChi
ldren(JavaClassImpl.java:424)
	at 
org.netbeans.modules.javacore.jmiimpl.javamodel.JavaClassImpl.initChi
ldren(JavaClassImpl.java:415)
	at 
org.netbeans.modules.javacore.jmiimpl.javamodel.JavaClassImpl.getCont
ents(JavaClassImpl.java:260)
	at org.netbeans.jmi.javamodel.JavaClass$Impl.getContents
(Unknown Source)
...
Comment 4 Jan Chalupa 2004-05-18 21:33:26 UTC
Doesn't seem to occur with JDK 1.4.2_02.
Comment 5 Jan Becicka 2004-05-19 12:50:52 UTC
I cannot reproduce it even with JDK 1.5 b21.
Changing priority to P3.
Comment 6 Jan Chalupa 2004-05-19 13:18:23 UTC
Hmm, I can't reproduce it either now (JDK 1.5 b51), but it did occur
in a scenario as simple as described. Exception was thrown and Find
Usages didn't work -> P2.
Comment 7 Martin Matula 2004-05-19 23:29:09 UTC
The second exception is a duplicate of issue #43168
Comment 8 Jan Becicka 2004-05-25 08:24:11 UTC
First one is duplicate of issue 43693. The second one is duplicate of
issue 43168. Both are fixed.

*** This issue has been marked as a duplicate of 43693 ***