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 121056 - NullPointerException at org.netbeans.modules.apisupport.project.ManifestManager.getInstance
Summary: NullPointerException at org.netbeans.modules.apisupport.project.ManifestManag...
Status: RESOLVED WONTFIX
Alias: None
Product: apisupport
Classification: Unclassified
Component: Maven (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Milos Kleint
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-03 13:50 UTC by Milos Kleint
Modified: 2009-12-21 06:40 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 10446


Attachments
stacktrace (1.72 KB, text/plain)
2007-11-03 13:50 UTC, Milos Kleint
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milos Kleint 2007-11-03 13:50:26 UTC
Build: NetBeans IDE Dev (Build 20071102050220)
VM: Java HotSpot(TM) Client VM, 1.5.0_09-b03
OS: Linux, 2.6.17-5mdv, i386

User Comments: 
new action wizard in maven nbm module
Comment 1 Milos Kleint 2007-11-03 13:50:33 UTC
Created attachment 52445 [details]
stacktrace
Comment 2 Jesse Glick 2007-11-03 17:14:31 UTC
NbModuleProvider.getManifestFile() is returning null, I think, which would probably be an issue with the Maven NBM
project type? Can make apisupport code more robust - will skip the step of adding the OpenIDE-Module-Layer line to
manifest if there is no known manifest.

Checking in LayerUtils.java;
/shared/data/ccvs/repository/apisupport/project/src/org/netbeans/modules/apisupport/project/layers/LayerUtils.java,v 
<--  LayerUtils.java
new revision: 1.42; previous revision: 1.41
done
Comment 3 Milos Kleint 2007-11-03 19:44:27 UTC
yup. The manifest getter returned null because it didn't exist yet. I just took a simple jar project and converted it to
nbm project, forgotten about adding the manifest file. Should not be common once we get a proper archetype for nbm projects.

A proper fix would be probably to convert the manifest getter in the SPI to return File rather than FileObject and
create it on the fly when the file doesn't exist and the is necessary.
Comment 4 Milos Kleint 2008-03-13 13:40:38 UTC
there are now nbm archetypes released. Works fine in te 3.1-SNAPSHOT of mevenide. The apisupport-maven bridge modules
puts it in a privideged position in the archetypes list. 
Decreasing priority, unlikely to happen.
Comment 5 Quality Engineering 2009-12-21 06:40:40 UTC
This bug was reported against NetBeans IDE 6.0 or an older release, or against a non-maintained module. NetBeans team does not have enough resources to get to this issue, therefore we are closing the issue as a WONTFIX. If you are interested in providing a patch for this bug, please see our NetFIX guidelines for how to proceed. 

We apologize for any inconvenience.


Thank you.
The NetBeans Team