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 250040 - NullPointerException: No iterator for MultiFileObject@54ee9094[Templates/Project/Maven2/org-netbeans-modules-maven-j2ee-ui-wizard-EEWizardIterator-createWebAppIterator]
Summary: NullPointerException: No iterator for MultiFileObject@54ee9094[Templates/Proj...
Status: RESOLVED WONTFIX
Alias: None
Product: ide
Classification: Unclassified
Component: Features On Demand (show other bugs)
Version: 8.1
Hardware: All All
: P2 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
: 254328 254726 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-01-27 07:37 UTC by MackSix
Modified: 2015-09-25 09:17 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 215019


Attachments
stacktrace (1.12 KB, text/plain)
2015-01-27 07:37 UTC, MackSix
Details
stacktrace (1.12 KB, text/plain)
2015-08-25 16:23 UTC, stwr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2015-01-27 07:37:08 UTC
This bug was originally marked as duplicate of bug 246131, 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 201501230002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.25-b02, Java(TM) SE Runtime Environment, 1.8.0_25-b18
OS: Windows 7

User Comments:
GUEST: can't create jave project

MackSix: 1. I chose File>>New Project>Maven>>Web Project and this NPE happened.

GUEST: ?????????????????

GUEST: can't open java project

GUEST: jave pluging activation

terje7601: Attempting to create a Java Project while the Java feature was not yet activated




Stacktrace: 
java.lang.NullPointerException: No iterator for MultiFileObject@54ee9094[Templates/Project/Maven2/org-netbeans-modules-maven-j2ee-ui-wizard-EEWizardIterator-createWebAppIterator]
   at org.netbeans.modules.ide.ergonomics.newproject.DescriptionStep.waitForDelegateWizard(DescriptionStep.java:291)
   at org.netbeans.modules.ide.ergonomics.newproject.DescriptionStep.access$000(DescriptionStep.java:93)
   at org.netbeans.modules.ide.ergonomics.newproject.DescriptionStep$PresentModules.presentModulesForActivation(DescriptionStep.java:192)
   at org.netbeans.modules.ide.ergonomics.newproject.DescriptionStep$PresentModules.taskFinished(DescriptionStep.java:171)
   at org.netbeans.modules.ide.ergonomics.fod.FindComponentModules$1.taskFinished(FindComponentModules.java:121)
   at org.openide.util.Task.notifyFinished(Task.java:240)
Comment 1 MackSix 2015-01-27 07:37:10 UTC
Created attachment 151694 [details]
stacktrace
Comment 2 stwr 2015-08-25 16:23:38 UTC
Created attachment 155632 [details]
stacktrace

This is really strange. I started the IDE with clear userdir. The IDE did not recognize test projects as valid project longers. By a mistake I pressed New Project instead of Open Project so I closed the dialog. The NPE has been thrown immidiately after.
Comment 3 Tomas Zezula 2015-08-27 09:05:15 UTC
*** Bug 254726 has been marked as a duplicate of this bug. ***
Comment 4 Tomas Zezula 2015-08-27 09:06:56 UTC
A root cause of the issue #254726 which is valid P2, increasing to P2.
Comment 5 Antonin Nebuzelsky 2015-09-02 11:40:07 UTC
*** Bug 254328 has been marked as a duplicate of this bug. ***
Comment 6 Jaroslav Tulach 2015-09-09 14:18:32 UTC
This happens when there is a problem with dependencies - e.g. the module that provides the real iterator is not enabled. More logged info should be in messages.log I guess.
Comment 7 Jaroslav Tulach 2015-09-09 14:29:06 UTC
For the Maven EE bug report I see 

INFO [org.netbeans.modules.ide.ergonomics.fod]: java enabled 5 disabled 3
INFO [org.netbeans.modules.ide.ergonomics.fod]: - org.netbeans.modules.form.kit
INFO [org.netbeans.modules.ide.ergonomics.fod]: - org.netbeans.modules.hibernate
INFO [org.netbeans.modules.ide.ergonomics.fod]: - org.netbeans.modules.maven.kit
INFO [org.netbeans.modules.ide.ergonomics.fod]: + org.netbeans.modules.ant.kit
INFO [org.netbeans.modules.ide.ergonomics.fod]: + org.netbeans.modules.debugger.jpda.kit
INFO [org.netbeans.modules.ide.ergonomics.fod]: + org.netbeans.modules.j2ee.persistence.kit
INFO [org.netbeans.modules.ide.ergonomics.fod]: + org.netbeans.modules.java.kit
INFO [org.netbeans.modules.ide.ergonomics.fod]: + org.netbeans.modules.spring.beans

in the log. That means the maven.kit was not enabled. I would assume the maven.ee module does not have proper dependency on the maven.kit assuming it is usually on.

The best way to simulate such situation without ergonomics is to disable all modules and enable just the EE kit and see if that work or is broken.
Comment 8 Libor Fischmeistr 2015-09-25 09:17:35 UTC
Closing as WONTFIX. Actually there is nothing to fix.

In the future if somebody reach this issue, please try to reproduce. If reproducible, describe steps to reproduce. Paste here the info form NetBeans about dialog. Also the helpful might be to try enable the single module. For example if there are such lines in the log:

INFO [org.netbeans.modules.ide.ergonomics.fod]: java enabled 5 disabled 3
INFO [org.netbeans.modules.ide.ergonomics.fod]: - org.netbeans.modules.form.kit
INFO [org.netbeans.modules.ide.ergonomics.fod]: - org.netbeans.modules.hibernate
INFO [org.netbeans.modules.ide.ergonomics.fod]: - org.netbeans.modules.maven.kit
INFO [org.netbeans.modules.ide.ergonomics.fod]: + org.netbeans.modules.ant.kit
INFO [org.netbeans.modules.ide.ergonomics.fod]: + org.netbeans.modules.debugger.jpda.kit
INFO [org.netbeans.modules.ide.ergonomics.fod]: + org.netbeans.modules.j2ee.persistence.kit
INFO [org.netbeans.modules.ide.ergonomics.fod]: + org.netbeans.modules.java.kit
INFO [org.netbeans.modules.ide.ergonomics.fod]: + org.netbeans.modules.spring.beans

try to enable disabled modules - those with minus sign. Then please attach the IDE log.