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 241072 - java.util.NoSuchElementException at java.util.LinkedList.getFirst
Summary: java.util.NoSuchElementException at java.util.LinkedList.getFirst
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.0
Hardware: All All
: P2 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-28 17:01 UTC by mmolda
Modified: 2014-04-30 13:39 UTC (History)
8 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 202480


Attachments
stacktrace (2.81 KB, text/plain)
2014-01-28 17:01 UTC, mmolda
Details
stacktrace (2.81 KB, text/plain)
2014-02-04 15:13 UTC, stefan79
Details
stacktrace (2.81 KB, text/plain)
2014-02-21 21:07 UTC, skygo
Details
stacktrace (2.81 KB, text/plain)
2014-03-01 11:21 UTC, _ gtzabari
Details
stacktrace (2.81 KB, text/plain)
2014-03-20 23:06 UTC, markiewb
Details
stacktrace (2.81 KB, text/plain)
2014-03-20 23:12 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mmolda 2014-01-28 17:01:24 UTC
Build: NetBeans IDE Dev (Build 201401280001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b67, Java(TM) SE Runtime Environment, 1.8.0-b126
OS: Windows 7

User Comments:
GUEST: sd

mmolda: I was doing some refactoring - rename method name and click "Do refactoring" and then the exception pops out.

Don't know if relevant but my Project run configuration:
Run As: Remote Web Site (FTP)
Upload Files: On save

GUEST: <Please provide a description of the problem or the steps to reproduce>s

xehpuk: Selected a Java class in the Projects Window and pressed the Delete key.




Stacktrace: 
java.util.NoSuchElementException
   at java.util.LinkedList.getFirst(LinkedList.java:244)
   at java.awt.DefaultKeyboardFocusManager.repostIfFollowsKeyEvents(DefaultKeyboardFocusManager.java:290)
   at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:325)
   at java.awt.Component.dispatchEventImpl(Component.java:4754)
   at java.awt.Container.dispatchEventImpl(Container.java:2292)
   at java.awt.Window.dispatchEventImpl(Window.java:2739)
Comment 1 mmolda 2014-01-28 17:01:26 UTC
Created attachment 144480 [details]
stacktrace
Comment 2 stefan79 2014-02-04 15:13:16 UTC
Created attachment 144785 [details]
stacktrace

Excepton occured after typing in a java-files.
Comment 3 Exceptions Reporter 2014-02-04 15:13:22 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=202480
Comment 4 skygo 2014-02-21 21:07:43 UTC
Created attachment 145481 [details]
stacktrace

Happens during maven and java editon during test specification run on RC1. Was not poping only show in alert. I cannot be more precise sorry.
Comment 5 _ gtzabari 2014-03-01 11:21:35 UTC
Created attachment 145688 [details]
stacktrace

Opened Netbeans. Exception theown.
Comment 6 markiewb 2014-03-20 23:06:30 UTC
Created attachment 146197 [details]
stacktrace

Did some copy and paste
Comment 7 markiewb 2014-03-20 23:12:30 UTC
Created attachment 146198 [details]
stacktrace

Happens after inlining a local variable
Comment 8 Exceptions Reporter 2014-03-20 23:12:35 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=202480
Comment 9 markiewb 2014-03-22 15:05:00 UTC
Happens after inlining a local variable

P2, because I cannot type into the editor anymore.

Workaround: Close and reopen the file.
Comment 10 Ralph Ruijs 2014-03-31 14:00:50 UTC
fixed in jet-main f1b43136a010 & dd9ea4c15331
Comment 11 Quality Engineering 2014-04-05 03:28:36 UTC
Integrated into 'main-silver', will be available in build *201404050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/f1b43136a010
User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Log: #241072 - Remove requestFocus() usage from ParametersPanels
Comment 12 Alexander Simon 2014-04-11 07:03:22 UTC
(In reply to Ralph Ruijs from comment #10)
> fixed in jet-main f1b43136a010 & dd9ea4c15331

The fix dd9ea4c15331 introduced regression:
Method: createUsagesComponent
Class: class org.netbeans.modules.refactoring.spi.impl.RefactoringPanelContainer
Caused: java.lang.NoSuchMethodException: org.netbeans.modules.refactoring.spi.impl.RefactoringPanelContainer.createUsagesComponent()
	at java.lang.Class.getDeclaredMethod(Class.java:2004)
	at org.netbeans.modules.settings.convertors.XMLSettingsSupport$SettingsRecognizer.createFromMethod(XMLSettingsSupport.java:695)
Caused: java.io.IOException: Error reading MultiFileObject@2ec43ec[Windows2Local/Components/find-usages.settings]
	at org.netbeans.modules.settings.convertors.XMLSettingsSupport$SettingsRecognizer.createFromMethod(XMLSettingsSupport.java:705)
	at org.netbeans.modules.settings.convertors.XMLSettingsSupport$SettingsRecognizer.instanceCreate(XMLSettingsSupport.java:608)
	at org.netbeans.modules.settings.convertors.SerialDataConvertor$SettingsInstance.instanceCreate(SerialDataConvertor.java:426)
[catch] at org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentPersistentForID(PersistenceManager.java:571)

Please fix xml find-usages.settings.
Comment 13 Ralph Ruijs 2014-04-16 09:00:17 UTC
(In reply to Alexander Simon from comment #12)
> 
> The fix dd9ea4c15331 introduced regression:

Reported as #243622
Comment 14 Quality Engineering 2014-04-24 02:16:45 UTC
Integrated into 'releases/release80', will be available in build *201404240045* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/b87774b88b0b
User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Log: #241072 - Remove requestFocus() usage from ParametersPanels
Comment 15 Jiri Prox 2014-04-28 12:53:05 UTC
verified
Comment 16 Alexander Simon 2014-04-30 13:39:20 UTC
Please verify that patch did not broke rename behavior in ALL languages.
For example see bug #244195.