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.
[ BUILD # : beta 1 ] [ JDK VERSION : J2SE 1.5.0 ] The stack trace contained in the attached file occured after opening a project and clicking in an open java file. This error only occurs in the specific Java file I have included. Code folds don't show and the file cannot be worked with anymore.
Created attachment 17015 [details] stack trace
Created attachment 17016 [details] Java file causing the error
Closing the IDE and reloading seems to "resolve" the problem.
java.util.NoSuchElementException at java.util.AbstractList$Itr.next(AbstractList.java:427) at org.netbeans.modules.javacore.jmiimpl.javamodel.LightAttrList$LightAttrListIterator.next(LightAttrList.java:432)
*** Issue 47681 has been marked as a duplicate of this issue. ***
*** Issue 47894 has been marked as a duplicate of this issue. ***
*** Issue 47937 has been marked as a duplicate of this issue. ***
*** Issue 47980 has been marked as a duplicate of this issue. ***
Same here: >System Info: Product Version = NetBeans IDE Dev (Build 200408231800) Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor = 1.5.0-beta2; Java HotSpot(TM) Client VM 1.5.0-beta2-b51; Sun Microsystems Inc. Annotation: Exception occurred in Request Processor java.util.NoSuchElementException at java.util.AbstractList$Itr.next(AbstractList.java:427) at org.netbeans.modules.javacore.jmiimpl.javamodel.LightAttrList$LightAt trListIterator.next(LightAttrList.java:432) at org.netbeans.modules.javacore.jmiimpl.javamodel.FeaturesList.size (FeaturesList.java:57) at org.netbeans.modules.javacore.jmiimpl.javamodel.FeaturesList.toArray (FeaturesList.java:98) at java.util.ArrayList.addAll(ArrayList.java:474) at org.netbeans.modules.java.bridge.ObjectsCollection$FeaturesListener.c onnect(ObjectsCollection.java:603) at org.netbeans.modules.java.bridge.ClassElementImpl.connectListener (ClassElementImpl.java:100) at org.netbeans.modules.java.bridge.ElementImpl.attachedToElement (ElementImpl.java:439) at org.openide.src.Element.<init>(Element.java:56) at org.openide.src.MemberElement.<init> (MemberElement.java:36) at org.openide.src.ClassElement.<init>(ClassElement.java:93) at org.openide.src.ClassElement.<init>(ClassElement.java:84) at org.netbeans.modules.java.bridge.DefaultWrapper.wrapClass (DefaultWrapper.java:34) at org.netbeans.modules.java.bridge.DefaultLangModel.createTopClass (DefaultLangModel.java:159) at org.netbeans.modules.java.bridge.TopClassesCollection.createElement (TopClassesCollection.java:60) at org.netbeans.modules.java.bridge.ObjectsCollection.cachedElement (ObjectsCollection.java:74) at org.netbeans.modules.java.bridge.ObjectsCollection.getElements (ObjectsCollection.java:106) at org.netbeans.modules.java.bridge.ClassesCollection.getClasses (ClassesCollection.java:72) at org.netbeans.modules.java.bridge.SourceElementImpl.getClasses (SourceElementImpl.java:144) at org.netbeans.modules.java.bridge.SourceElementImpl.getAllClasses (SourceElementImpl.java:148) at org.netbeans.modules.java.bridge.SrcElementImpl.getAllClasses (SrcElementImpl.java:186) at org.netbeans.modules.java.JavaParserGlue.refireCookieChange (JavaParserGlue.java:356) at org.netbeans.modules.java.JavaParserGlue$2.run (JavaParserGlue.java:536) at org.openide.util.Task.run(Task.java:136) at org.openide.util.RequestProcessor$Task.run (RequestProcessor.java:330) [catch] at org.openide.util.RequestProcessor$Processor.run (RequestProcessor.java:686)
*** Issue 48043 has been marked as a duplicate of this issue. ***
Fixed. Checking in src/org/netbeans/modules/javacore/jmiimpl/javamodel/LightAttrList.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/LightAttrList.java,v <-- LightAttrList.java new revision: 1.7; previous revision: 1.6 done
*** Issue 48480 has been marked as a duplicate of this issue. ***
Verified in 4.2 (200507110943)
Reorganization of java component