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

Summary: Bundle.getEntry always returns null
Product: platform Reporter: Jaroslav Tulach <jtulach>
Component: NetigsoAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED FIXED    
Severity: normal CC: tpavek
Priority: P2    
Version: 7.1   
Hardware: Other   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Possible fix - only for Netbinox, not for Felix right now

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