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 232347 - NullPointerException at org.netbeans.modules.maven.j2ee.ui.wizard.ServerSelectionHelper.storeServerSettings
Summary: NullPointerException at org.netbeans.modules.maven.j2ee.ui.wizard.ServerSelec...
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.3
Hardware: All All
: P1 normal (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-07 19:47 UTC by mdeggersbeans
Modified: 2013-08-19 08:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 201824


Attachments
stacktrace (6.17 KB, text/plain)
2013-07-07 19:47 UTC, mdeggersbeans
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mdeggersbeans 2013-07-07 19:47:50 UTC
Build: NetBeans IDE 7.3.1 (Build 201306052037)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b16
OS: Windows 7

User Comments:
GUEST: I was creating a new Maven Application Client project template, created with Maven Archetype Plugin.
I was using de wizard, step #3

mdeggersbeans: File->New Project->Maven Project->Web Application

GUEST: ???????? ????????? ??? ??????? ???????? maven EJB ???????




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.maven.j2ee.ui.wizard.ServerSelectionHelper.storeServerSettings(ServerSelectionHelper.java:231)
   at org.netbeans.modules.maven.j2ee.ui.wizard.EELevelPanelVisual.storeSettings(EELevelPanelVisual.java:73)
   at org.netbeans.modules.maven.j2ee.ui.wizard.EELevelPanel.storeSettings(EELevelPanel.java:73)
   at org.netbeans.modules.maven.j2ee.ui.wizard.EELevelPanel.storeSettings(EELevelPanel.java:47)
   at org.openide.WizardDescriptor.updateStateOpen(WizardDescriptor.java:849)
   at org.openide.WizardDescriptor.updateState(WizardDescriptor.java:820)
Comment 1 mdeggersbeans 2013-07-07 19:47:51 UTC
Created attachment 136788 [details]
stacktrace
Comment 2 mdeggersbeans 2013-07-07 20:46:15 UTC
This only appears to occur on Windows (running Windows 7 Home Premium on this platform).

The exact same steps (File->New Project->Maven->Web Application) runs to completion on Fedoraa 19 with the same version of NetBeans and JDK.

Also, this process fails on Windows 7 for NetBeans 7.3.

Switching to JDK 1.6.0_45 does not throw an exception, but the second step of the wizard is completely blank.

Sadly, this makes NetBeans on Windows 7 more or less completely useless.
Comment 3 Martin Janicek 2013-07-09 10:25:51 UTC
Fixed in: web-main #d61763d4e438
Comment 4 Quality Engineering 2013-07-10 04:44:18 UTC
Integrated into 'main-silver', will be available in build *201307100049* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/d61763d4e438
User: Martin Janicek <mjanicek@netbeans.org>
Log: #232347 - NullPointerException at org.netbeans.modules.maven.j2ee.ui.wizard.ServerSelectionHelper.storeServerSettings
Comment 5 mdeggersbeans 2013-07-15 16:33:11 UTC
Is this going to make it in an update any time soon?
Comment 6 mdeggersbeans 2013-07-15 17:39:59 UTC
Not fixed. I just posted a bug against the 07/15/2013 build.
Comment 7 Martin Janicek 2013-07-16 08:45:57 UTC
Thanks for pointing it out! Should be fixed in web-main #7cf47dccc544
Please wait a few days (the revision won't be a part of daily build immediately) and then try it again.
Comment 8 Quality Engineering 2013-07-17 02:41:35 UTC
Integrated into 'main-silver', will be available in build *201307162300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/7cf47dccc544
User: Martin Janicek <mjanicek@netbeans.org>
Log: #232347 - NullPointerException at org.netbeans.modules.maven.j2ee.ui.wizard.ServerSelectionHelper.storeServerSettings
Comment 9 giorgio42 2013-08-16 11:54:59 UTC
Is there any work around ?
How am I supposed to generate a Maven web project using NetBeans now ?

This is an absolute show stopper as it makes it impossible to develop Maven-based web applications using NB on Windows 7.

Set priority to P1 and reopened because we cannot wait for NB 7.4 to have this fixed;

Please provide a patch for this as soon as possible.
Comment 10 Martin Janicek 2013-08-16 12:04:32 UTC
(In reply to giorgio42 from comment #9)
> Is there any work around ?

What version of NB are you developing with? This issue were already fixed and you shouldn't be able to reproduce it using latest daily builds [1].

If you are still able to reproduce the problem even with daily build, please attach new stacktrace because the original one is obsolete (ServerSelectionHelper:231 contains comment now). Thanks in advance

[1] http://bits.netbeans.org/dev/nightly/2013-08-15_23-00-49/
Comment 11 mdeggersbeans 2013-08-16 14:41:23 UTC
The current work-around that I use when working with 7.3.1 is to create a project with:

File->New Project->Maven->Project from Archetype

I then search for jee5 (if I'm developing a 2.5 servlet application), and proceed with the wizard.

It's not quite as nice as New Web Application wizard (have to search for the correct archetype), but it's workable. It does appear to be fixed in the nightly builds, which I'm using to debug a servlet / javascript application.

Hope this helps.
Comment 12 Martin Janicek 2013-08-16 15:58:22 UTC
(In reply to mdeggersbeans from comment #11)
> It does appear to be fixed in the
> nightly builds, which I'm using to debug a servlet / javascript application.

In that case, could you attach new stacktrace please? If it does appear in latest builds then it definitely needs to be re-evaluated but the original reports are obsolete now.
Comment 13 mdeggersbeans 2013-08-16 16:07:04 UTC
(In reply to Martin Janicek from comment #12)
> (In reply to mdeggersbeans from comment #11)
> > It does appear to be fixed in the
> > nightly builds, which I'm using to debug a servlet / javascript application.
> 
> In that case, could you attach new stacktrace please? If it does appear in
> latest builds then it definitely needs to be re-evaluated but the original
> reports are obsolete now.

Sorry, I should be a little more careful with my wording (not enough coffee yet).

The wizard works as expected on 7.4 nightly builds. I'm using 201308151015 on Windows 7 64 bit with JRE/JDK 1.7.0_25 at the moment. The Maven Web Application wizard works properly with this build.

The only issue I have right now is that NetBeans doesn't understand which Tomcat servers support which version of the servlet specification. I'll open a bug on this.
Comment 14 Martin Janicek 2013-08-19 08:14:25 UTC
(In reply to mdeggersbeans from comment #13)
> The only issue I have right now is that NetBeans doesn't understand which
> Tomcat servers support which version of the servlet specification. I'll open
> a bug on this.

Ye, it would be really good to open a new bug about this. I'm not aware of such issue so without BZ ticket I hardly can fix anything related. Thanks! ;)