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-5481) NullPointer when invoking Karaf.stop()
Date Tue, 14 Nov 2017 06:34:00 GMT

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

Jean-Baptiste Onofré commented on KARAF-5481:

I think we have to add a test to ensure {{config}} is not null as it could be possible especially
when using PID instead of shutdown command.

> NullPointer when invoking Karaf.stop()
> --------------------------------------
>                 Key: KARAF-5481
>                 URL: https://issues.apache.org/jira/browse/KARAF-5481
>             Project: Karaf
>          Issue Type: Bug
>            Reporter: Fabian Lange
>            Assignee: Jean-Baptiste Onofré
> customer sees this when they run a package upgrade of our karaf distribution
> ```Nov 12 04:15:54 karaf[21250]: Exception in thread "main" java.lang.NullPointerException
> Nov 12 04:15:54 karaf[21250]: at org.apache.karaf.main.Stop.main(Stop.java:60)```
> https://github.com/apache/karaf/blob/master/main/src/main/java/org/apache/karaf/main/Stop.java#L60
> We have the feeling this is kind of a race condition between sending the stop command
and deleting the file which contains the stop command.
> whats your thoughts? shouldn'T we at least ensure that `config.shutdownCommand` is non

This message was sent by Atlassian JIRA

View raw message