Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 213906 - RunLevel broken in "Run in Felix" mode
RunLevel broken in "Run in Felix" mode
Product: platform
Classification: Unclassified
Component: Netigso
All All
: P4 (vote)
: 8.1
Assigned To: Jaroslav Tulach
Depends on:
  Show dependency treegraph
Reported: 2012-06-10 13:59 UTC by maxnitribitt
Modified: 2014-05-26 01:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT

Suite to test 213906 (12.89 KB, application/x-zip-compressed)
2012-06-11 05:40 UTC, maxnitribitt

Note You need to log in before you can comment on or make changes to this bug.
Description maxnitribitt 2012-06-10 13:59:45 UTC
If you want to replace the Swing UI with an alternative one (e.g. in project eFX) using RunLevel, it works when you use the NetBeans Module System. When you try to "Run in Felix" the registered RunLevel's will be ignored.


core.osgi.Activator is responsible for running the RunLevel services in netigso mode, but only launches them when a module with bundle id "" is present (via showWindowSystem flag).

It would be better to have consistent behaviour in netigso and normal mode.
Comment 1 Jaroslav Tulach 2012-06-10 18:36:09 UTC
Can you provide patch or at least a sample demo that I can use to test the fix?
Comment 2 maxnitribitt 2012-06-11 05:40:28 UTC
Created attachment 120631 [details]
Suite to test 213906
Comment 3 maxnitribitt 2012-06-11 05:50:01 UTC
    I created a small demo that has one module with a RunLevel. It's supposed to
    print to System.out when the project is run:

    ############## TestRunlevel started

    When you use "OSGi->Run in Felix" it doesn't.

    In "core.osgi" Activator the relevant code is in Line 251 onwards:

     if (showWindowSystem) {
                // XXX set ${jdk.home}?
                List<String> bisp = new
                bisp.add("org.netbeans.beaninfo"); // NOI18N
                for (RunLevel rl : Lookup.getDefault().lookupAll(RunLevel.class)) {
Comment 4 Jaroslav Tulach 2014-05-23 08:38:55 UTC
Comment 5 Quality Engineering 2014-05-26 01:11:46 UTC
Integrated into 'main-silver', will be available in build *201405260001* on (upload may still be in progress)

User: Jaroslav Tulach <>
Log: #213906: It should be safe to execute registered RunLevel all the times

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo