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 245531 - java.util.NoSuchElementException at java.util.LinkedList.getFirst
Summary: java.util.NoSuchElementException at java.util.LinkedList.getFirst
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-09 17:28 UTC by zdenek.rod
Modified: 2015-08-07 08:21 UTC (History)
21 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 210624


Attachments
stacktrace (2.81 KB, text/plain)
2014-07-09 17:28 UTC, zdenek.rod
Details
stacktrace (2.81 KB, text/plain)
2014-09-26 02:53 UTC, DaviMoreira
Details
stacktrace (2.81 KB, text/plain)
2015-01-02 03:45 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zdenek.rod 2014-07-09 17:28:31 UTC
This bug was originally marked as duplicate of bug 241072, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201407080001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.5-b02, Java(TM) SE Runtime Environment, 1.8.0_05-b13
OS: Windows 7

User Comments:
GUEST: <Forne
Comment 1 zdenek.rod 2014-07-09 17:28:33 UTC
Created attachment 147958 [details]
stacktrace
Comment 2 Ralph Ruijs 2014-07-15 07:48:14 UTC
Messages.log and uilog complain about svn, reassigning. Please evaluate, Thanks!
Comment 3 Ondrej Vrabec 2014-07-15 08:10:21 UTC
(In reply to Ralph Ruijs from comment #2)
> Messages.log and uilog complain about svn, reassigning. Please evaluate,
This was cheap. Definitely not related to subversion. Svn complains only in one of about 50 reports and is absolutely unrelated, it is only a logged message.
May be a JDK bug, typeAheadMarkers.getFirst() is called but not checked if typeAheadMarkers is empty. In all other occurances in the file typeAheadMarkers.getFirst() is preceded with typeAheadMarkers.size() != 0.
Comment 4 mysiar 2014-09-12 05:21:28 UTC
I think that problem could be caused by JINDENT plugin.
I deactivated it and problem is gone.
Comment 5 _ gtzabari 2014-09-12 05:35:03 UTC
Nope. This is a JDK bug. See https://bugs.openjdk.java.net/browse/JDK-8023148
Comment 6 mysiar 2014-09-12 05:46:29 UTC
I can only see that problem if I use JINDENT plugin.
With plugin deactivated everything is OK.
Comment 7 _ gtzabari 2014-09-12 06:20:53 UTC
In my experience, this issue is random. Can you reproduce it 100% of the time with JIndent enabled?
Comment 8 mysiar 2014-09-12 09:01:38 UTC
Yes, I can. It is enough for me to enable the plugin.
Type code and format it.
Comment 9 Antonin Nebuzelsky 2014-09-12 14:45:32 UTC
(In reply to mysiar from comment #8)
> Yes, I can. It is enough for me to enable the plugin.
> Type code and format it.

Please, upgrade to JDK 8u20 and verify if the fix of JDK bug mentioned above has helped.
Comment 10 mysiar 2014-09-13 00:06:33 UTC
Thanks for the tip.
I have installed JDK and JRE both 8.20 and the problem with JINDENT is gone.
I do not have this error anymore, at least when I did quick test.
Comment 11 mysiar 2014-09-13 01:57:56 UTC
Error reproduced again with Java 8 update 20 and JINDENT plugin activated.
Comment 12 DaviMoreira 2014-09-26 02:53:00 UTC
Created attachment 149527 [details]
stacktrace

Problem occurs exactly when NetBeans started.
Comment 13 markiewb 2015-01-02 03:45:07 UTC
Created attachment 151341 [details]
stacktrace

Inline-Refactoring. There was a comment above the variable to be inlined
Comment 14 Antonin Nebuzelsky 2015-08-07 08:21:49 UTC
All reports (http://statistics.netbeans.org/exceptions/detail.do?id=210624) come from jdk's 8, 8u05 and 8u11. The related JDK bug is fixed in the later 8uX updates.