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 267272 - java.util.NoSuchElementException at java.util.ArrayList$Itr.next
Summary: java.util.NoSuchElementException at java.util.ArrayList$Itr.next
Status: RESOLVED FIXED
Alias: None
Product: third-party
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: issues@third-party
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-23 19:07 UTC by javydreamercsw
Modified: 2017-02-08 22:52 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 225381


Attachments
stacktrace (3.25 KB, text/plain)
2016-07-23 19:07 UTC, javydreamercsw
Details
stacktrace (3.25 KB, text/plain)
2017-01-23 14:29 UTC, Exceptions Reporter
Details
stacktrace (3.25 KB, text/plain)
2017-02-03 22:51 UTC, snackr
Details
20170207_error_when_right-clic.txt (3.16 KB, text/plain)
2017-02-08 01:08 UTC, snackr
Details
20170207_error_when_startup.txt (7.43 KB, text/plain)
2017-02-08 01:08 UTC, snackr
Details
20170207_error_when_startup.png (99.23 KB, image/png)
2017-02-08 01:09 UTC, snackr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description javydreamercsw 2016-07-23 19:07:20 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.91-b14, Java(TM) SE Runtime Environment, 1.8.0_91-b14
OS: Linux

User Comments:
javydreamercsw: Not sure what's trigering but keep occuring.




Stacktrace: 
java.util.NoSuchElementException
   at java.util.ArrayList$Itr.next(ArrayList.java:854)
   at de.markiewb.netbeans.plugins.maven.project.setjdk.SetJDKAction.getDisplayName(SetJDKAction.java:141)
   at de.markiewb.netbeans.plugins.maven.project.setjdk.SetJDKAction.getPopupPresenter(SetJDKAction.java:108)
   at org.openide.util.Utilities.actionsToPopup(Utilities.java:1729)
   at org.openide.util.Utilities.actionsToPopup(Utilities.java:1815)
   at org.openide.explorer.view.TreeView.createPopup(TreeView.java:1058)
Comment 1 javydreamercsw 2016-07-23 19:07:22 UTC
Created attachment 161398 [details]
stacktrace
Comment 2 IvoLimmen 2016-11-01 07:56:01 UTC
Personally I think this happens since I added the Gradle plugin. But I'm not sure.
Comment 3 Exceptions Reporter 2016-12-15 14:12:52 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=225381
Comment 4 Exceptions Reporter 2017-01-23 14:29:41 UTC
Created attachment 163455 [details]
stacktrace

I started NetBeans and right-clicked on the project node.
Comment 5 snackr 2017-02-03 22:51:22 UTC
Created attachment 163568 [details]
stacktrace

toolbar for sql queries (and for all other windows) was missing, so restored preferences from a backup.
Comment 6 snackr 2017-02-08 01:07:12 UTC
(In reply to Exceptions Reporter from comment #4)
> Created attachment 163455 [details]
> stacktrace
> 
> I started NetBeans and right-clicked on the project node.

This is coming from the "Set JDK for Maven projects" plugin:

https://github.com/markiewb/nb-maven-project-setjdk/blob/master/src/main/java/de/markiewb/netbeans/plugins/maven/project/setjdk/SetJDKAction.java#L141

However, when the IDE is (re)started I get the following 4 errors:

Caused: org.openide.filesystems.FSException: Cannot create file Actions because Loaders/Desktop/org-pr-nb-plugins-usd-BrowseWithSystem.shadow on filesystem Default System is not a folder.

Caused: org.openide.filesystems.FSException: Cannot create file Actions because Loaders/Desktop/org-pr-nb-plugins-usd-EditWithSystem.shadow on filesystem Default System is not a folder.

Caused: org.openide.filesystems.FSException: Cannot create file Actions because Loaders/Desktop/org-pr-nb-plugins-usd-OpenWithSystem.shadow on filesystem Default System is not a folder.

Caused: org.openide.filesystems.FSException: Cannot create file Actions because Loaders/Desktop/org-pr-nb-plugins-usd-MailWithSystem.shadow on filesystem Default System is not a folder.

I am not sure if they are related or not to the "SetJDKAction" NPE.

(see 20170207_error_when_right-clic.txt attachment)
(see 20170207_error_when_startup.txt    attachment)
Comment 7 snackr 2017-02-08 01:08:13 UTC
Created attachment 163590 [details]
20170207_error_when_right-clic.txt
Comment 8 snackr 2017-02-08 01:08:53 UTC
Created attachment 163591 [details]
20170207_error_when_startup.txt
Comment 9 snackr 2017-02-08 01:09:23 UTC
Created attachment 163592 [details]
20170207_error_when_startup.png
Comment 10 snackr 2017-02-08 01:55:55 UTC
(In reply to snackr from comment #6)
> (In reply to Exceptions Reporter from comment #4)
> > Created attachment 163455 [details]
> > stacktrace
> > 
> > I started NetBeans and right-clicked on the project node.
> 
> This is coming from the "Set JDK for Maven projects" plugin:
> 
> https://github.com/markiewb/nb-maven-project-setjdk/blob/master/src/main/
> java/de/markiewb/netbeans/plugins/maven/project/setjdk/SetJDKAction.java#L141
> 
> However, when the IDE is (re)started I get the following 4 errors:
> 
> Caused: org.openide.filesystems.FSException: Cannot create file Actions
> because Loaders/Desktop/org-pr-nb-plugins-usd-BrowseWithSystem.shadow on
> filesystem Default System is not a folder.
> 
> Caused: org.openide.filesystems.FSException: Cannot create file Actions
> because Loaders/Desktop/org-pr-nb-plugins-usd-EditWithSystem.shadow on
> filesystem Default System is not a folder.
> 
> Caused: org.openide.filesystems.FSException: Cannot create file Actions
> because Loaders/Desktop/org-pr-nb-plugins-usd-OpenWithSystem.shadow on
> filesystem Default System is not a folder.
> 
> Caused: org.openide.filesystems.FSException: Cannot create file Actions
> because Loaders/Desktop/org-pr-nb-plugins-usd-MailWithSystem.shadow on
> filesystem Default System is not a folder.
> 
> I am not sure if they are related or not to the "SetJDKAction" NPE.
> 
> (see 20170207_error_when_right-clic.txt attachment)
> (see 20170207_error_when_startup.txt    attachment)

I have added an issue to the "Set JDK for Maven projects" plugin project.

https://github.com/markiewb/nb-maven-project-setjdk/issues/4
Comment 11 snackr 2017-02-08 06:37:54 UTC
(In reply to snackr from comment #10)
> (In reply to snackr from comment #6)
> > (In reply to Exceptions Reporter from comment #4)
> > > Created attachment 163455 [details]
> > > stacktrace
> > > 
> > > I started NetBeans and right-clicked on the project node.
> > 
> > This is coming from the "Set JDK for Maven projects" plugin:
> > 
> > https://github.com/markiewb/nb-maven-project-setjdk/blob/master/src/main/
> > java/de/markiewb/netbeans/plugins/maven/project/setjdk/SetJDKAction.java#L141
> > 
> > However, when the IDE is (re)started I get the following 4 errors:
> > 
> > Caused: org.openide.filesystems.FSException: Cannot create file Actions
> > because Loaders/Desktop/org-pr-nb-plugins-usd-BrowseWithSystem.shadow on
> > filesystem Default System is not a folder.
> > 
> > Caused: org.openide.filesystems.FSException: Cannot create file Actions
> > because Loaders/Desktop/org-pr-nb-plugins-usd-EditWithSystem.shadow on
> > filesystem Default System is not a folder.
> > 
> > Caused: org.openide.filesystems.FSException: Cannot create file Actions
> > because Loaders/Desktop/org-pr-nb-plugins-usd-OpenWithSystem.shadow on
> > filesystem Default System is not a folder.
> > 
> > Caused: org.openide.filesystems.FSException: Cannot create file Actions
> > because Loaders/Desktop/org-pr-nb-plugins-usd-MailWithSystem.shadow on
> > filesystem Default System is not a folder.
> > 
> > I am not sure if they are related or not to the "SetJDKAction" NPE.
> > 
> > (see 20170207_error_when_right-clic.txt attachment)
> > (see 20170207_error_when_startup.txt    attachment)
> 
> I have added an issue to the "Set JDK for Maven projects" plugin project.
> 
> https://github.com/markiewb/nb-maven-project-setjdk/issues/4

also, those "startup" errors I'm having are coming from the "Delta Hexadecimal Editor"

http://deltahex.exbin.org/

Disabling those plugins will fix your errors, but not the plugins.
Comment 12 markiewb 2017-02-08 22:52:12 UTC
It is hopefully fixed in 1.0.2 of the plugin. I uploaded it to the plugin center and it should be available soon as an automatic update.

In the meantime, disable the plugin or the install 1.0.2 from the github page.