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.
Build: NetBeans IDE Dev (Build 201111160600) VM: Java HotSpot(TM) 64-Bit Server VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147 OS: Linux User Comments: FrantaM: Maven WebProject: Project Properties | Run Stacktrace: java.lang.NullPointerException at org.netbeans.modules.maven.j2ee.customizer.CustomizerRunWeb.initValues(CustomizerRunWeb.java:204) at org.netbeans.modules.maven.j2ee.customizer.CustomizerRunWeb.<init>(CustomizerRunWeb.java:173) at org.netbeans.modules.maven.j2ee.customizer.MavenCompositePanelProvider.createComponent(MavenCompositePanelProvider.java:122) at org.netbeans.spi.project.ui.support.ProjectCustomizer$DelegateCategoryProvider.create(ProjectCustomizer.java:702) at org.netbeans.modules.project.uiapi.CustomizerPane.setCategory(CustomizerPane.java:259) at org.netbeans.modules.project.uiapi.CustomizerPane.access$200(CustomizerPane.java:72)
Created attachment 113322 [details] stacktrace
This is quite weird - such a situation should never happened. Anyway I created revision web-main #542151077fde which should avoid such a NPE.
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/542151077fde User: Martin Janicek <mjanicek@netbeans.org> Log: #205298 - NullPointerException at org.netbeans.modules.maven.j2ee.customizer.CustomizerRunWeb.initValues
How is this not a showstopper for 7.1?
Well this was quite rare exception with one duplicate. I've just tried to follow described steps (that means - create maven web app and go to properties/run panel) with Netbeans 7.1 RC1 and no exception occurs. So why should it be showstopper?
I have run into this as well on 7.1 RC2
Ye thats possible, the fix will be integrated for 7.2.
(In reply to comment #2) > This is quite weird - such a situation should never happened. Anyway I created > revision web-main #542151077fde which should avoid such a NPE. It seems it's caused by incorrectly loaded (web|context|pom).xml. After every restart of netbeans when I want to debug the project it asks me to select deployment server. Even though I always choose to remember it permanently.
The problem you are describing was already fixed (see issue 206231 for more details). But it shouldn't be related to this one.
I run into the same issue with netbeans 7.1. It is possible to fix this issue manually?
Sure, it is. You just need to change CustomizerRunWeb source code in the same way as it's done by my revision (http://hg.netbeans.org/main-golden/rev/542151077fde). Because it seems that this is not so rare in 7.1 I'll consider the integration of this patch to 7.1.1 as well
I have also run into this issue and would love to have it fixed in 7.1.1
I have the same issue. It occurs when I add custom action. If the custom action is removed, the problem disappears and Run dialog is shown. Hope this is fixed in 7.1.1