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 48742 - "Class not found in index" exception being thrown
Summary: "Class not found in index" exception being thrown
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker with 1 vote (vote)
Assignee: issues@java
URL:
Keywords:
: 48756 50571 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-09-09 08:51 UTC by gc
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log (76.04 KB, text/plain)
2004-09-16 22:46 UTC, murrayhughes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gc 2004-09-09 08:51:22 UTC
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)
Comment 1 Jan Becicka 2004-09-09 16:45:12 UTC
*** Issue 48756 has been marked as a duplicate of this issue. ***
Comment 2 murrayhughes 2004-09-16 22:43:32 UTC
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)
Comment 3 murrayhughes 2004-09-16 22:46:42 UTC
Created attachment 17701 [details]
log
Comment 4 Martin Matula 2004-09-19 15:06:13 UTC
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.
Comment 5 Jan Becicka 2004-10-20 09:34:40 UTC
*** Issue 50571 has been marked as a duplicate of this issue. ***
Comment 6 murrayhughes 2004-10-20 20:58:17 UTC
Since upgrading to 4.0beta2 I havn't had the problem again, so I'm 
changing the status to WORKSFORME.  Hope that's OK.
Comment 7 Quality Engineering 2007-09-20 12:04:30 UTC
Reorganization of java component