Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 313234 - -console <port> terminating OSGi framework in 3.6.RC1
Summary: -console <port> terminating OSGi framework in 3.6.RC1
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Framework (show other bugs)
Version: 3.6   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.6.1   Edit
Assignee: Thomas Watson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-17 16:07 EDT by Ralf Ebert CLA
Modified: 2010-07-08 13:41 EDT (History)
1 user (show)

See Also:


Attachments
patch (1.27 KB, patch)
2010-07-08 13:35 EDT, Thomas Watson CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Ebert CLA 2010-05-17 16:07:31 EDT
Mac OS X 10.6, JDK 1.6 x86_64, -console without port works, -console with port terminates immediately.

Step to reproduce:

- Eclipse Project SDK 3.6 RC1 (I20100513-1500), new workspace
- Create a new Plug-in project for OSGi Framework Equinox, with Activator, don't use a template
- Create a new OSGi Framework run configuration from scratch, deselect all bundles, only launch with the created bundle + dependency org.eclipse.osgi. Default arguments are:

Program: -os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog -console
VM: -Declipse.ignoreApp=true -Dosgi.noShutdown=true

- Launching works, sysout console comes and stays up
- Add a port number to the -console option, it prints:

Listening on port 1234 ...

and immediately exits.

- Open the same workspace in 3.5.2, launch the exact same run config, here it runs and stays up.

As discussed here: http://www.eclipse.org/forums/index.php?t=msg&th=168275&start=0&
Comment 1 Thomas Watson CLA 2010-05-24 14:10:57 EDT
I will fix this in 3.6.1.  We can easily make the port listening thread non-daemon.

You can work around the issue by using the following configuration option.

osgi.framework.activeThreadType=normal
Comment 2 Thomas Watson CLA 2010-07-08 13:35:53 EDT
Created attachment 173797 [details]
patch

This patch applies to both HEAD and 3_6_maintenance branch.
Comment 3 Thomas Watson CLA 2010-07-08 13:41:47 EDT
Patch released to HEAD and for 3.6.1.