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] [Updated] (KARAF-2547) karaf/stop script should be catching 'Connection refused' and display a message
Date Wed, 06 Nov 2013 07:48:21 GMT

     [ https://issues.apache.org/jira/browse/KARAF-2547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jean-Baptiste Onofré updated KARAF-2547:
----------------------------------------

    Component/s: karaf-core

> karaf/stop script should be catching 'Connection refused' and display a message
> -------------------------------------------------------------------------------
>
>                 Key: KARAF-2547
>                 URL: https://issues.apache.org/jira/browse/KARAF-2547
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.3.1
>            Reporter: Martin Lichtin
>            Assignee: Jean-Baptiste Onofré
>
> Currently when one tries to stop a Karaf that is not running, a stack trace is printed.
The operator doesn't really know what is going on.
> Exception in thread "main" java.net.ConnectException: Connection refused
>         at java.net.PlainSocketImpl.socketConnect(Native Method)
>         at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
>         at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
>         at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
>         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
>         at java.net.Socket.connect(Socket.java:579)
>         at java.net.Socket.connect(Socket.java:528)
>         at java.net.Socket.<init>(Socket.java:425)
>         at java.net.Socket.<init>(Socket.java:208)
>         at org.apache.karaf.main.Stop.main(Stop.java:70)
> The exception should be caught and a sensible message printed to stderr.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message