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

Summary: NullPointerException at org.netbeans.modules.apisupport.project.ManifestManager.getInstance
Product: apisupport Reporter: Milos Kleint <mkleint>
Component: MavenAssignee: Milos Kleint <mkleint>
Status: RESOLVED WONTFIX    
Severity: blocker CC: issues
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=10446
Issue Type: DEFECT Exception Reporter: 10446
Attachments: stacktrace

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