Bugs item #702543, was opened at 2003-03-12 13:40 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=702543&group_id=22866
Category: JBossServer Group: v3.0 Rabbit Hole Status: Open Resolution: None Priority: 5 Submitted By: Kyle VanderBeek (kylev) Assigned to: Nobody/Anonymous (nobody) Summary: Shutdown silently swallows NPE, does nothing Initial Comment: The help form for shutdown indicates that -u and -p are not required: [EMAIL PROTECTED] bin]$ ./shutdown.sh -? Usage: Shutdown [host [port]] [-u username] [-p password] [-c shutdown_command] However, a quick glance at things tells you this isn't true. A NullPointerException will be thrown around line 120 when password.toCharArray() is called on a null password. This nasty error is swallowed silently thanks to the catch'ing of generic Exception in the shutdown method. The work-around is to always specify a user and password. The fix is to not catch a generic Exception silently. The comment in the code indicates there is some regularly occurring Excpetion (I'd guess IOException) thrown as the server shuts down. So catch that exception specifically, maybe in inside a narrow try/catch block, instead of just sucking any exception into silent oblivion. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=702543&group_id=22866 ------------------------------------------------------- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development