This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 113564 - Unclear error message display if fail to start server which have no userName configured
Summary: Unclear error message display if fail to start server which have no userName ...
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-23 01:19 UTC by davisn
Modified: 2007-09-11 23:08 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description davisn 2007-08-23 01:19:17 UTC
Unclear error message appears if user failed to start a server which has no user/password configured to.

STEPS TO REPRODUCE:
1. Install nightly netbean build 08/21/2007 with 58b build
2. Start Netbean IDE
3. Right click Servers > GlassFish V2 > select Properties > remove username and Password
4. Select to Start GlassFish V2
BUG:
   The error message appears to suggest some possible failure scenarios but none was referred to a missing Username 
and password one as described in the message below:

   "The Sun Java System Application Server could not start.
    More information about the cause is the Server log file.
    Possible reasons include:
    -IDE timeout:....
    -Port conflicts ....
    -Incorrect server configuration ...
    -Corrupted Deployed Applications .....
    -Invalid installation location...."
Comment 1 Nitya Doraisamy 2007-08-23 02:19:19 UTC
I guess invalid or missing username / password would be " -Incorrect server configuration ..."
Do we really need to spell out this too?
Comment 2 davisn 2007-08-23 03:09:48 UTC
Yes, it would be nice if you can add an example of missing userName/Password to the the server configuration list.
When I start a server without a userName, I can not figure out why I the server wouldn't start because from the command
I do not require to have userName/Password to start a server. Beside that a server can start with a wrong password but
not with a blank (missing) password? 
Comment 3 Vince Kraemer 2007-09-07 19:35:06 UTC
Davis demo'ed this to me and it is more serious than p3...  The start operation just plain doesn't seem to get
triggered... The server doesn't get started.  The auth dialog doesn't appear... noda, zip.

I will take this one and resolve it.
Comment 4 Vince Kraemer 2007-09-07 20:51:51 UTC
the use of --user in the asadmin start-domain command is suspect here...
Comment 5 Vince Kraemer 2007-09-07 22:52:52 UTC
register pe/6/glassfish[domain1] with no username/password on sol10x86: AS starts... get the username/password query dialog

register ee/6/glassfish[domain1] with no username/password on sol10x86: AS doesn't start... get a auth failed message
dialog. output window has more details... but not many.

register pe/6/glassfish[domain1] with no username/password on windows vista: AS doesn't start... get NOTHING until the
startup times out.  Get the "big box"...
Comment 6 Vince Kraemer 2007-09-11 18:32:16 UTC
the return value from the exec'ed asadmin Process is zero, when it should not be.  About all we can do is look at the
Error output stream and see that it doesn't have data in it... since the exit value is getting reported incorrectly.