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 49901 - Exception when editing package statement of mispackaged java class
Summary: Exception when editing package statement of mispackaged java class
Status: RESOLVED DUPLICATE of bug 49401
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-04 16:57 UTC by _ tboudreau
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 _ tboudreau 2004-10-04 16:57:56 UTC
Produced because refactoring threw an exception when I pasted 
between packages, but perfectly easy to cause by copying files 
outside the IDE:

I had a class in the package
org.netbeans.modules.optionscore

but it's package statement said
org.netbeans.spi.options

When I corrected the package statement in the editor, the 
following exception was thrown:


javax.jmi.reflect.InvalidObjectException: Object with MOFID 
AFE8726C-1497-11D9-98A5-1F683AE5AA77:
0000000000000C24 no longer exists.
	at 
org.netbeans.mdr.handlers.BaseObjectHandler._getDelegate(Bas
eObjectHandler.java:322)
	at 
org.netbeans.mdr.handlers.InstanceHandler.getInstanceDelegate
(InstanceHandler.java:48)
	at 
org.netbeans.mdr.handlers.InstanceHandler.refClass(InstanceHa
ndler.java:283)
	at 
org.netbeans.mdr.util.EventNotifier$Instance.collectListeners(Eve
ntNotifier.java:560)
	at 
org.netbeans.mdr.util.EventNotifier$Abstract.firePlannedChange(
EventNotifier.java:409)
	at 
org.netbeans.mdr.handlers.InstanceHandler.refDelete(InstanceH
andler.java:304)
	at 
org.netbeans.modules.javacore.scanning.JavaUpdater.makeIndex
(JavaUpdater.java:239)
	at 
org.netbeans.modules.javacore.scanning.JavaUpdater.computeIn
dex(JavaUpdater.java:58)
	at 
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.
directUpdate(ResourceImpl.java:537)
	at 
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.
checkUpToDate(ResourceImpl.java:480)
	at 
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.
updateFromDataObject(ResourceImpl.java:386)
	at 
org.netbeans.modules.javacore.ExclusiveMutex.parseIfNeeded(E
xclusiveMutex.java:218)
	at 
org.netbeans.modules.javacore.ExclusiveMutex.enter(ExclusiveM
utex.java:137)
	at 
org.netbeans.mdr.NBMDRepositoryImpl.beginTrans(NBMDReposi
toryImpl.java:227)
	at 
org.netbeans.modules.java.JavaEditor$2.run(JavaEditor.java:230)
	at org.openide.util.Task.run(Task.java:136)
	at 
org.openide.util.RequestProcessor$Task.run(RequestProcessor.ja
va:330)
[catch] at 
org.openide.util.RequestProcessor$Processor.run(RequestProces
sor.java:686)
Comment 1 Martin Matula 2004-10-04 17:10:21 UTC

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