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 140237 - creation of appframework-based maven projects impossible (NullPointerException at org.netbeans.modules.swingapp.AppFrameworkSupport$2.run)
Summary: creation of appframework-based maven projects impossible (NullPointerExceptio...
Status: RESOLVED INVALID
Alias: None
Product: guibuilder
Classification: Unclassified
Component: App Framework (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@guibuilder
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-16 10:11 UTC by kawazu428
Modified: 2008-07-16 12:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 47547


Attachments
stacktrace (2.46 KB, text/plain)
2008-07-16 10:11 UTC, kawazu428
Details
stacktrace (2.46 KB, text/plain)
2008-07-16 10:18 UTC, kawazu428
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kawazu428 2008-07-16 10:11:02 UTC
Build: NetBeans IDE Dev (Build 200807101204)
VM: Java HotSpot(TM) Client VM, 11.0-b14, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b27
OS: Linux, 2.6.24-19-generic, i386

User Comments: 
trying to use swing app framework inside of a maven2 module... :o
Comment 1 kawazu428 2008-07-16 10:11:09 UTC
Created attachment 64673 [details]
stacktrace
Comment 2 kawazu428 2008-07-16 10:18:47 UTC
Build: NetBeans IDE Dev (Build 200807101204)
VM: Java HotSpot(TM) Client VM, 11.0-b14, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b27
OS: Linux, 2.6.24-19-generic, i386

User Comments: 
doing "fix imports" in a maven2 project with appframework.jar attached as a local artifact
Comment 3 kawazu428 2008-07-16 10:18:55 UTC
Created attachment 64676 [details]
stacktrace
Comment 4 kawazu428 2008-07-16 10:25:53 UTC
working with maven2 projects:
- created a local artifact containing swing app framework
- created a project depending upon this local artifact
- tried to create a class extending org.jdesktop.application.Application

The exception attached is thrown whenever trying to use any swing-appframework-related classes in custom source code in
this maven2 project, no matter whether doing "Fix Imports", manually importing classes and trying to save, ... . So far,
even building a class "extending Application" is impossible so together with maven2 the swing-appframework is unusable
at the moment.
Comment 5 Jan Stola 2008-07-16 12:33:35 UTC
I am sorry, I am not familiar neither with Maven nor with NetBeans Maven plug-in. Could you, please, provide more 
detailed steps to reproduce e.g. how to create the mentioned local artifact and how to create a project depending on 
it. Thank you in advance.
Comment 6 kawazu428 2008-07-16 12:47:33 UTC
Hmmm, repeatedly failed to reproduce this after changing my project structure, it seems to break down on being an issue
with the maven2 plugin and its module handling. Gonna evaluate and eventually file an issue against maven2. Thanks for
your time, nevertheless.