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 199784 - Bundle.getEntry always returns null
Summary: Bundle.getEntry always returns null
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Netigso (show other bugs)
Version: 7.1
Hardware: Other Linux
: P2 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-30 14:06 UTC by Jaroslav Tulach
Modified: 2012-01-31 11:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Possible fix - only for Netbinox, not for Felix right now (11.69 KB, patch)
2012-01-16 17:51 UTC, Jaroslav Tulach
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2011-06-30 14:06:59 UTC
Some OSGi frameworks use Bundle.getEntry to seek for important files in all bundles (so called extender pattern). Too bad this does not work for faked OSGi bundles created for NetBeans modules.

For such bundles the getEntry(..) call ways returns null

This is the behavior for Felix as well Netbinox.
Comment 1 Jaroslav Tulach 2011-07-01 14:47:24 UTC
The test is here:
http://netbeans.org/bugzilla/attachment.cgi?id=109169
Comment 2 Jaroslav Tulach 2012-01-16 17:51:13 UTC
Created attachment 114938 [details]
Possible fix - only for Netbinox, not for Felix right now
Comment 3 Jaroslav Tulach 2012-01-20 19:41:38 UTC
The problem is that only modules with public-packages are currently exported as OSGi bundles. If a module exports no packages, then its Bundle is not going to be available.

We should probably add some resource detection via branding. E.g. JDev could say that each module with META-INF/extension.xml is supposed to have a bundle.
Comment 4 Jaroslav Tulach 2012-01-31 11:06:56 UTC
The module that exports an entry needs to declare OpenIDE-Module-Public-Packages or Netigso-Export-Package


ergonomics#93221508f753