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 167540 - Unable to show Suite library
Summary: Unable to show Suite library
Status: RESOLVED WONTFIX
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 3.x
Hardware: All All
: P4 blocker (vote)
Assignee: Martin Kozeny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-23 15:42 UTC by alban
Modified: 2014-01-10 13:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Error (42.14 KB, text/plain)
2009-06-23 15:43 UTC, alban
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alban 2009-06-23 15:42:18 UTC
Using Netisgo, when I remove the "OpenIDE-Module:" from a dedicated OSGI module (to allow netigso to take into account
instead of the default module system), the suite which contain the module is not able to show the libraries anymore 

1 - Create Module Suite 
2 - Add a new OSGI Bundle to module suite
3 - Comment #OpenIDE-Module: into the manifest to allow netisgo to handle this module
4 - Go to Module Suite / Properties / Libraries and a error appear saying that the dialog is not able to parse the
project (apparently a null pointer exception)
Comment 1 alban 2009-06-23 15:43:58 UTC
Created attachment 83942 [details]
Error
Comment 2 Jaroslav Tulach 2009-06-25 08:39:33 UTC
Workaround:
1. use "New Project/NetBeans Modules/Netigso Bundle"
or
2.not only comment out the OpenIDE-Module tag, but also add Bundle-SymbolicName tag. 

Anyway this is nothing Netigso specific. Use regular 6.8 build:
1. create a module suite
2. create a module in the suite
3. comment out OpenIDE-Module tag
4. open the Module Susite/ Properties / Libraries and you'll get the same error.
Comment 3 Jaroslav Tulach 2009-06-25 08:55:14 UTC
The problem is even simpler. "#" is not allowed in manifest at all, it yields:

Caused: java.io.IOException: invalid header field name: #OpenIDE-Module
	at java.util.jar.Attributes.read(Attributes.java:416)
	at java.util.jar.Manifest.read(Manifest.java:182)
	at java.util.jar.Manifest.<init>(Manifest.java:52)
	at org.netbeans.modules.apisupport.project.ManifestManager.getInstance(ManifestManager.java:160)

Lowevering priority again, althrough it seems almost like a won'tfix bug.
Comment 4 alban 2009-06-25 08:57:33 UTC
I put a # by mistake but the scenario works as well when the whole line is removed
Comment 5 Martin Kozeny 2014-01-10 13:28:48 UTC
Closing as WONTFIX, no real time validation of manifest file planned.