United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-7099889 : second copy of SingleInstanceService application does not exit after attaching to main app

Details
Type:
Bug
Submit Date:
2011-10-12
Status:
Closed
Updated Date:
2013-12-05
Project Name:
JDK
Resolved Date:
2011-10-28
Component:
deploy
OS:
windows
Sub-Component:
deployment_toolkit
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Backport:

Sub Tasks

Description
see http://javafx-jira.kenai.com/browse/RT-17312

                                    

Comments
EVALUATION

Problem:  Use of SingleInstanceService in the JavaFX application does not work as expected. 

Once second app is launched it will correctly detect running application and pass new parameters to it. 
However, launch process will not exit due to JavaFX Application thread being alive. 

Fix:  A few changes:

1.  SingleInstanceServer thread should be daemon.
2.  When we detected single instance is running - currently we just return and didn't perform any shutdown/clean up.  Instead, before we exit silently, we should shutdown UI toolkit so javaw process can exit clean.
3.  Changed FX toolkit dispose() to call platformtk.exit().
                                     
2011-10-12
EVALUATION

added to final fix:

1.   Add comments to launch method and do not check for single instance for import mode.

2.  fixed the problem for webstart applet-desc - when error occur, we failed to show error dialog and java process hang around.  it's because error panel is not visible.
                                     
2011-10-13
Verified on x86 Win 7/ jre 8-b118 promotion 
                                     
2013-12-05



Hardware and Software, Engineered to Work Together