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.
Following Exception is thrown when moving a java file from one project to another: [org.netbeans.mdr.Logger] INFORMATIONAL *********** Exception occurred ************ at 10:37 AM on Dec 22, 2005 java.lang.Exception: mofId: 836E3C39-72CE-11DA-89D0-328B33E9AA77:0000000000000339, class: org.netbeans.jmi.javamodel.Resource$Impl at org.netbeans.mdr.handlers.InstanceHandler.refDelete(InstanceHandler.java:307) at org.netbeans.modules.javacore.ExclusiveMutex.parseIfNeeded(ExclusiveMutex.java:233) at org.netbeans.modules.javacore.ExclusiveMutex.enter(ExclusiveMutex.java:171) at org.netbeans.mdr.NBMDRepositoryImpl.beginTrans(NBMDRepositoryImpl.java:228) ... (whole stack trace attached) Stesp to reproduce: ------------------- 1) Open/create two j2se projects 2) Inside one of them, add a new java class (ie 'SomeClass') 3) Using mouse drag inside Explorer, move it to the second project 4) Do Refactoring in appeared dialog --> Exception thrown inside console --> Also, CC seems to be broken inside moved class 5) Try to CC the class name (SomeClass) or some of its methods. --> Does not work [5.0 200512212030 && 5.1 200512211900, JDK 1.6.0 rc b62, solaris 10/sparc]
Created attachment 28032 [details] exc.stack trace
This exception is informational only and does not necessary mean there was a problem. It can occur when an InvalidObjectException is thrown after invoking some jmi method and then correctly handled in the caller. I think this is exactly what happened in the described scenario. I am not able to reproduce the problem with CC. When I invoke CC inside the project the class was moved to it works fine. In my case, SomeClass is not offered by CC in the original project, but it is caused by the fact that there is no dependency between these two projects. Was not that also your case?
> When I invoke CC inside the project the class was moved to it works fine This is not true for me. The class name is offered when using CC in other classes, but not when creating an object of this class in the same file (ie., in the main method). -> P3, since the CC problem is present only inside of the moved file.
The problem occurs only sometimes. If it occurs "go to declaration" action does not work inside the moved class as well.
Javacore module was replaced by Retouche infrastructure. This bug is not valid in trunk any more.
Verified. --- NetBeans IDE Dev (Build 061030) 1.6.0-rc; Java HotSpot(TM) Server VM 1.6.0-rc-b103 Linux version 2.6.12-1.1390_FC4smp running on i386 en_US (nb); UTF-8
Reorganization of java component