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 62147 - InvalidObjExc when switching from Editor to Design
Summary: InvalidObjExc when switching from Editor to Design
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Jan Pokorsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-11 10:18 UTC by Milan Kubec
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exc stack trace (4.94 KB, text/plain)
2005-08-11 10:18 UTC, Milan Kubec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kubec 2005-08-11 10:18:11 UTC
[dev-200508101800, JDK 1.5.0_04]

InvalidObjectException is thrown with each switch from Source to Design view of
simple form.

What I did:
1) Created simple form and added couple of components to it
2) Tweaked the layout and created actionPerformed event handling methods for
three buttons and couple of other event handling methods for other components too
3) Filled some dummy content to those event handling methods
4) Deleted all those methods form Events Properties panel of the form
Then I switched to Source and then back to Design and from that time each such
switch throws InvalidObjectException.

javax.jmi.reflect.InvalidObjectException: Object was deleted.
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.throwInvalidObject(MetadataElement.java:145)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.initCheck(MetadataElement.java:129)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.getElementInfo(SemiPersistentElement.java:185)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.MethodImpl.initASTElements(MethodImpl.java:103)
...
Comment 1 Milan Kubec 2005-08-11 10:18:33 UTC
Created attachment 23716 [details]
exc stack trace
Comment 2 Jan Pokorsky 2005-09-26 12:24:08 UTC
fixed in

/cvs/java/src/org/netbeans/modules/java/ui/nodes/elements/ElementNode.java
new revision: 1.19; previous revision: 1.18
Comment 3 Milan Kubec 2005-10-27 15:06:27 UTC
Verified in dev-200510261858.
Comment 4 Quality Engineering 2007-09-20 09:51:55 UTC
Reorganization of java component