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 48212 - InvalidObjectException when clicking on left margin (om breakpoint)
Summary: InvalidObjectException when clicking on left margin (om breakpoint)
Status: RESOLVED DUPLICATE of bug 48342
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-31 08:38 UTC by pzgyuanf
Modified: 2007-09-26 09:14 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 pzgyuanf 2004-08-31 08:38:21 UTC
try these:
 1) type:(note! Please set two breakpiont
according to the comments)
public class Test {
	  int x;
	  {
	    x =1;
	    System.out.println(0);
	  }
	  Test() {
	    super();
	  }
	  Test(int x) {
	    this.x = x;// breakpoint here
	    System.out.println(2);
	  }
	  public static void main(String[] args) {
	    new Test(2); // breakpoint here
	  }
     }
     
2) copy below contents from anywhere     
    class Z {
	  static int peek() { 
	    return j; 
	  }
	  static int i = peek();
	  static int j = 1;
	}
	
	public class Test {
	  public static void main(String[] args) {
	    int i = Z.i;// breakpoint here
	    System.out.println(i);
	  }
	}	

3)In src editor, mouse select the entire lines of
class Test(typed in step 1 above)
4)paste the already copy content
5)In Glyph and Line number Margin, there are two
breakpoints piled up.
6)Click it.
A javax.jmi.reflect.InvalidObjectException
exception has occurred.
However, the system should continue working
without further problems.
Click Details for the stack trace:
javax.jmi.reflect.InvalidObjectException: Object
with MOFID
874097E4-FB1D-11D8-A067-57A74E49AA77:0000000000000F89
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._immediateComposite(MetadataElement.java:1315)
	at
org.netbeans.mdr.handlers.InstanceHandler.refImmediateComposite(InstanceHandler.java:243)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.getResource(MetadataElement.java:457)
	at
org.netbeans.jmi.javamodel.Field$Impl.getResource(Unknown
Source)
	at
org.netbeans.modules.java.ui.NavigationView.selectNodeImpl(NavigationView.java:325)
	at
org.netbeans.modules.java.ui.NavigationView.access$100(NavigationView.java:63)
	at
org.netbeans.modules.java.ui.NavigationView$2.run(NavigationView.java:309)
	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)

7)repeat 1)-6) exceptions not throw again.
Comment 1 Martin Roskanin 2004-08-31 09:57:14 UTC
Reassigning to MDR for evaluation
Comment 2 psuk 2004-08-31 10:31:46 UTC
Changing the summary
Comment 3 Jan Becicka 2004-09-08 13:55:04 UTC

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