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: Closed
>Resolution: Duplicate
Priority: 5
Submitted By: Kyle VanderBeek (kylev)
>Assigned to: Scott M Stark (starksm)
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.

----------------------------------------------------------------------

>Comment By: Scott M Stark (starksm)
Date: 2003-03-18 09:44

Message:
Logged In: YES 
user_id=175228

This has been fixed since 2003/02/05.

----------------------------------------------------------------------

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: Does your code think in ink? 
You could win a Tablet PC. Get a free Tablet PC hat just for playing. 
What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to