karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Lichtin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KARAF-2547) karaf/stop script should be catching 'Connection refused' and display a message
Date Tue, 05 Nov 2013 08:52:21 GMT
Martin Lichtin created KARAF-2547:
-------------------------------------

             Summary: 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
    Affects Versions: 2.3.1
            Reporter: Martin Lichtin


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