karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Commented] (KARAF-6070) deadlock on System.exit()
Date Wed, 02 Jan 2019 10:32:00 GMT

    [ https://issues.apache.org/jira/browse/KARAF-6070?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16731922#comment-16731922
] 

Jean-Baptiste Onofré commented on KARAF-6070:
---------------------------------------------

You should not use {{System.exit()}}. Instead, you should use the Karaf shutdown service (as
the {{system:halt}} command does).

> deadlock on System.exit()
> -------------------------
>
>                 Key: KARAF-6070
>                 URL: https://issues.apache.org/jira/browse/KARAF-6070
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: cellar-4.0.5
>         Environment: window 2012
>            Reporter: 楊帆
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>              Labels: starter
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> In BundleActivator.start(BundleContext), if I get an exception, I use System.exit to
make karaf close , but cause a deadlock. Finally, karaf is closed with timeout . I didn't
find the relevant log. There is no relevant timeout in the official documentation.
> I have another thread to call System.exit asynchronously to solve this problem, but I
don't know if it is correct?
> Thank you!



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message