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.
Summary: | [refactoring] "AssertionError: Class not found in index: ..." from MDRParser.resolveSuperTypes | ||
---|---|---|---|
Product: | editor | Reporter: | Jesse Glick <jglick> |
Component: | Refactoring | Assignee: | issues@java <issues> |
Status: | CLOSED FIXED | ||
Severity: | blocker | CC: | jchalupa, ttran |
Priority: | P1 | Keywords: | REGRESSION |
Version: | 4.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Stack trace
Some more exceptions Yet more exceptions, making it hard to manually enter import statements Some more exceptions; might overlap -3.txt, it is getting hard to tell by now thread-dump |
Description
Jesse Glick
2004-06-09 21:45:28 UTC
Created attachment 15616 [details]
Stack trace
Seems to happen each time I use Fast Import. And now it seems to have deleted my existing import statements for some reason - except for one which was in the class when I opened it. Looks like no usable Fast Import in this build, anyway. TestLogger, BTW, is a nested static class in the same file as I am editing. There is nothing wrong with it that I can see, or that javac reports (there are other missing imports in the class), but a line private static final TestLogger LOGGER = new TestLogger(); was marked with an error highlight for a while saying that TestLogger could not be found. But when I compile the file (giving some errors for unrelated missing imports), that error highlight disappears. Now doing Fast Import gives me a different exception! Created attachment 15617 [details]
Some more exceptions
Now code completion in import statements just throws an exception too. Created attachment 15618 [details]
Yet more exceptions, making it hard to manually enter import statements
Note that I have started deleting my whole MDR cache every time I install a new dev build (usually once a day), so this is not an issue of having a stale cache. The last exception there - "Object was deleted" - is now thrown every time there is a background error parse, without trying to invoke code completion or anything, just editing everything by hand. Thinking about using Emacs again. :-( Exception is also thrown when pressing F9 to compile the file using Ant, making the IDE essentially useless. Someone, maybe RepositoryUpdater.fileChanged or else Filesystems, should be catching such exceptions and logging them and not interrupting the caller thread, which needs to complete. In fact the exception is thrown when attempting to save the file using Ctrl-S. I guess I will have to copy the contents to clipboard, close without saving, and paste them back in using Emacs. Created attachment 15619 [details]
Some more exceptions; might overlap -3.txt, it is getting hard to tell by now
just tryed create new j2se project and got java.lang.AssertionError: Class not found in index: Main at org.netbeans.modules.javacore.parser.MDRParser.resolveSuperTypes(MDRParser.java:1084) and the ide hang on scanning project classpath ... will attach thread-dump Created attachment 15743 [details]
thread-dump
See also Issue 44952 The AssertionError will no longer occur now that I have added the error recovery code. The following exceptions were probably caused by the first one causing the index inconsistency. I am not able to reproduce it. verified |