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 104557 - When password is wrong, starting app server causes IDE to hang
Summary: When password is wrong, starting app server causes IDE to hang
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 6.x
Hardware: All Mac OS X
: P1 blocker (vote)
Assignee: Sherold Dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-22 23:09 UTC by _ jimdavidson
Modified: 2007-05-24 07:25 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
a thread dump (14.57 KB, text/plain)
2007-05-23 01:52 UTC, Vince Kraemer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ jimdavidson 2007-05-22 23:09:35 UTC
Install a build of NB6 (say,
netbeans-6.0-nightly-200705220000-standard-macosx-x86.tgz), taking all the defaults.

Install a build of glassfish (say, glassfish-installer-v2-b41.jar), taking all
the defaults.

Start the IDE.  Register the new App Server, taking all the defaults (i.e., do
not fill in a password).

Start the App Server.

Sometimes it works (i.e., tabs show up in output window for "Java DB Database
Process" and "Sun Java System Application Server").

More commonly, the App Server tab never appears.  Sometimes neither tab appears.
 At this point, the IDE is totally hung.  Nothing to do but "Force Quit" or "kill".

It turns out that the app server is running, confirmed by running "ps" or
browning to localhost:4848.  It's just that the IDE doesn't know it.

Looking at the app server log, I see the following:
    Application server startup complete.
		.....
    SEC5046: Audit: Authentication refused for [admin].
    |Web login failed: Login failed: javax.security.auth.login.LoginException:
Failed file login for admin.

Looks like an authentication issue.  Obviously, the IDE should report the
exception, not hang.
Comment 1 _ ludo 2007-05-22 23:56:30 UTC
Hang=p1

Seems to be a regression.
Comment 2 Vince Kraemer 2007-05-23 01:14:44 UTC
the data from the IDE's message.log and the GF server.log would be helpful
Comment 3 Vince Kraemer 2007-05-23 01:52:11 UTC
Created attachment 42666 [details]
a thread dump
Comment 4 Vince Kraemer 2007-05-23 01:54:38 UTC
was able to duplicate.

both threads are locked by j2eeserver module code.

Advise and reassign
Comment 5 Vince Kraemer 2007-05-23 03:30:50 UTC
has work-around ... enter the valid password
Comment 6 _ ludo 2007-05-23 16:32:29 UTC
workaround is not acceptable by design for some people: if you do not enter a
password it is because you want to be prompted and that the password will not be
stored on disk.

We need to understand why the IDE/plugin did not popup the credential ui...
It might be an issue on our side as well, so collaboration and ideas are welcome.
Vince, can you try to see why the popup dialog did not appear?
Comment 7 Sherold Dev 2007-05-23 16:58:09 UTC
Ludo, based on the stack trace it looks like it is my regression in j2eeserver,
I am going to fix it. Lets wait for the fix and then we will see whether the
problem will still persist.
Comment 8 Sherold Dev 2007-05-24 07:25:18 UTC
F.

Checking in org/netbeans/modules/j2ee/deployment/impl/ServerInstance.java;
/cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/impl/ServerInstance.java,v
 <--  ServerInstance.java
new revision: 1.80; previous revision: 1.79
done