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 47660 - [40cat] NoSuchElementException from javacore.jmiimpl.javamodel.LightAttrList$LightAttrListIterator.next
Summary: [40cat] NoSuchElementException from javacore.jmiimpl.javamodel.LightAttrList$...
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Martin Matula
URL:
Keywords:
: 47681 47894 47937 47980 48043 48480 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-08-23 02:28 UTC by crichey
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stack trace (3.91 KB, text/plain)
2004-08-23 02:30 UTC, crichey
Details
Java file causing the error (6.36 KB, text/plain)
2004-08-23 02:31 UTC, crichey
Details

Note You need to log in before you can comment on or make changes to this bug.
Description crichey 2004-08-23 02:28:11 UTC
[ 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.
Comment 1 crichey 2004-08-23 02:30:08 UTC
Created attachment 17015 [details]
stack trace
Comment 2 crichey 2004-08-23 02:31:48 UTC
Created attachment 17016 [details]
Java file causing the error
Comment 3 crichey 2004-08-23 02:36:20 UTC
Closing the IDE and reloading seems to "resolve" the problem.
Comment 4 Marian Mirilovic 2004-08-23 07:52:49 UTC
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)
Comment 5 Martin Matula 2004-08-23 09:57:29 UTC
*** Issue 47681 has been marked as a duplicate of this issue. ***
Comment 6 Martin Matula 2004-08-25 13:23:50 UTC
*** Issue 47894 has been marked as a duplicate of this issue. ***
Comment 7 Martin Matula 2004-08-25 17:37:24 UTC
*** Issue 47937 has been marked as a duplicate of this issue. ***
Comment 8 Martin Matula 2004-08-26 15:36:35 UTC
*** Issue 47980 has been marked as a duplicate of this issue. ***
Comment 9 cezariusz 2004-08-26 18:52:18 UTC
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)
Comment 10 Martin Matula 2004-08-27 10:04:27 UTC
*** Issue 48043 has been marked as a duplicate of this issue. ***
Comment 11 Martin Matula 2004-09-02 13:19:23 UTC
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
Comment 12 Pavel Flaska 2004-09-06 13:29:16 UTC
*** Issue 48480 has been marked as a duplicate of this issue. ***
Comment 13 Jiri Prox 2005-07-12 09:30:19 UTC
Verified in 4.2 (200507110943)
Comment 14 Quality Engineering 2007-09-20 09:47:32 UTC
Reorganization of java component