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 70624 - [50cat] Code completion fails with InvalidObjectException
Summary: [50cat] Code completion fails with InvalidObjectException
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords: RANDOM
Depends on:
Blocks: 73679
  Show dependency tree
 
Reported: 2005-12-20 11:08 UTC by misterm
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

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 misterm 2005-12-20 11:08:36 UTC
[ BUILD # : 20051218 ]
[ JDK VERSION : 1.4.2_xx ]

When hitting code completion after a getter method:

getProject().

the following exception is thrown:

javax.jmi.reflect.InvalidObjectException: Object with MOFID 5F28A329-7150-11DA-8628-5D8CBFCCAA77:0000000000000CBC no longer exists, class: org.netbeans.jmi.javamodel.Method$Impl
	at org.netbeans.mdr.handlers.BaseObjectHandler._getDelegate(BaseObjectHandler.java:359)
	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._immediateComposite(MetadataElement.java:1747)
	at org.netbeans.mdr.handlers.InstanceHandler.refImmediateComposite(InstanceHandler.java:243)
	at org.netbeans.modules.javacore.jmiimpl.javamodel.FeatureImpl.getDeclaringClass(FeatureImpl.java:257)
	at org.netbeans.modules.editor.java.NbJavaJMISyntaxSupport.getJavaClass(NbJavaJMISyntaxSupport.java:63)
	at org.netbeans.modules.editor.java.NbJavaJMICompletionQuery$Context.<init>(NbJavaJMICompletionQuery.java:163)
	at org.netbeans.modules.editor.java.NbJavaJMICompletionQuery.getResult(NbJavaJMICompletionQuery.java:56)
	at org.netbeans.editor.ext.java.JavaCompletionQuery.query(JavaCompletionQuery.java:139)
	at org.netbeans.editor.ext.java.JavaCompletionQuery.query(JavaCompletionQuery.java:74)
	at org.netbeans.modules.editor.java.JavaCompletionProvider$Query.query(JavaCompletionProvider.java:108)
	at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:189)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926)

Code completion does not work and there are no further exceptions in messages.log
Comment 1 Milan Kubec 2005-12-21 08:43:42 UTC
I'm not able to reproduce, please provide some steps to reproduce. Thanks.

Is the getProject() method from Ant?
Comment 2 Martin Roskanin 2005-12-21 09:32:42 UTC
already fixed. Make sure you are really using build 20051218. The stacktrace
doesn't prove this.

*** This issue has been marked as a duplicate of 62638 ***
Comment 3 misterm 2005-12-21 10:04:49 UTC
Sorry, but that other issue seems different and also should be fixed since Oct. 
I am using Q-Build for 20051218, more specifically build 200512182030.

I am not aware of steps to reproduce this issue.
Comment 4 Martin Roskanin 2005-12-21 13:02:12 UTC
Aha, I appologize, I didn't know you are using q-build. In this case I
understand the stack trace :-) But we need more info. Try to reproduce it and
find the steps, attach log.  For now I am adding incomplete and random keywords.

Java guys, we are already checking the validity of the feature and the
feature.getDeclaringClass() is performed only if th feature is valid. It seems
the problem is probably at your side.
Comment 5 Jan Becicka 2006-10-26 16:26:51 UTC
Javacore module was replaced by Retouche infrastructure. This bug is not valid
in trunk any more.
Comment 6 Quality Engineering 2007-09-20 12:11:55 UTC
Reorganization of java component