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.
The following exception is being thrown to the command line occasionally. can reproduce by copy/pasting the package declaration of the class. for example, just place the following at the top of the default java app's main.java: package javaapplication1; package javaapplication1; [exec] Class not found in index: javaapplication1.Main. Recovering... [exec] java.lang.Exception: Stack trace [exec] at java.lang.Thread.dumpStack(Thread.java:1064) [exec] at org.netbeans.modules.javacore.parser.MDRParser.resolveSuperTy pes(MDRParser.java:1149) [exec] at org.netbeans.modules.javacore.parser.MDRParser.processAST(MDR Parser.java:327) [exec] at org.netbeans.modules.javacore.parser.MDRParser.processAST(MDR Parser.java:293) [exec] at org.netbeans.modules.javacore.parser.MDRParser.processAST(MDR Parser.java:270) [exec] at org.netbeans.modules.javacore.parser.MDRParser.enterMembers(M DRParser.java:210) [exec] at org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl. directUpdate(ResourceImpl.java:553) [exec] at org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl. checkUpToDate(ResourceImpl.java:479) [exec] at org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl. updateFromDataObject(ResourceImpl.java:385) [exec] at org.netbeans.modules.javacore.ExclusiveMutex.parseIfNeeded(Ex clusiveMutex.java:218) [exec] at org.netbeans.modules.javacore.ExclusiveMutex.enter(ExclusiveM utex.java:137) [exec] at org.netbeans.mdr.NBMDRepositoryImpl.beginTrans(NBMDRepository Impl.java:232) [exec] at org.netbeans.modules.java.JavaEditor$2.run(JavaEditor.java:22 6) [exec] at org.openide.util.Task.run(Task.java:136) [exec] at org.openide.util.RequestProcessor$Task.run(RequestProcessor.j ava:330) [exec] at org.openide.util.RequestProcessor$Processor.run(RequestProces sor.java:686)
*** Issue 48756 has been marked as a duplicate of this issue. ***
I also get the problem. It happens for me when opening java source that contain static inner classes. Eg. In the case below, OneTimeSetup is a static inner class of XMLConnectionConnectedStateTest. Annotation: Exception occurred in Request Processor java.lang.IllegalStateException: Class not found in index: com.unisys.comms.mail.uvms.connection.xml.XMLConnectionConnectedState Test.OneTimeSetup at org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.creat eElement(MetadataElement.java:1041)
Created attachment 17701 [details] log
To murrayhughes: The exception was fixed some time ago. Now there is an informational stacktrace printed to the log and the problem is automatically fixed behind the scenes.
*** Issue 50571 has been marked as a duplicate of this issue. ***
Since upgrading to 4.0beta2 I havn't had the problem again, so I'm changing the status to WORKSFORME. Hope that's OK.
Reorganization of java component