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 202961 - [71cat] NPE at apisupport.installer.maven.actions.BuildInstallersAction$ContextBuildInstaller.actionPerformed
Summary: [71cat] NPE at apisupport.installer.maven.actions.BuildInstallersAction$Conte...
Status: RESOLVED WONTFIX
Alias: None
Product: apisupport
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
: 207200 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-10-03 07:39 UTC by monezz
Modified: 2012-02-14 13:13 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 181546


Attachments
stacktrace (2.96 KB, text/plain)
2011-10-03 07:39 UTC, monezz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description monezz 2011-10-03 07:39:29 UTC
Build: NetBeans IDE 7.1 Beta (Build 201109222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.1-b02, Java(TM) SE Runtime Environment, 1.6.0_26-b03
OS: Linux

User Comments:
Monezz: click "build installers" on a maven platform application.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.apisupport.installer.maven.actions.BuildInstallersAction$ContextBuildInstaller.actionPerformed(BuildInstallersAction.java:224)
   at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
   at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
   at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
   at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
   at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
Comment 1 monezz 2011-10-03 07:39:34 UTC
Created attachment 111410 [details]
stacktrace
Comment 2 monezz 2011-10-06 12:11:42 UTC
Steps to reproduce:
- Create a Maven Netbeans application (RELEASE71-BETA)
- check "Create Module Project"
- build the application
- copy the application project ($ cp -r mavenproject1/application standalone-app)
- change the name in the  copied pom (standalone-app/pom.xml) to "<name>standalone-app</name>"
- open "standalone-app" project in the IDE
- perform clean install and run on the standalone-app, both work like expected and similar to mavenproject1/application, zip distribution is created and works
- run Build Installers on the project "standalone-app"

Expected result:
- Installers to be build
Actual result:
- NullPointerException
Comment 3 Jesse Glick 2011-10-27 22:46:24 UTC
Reproducible but unsure how to fix. (Did not write the NBI support and am not sure who if anyone claims to maintain it. Should probably be moved out of the standard distro.)

Problem is attempt to pass a variable suite.location which in a normal app would point to the parent POM, i.e. ../, but here your parent POM is in the repo not in the reactor so such a location would be meaningless.

The Ant script libs.nbi.ant/stub/template.xml interprets this variable. Quick inspection suggests that it is not capable of handling your setup. Probably needs to be rewritten to really support Maven.
Comment 4 Jesse Glick 2012-01-12 16:13:12 UTC
*** Bug 207200 has been marked as a duplicate of this bug. ***
Comment 5 Jesse Glick 2012-02-14 13:13:59 UTC
The 3.7 plugin includes a goal for building installers which should be used instead.