EHC ❯ ehcache-dx: shutdown scripts shouldnt throw exception when server is not up
-
Bug
-
Status: Closed
-
1 Critical
-
Resolution: Fixed
-
-
-
hsingh
-
Reporter: hsingh
-
November 19, 2009
-
0
-
Watchers: 0
-
January 17, 2013
-
November 23, 2009
Description
ehcache-monitor-1.0.0-beta/bin $ ./shutdown.bat
Couldn’t shut server down at 10.1.1.3:9889
Exception in thread “main” java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at sun.net.NetworkClient.doConnect(NetworkClient.java:158)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
at sun.net.www.http.HttpClient.
It should give a nice message same as we have for tc.
Comments
Alexander Snaps 2009-11-23
Himadri Singh 2009-11-24
ehcache-dx-1.7.1-SNAPSHOT/bin> ./shutdown.sh Couldn’t shut server down at 10.0.4.131:9889! Are you sure there is a EhCache DX Monitor instance running there?
Verified in rev 5370
still prints full stacktrace if something else goes wrong!