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 69224 - entering the wrong master password isn't flagged as user error
Summary: entering the wrong master password isn't flagged as user error
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 8 (show other bugs)
Version: 5.x
Hardware: Macintosh Mac OS X
: P2 blocker (vote)
Assignee: _ ludo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-24 05:41 UTC by Vince Kraemer
Modified: 2005-11-24 21:02 UTC (History)
0 users

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 Vince Kraemer 2005-11-24 05:41:30 UTC
I installed 8.2, then removed the master-password file or domain1.

I register the instance, then attempted to start it.

The 'Enter Master password' dialog opened and I just pressed the okay button.

The start is attempted.  I end up with an error in the server log, but no other dialog message.

The progress bar (in the lower right corner) is barber-poling and I don't have a way to stop it.

exception from server log:

java.lang.ExceptionInInitializerError
        at com.sun.enterprise.security.SecurityLifecycle.onInitialization(SecurityLifecycle.java:59)
        at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:215)
        at com.sun.enterprise.server.PEMain.run(PEMain.java:284)
        at com.sun.enterprise.server.PEMain.main(PEMain.java:220)
Caused by: java.lang.IllegalStateException: Keystore was tampered with, or password was incorrect
        at com.sun.enterprise.security.SecuritySupportImpl.loadStores(SecuritySupportImpl.java:80)
        at com.sun.enterprise.security.SecuritySupportImpl.<init>(SecuritySupportImpl.java:48)
        at com.sun.enterprise.security.SecuritySupportImpl.<init>(SecuritySupportImpl.java:43)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at java.lang.Class.newInstance0(Class.java:350)
        at java.lang.Class.newInstance(Class.java:303)
        at com.sun.enterprise.pluggable.PluggableFeatureFactoryBaseImpl.invoke
(PluggableFeatureFactoryBaseImpl.java:53)
        at $Proxy0.getSecuritySupport(Unknown Source)
        at com.sun.enterprise.security.SecurityUtil.getSecuritySupport(SecurityUtil.java:338)
        at com.sun.enterprise.security.SSLUtils.<clinit>(SSLUtils.java:72)
Comment 1 _ ludo 2005-11-24 11:08:38 UTC
Bu I guess this is a P2 bug on AS 8.2, no?
I think I filed one a long time ago...
http://bt2ws.central.sun.com/CrPrint?id=6344098 
They said not reproducible. SIC...
Please follow up
Comment 2 _ ludo 2005-11-24 11:10:36 UTC
Bu I guess this is a P2 bug on AS 8.2, no?
I think I filed one a long time ago...
http://bt2ws.central.sun.com/CrPrint?id=6344098 
They said not reproducible. SIC...
Please follow up
Comment 3 Vince Kraemer 2005-11-24 14:09:05 UTC
8.2 is fine when you use the PUBLIC interface; asadmin.  Entering an incorrect
master-password produces a fine message...

[2x2ghzpmac:~/sjsas8.2] vbk% bin/asadmin start-domain
Starting Domain domain1, please wait.
Log redirected to /Users/vbk/sjsas8.2/domains/domain1/logs/server.log.
Please enter the master password>
Password entered is invalid
CLI156 Could not start the domain domain1.

This only appears to be an issue due to our use of startserv.
Comment 4 _ ludo 2005-11-24 16:53:51 UTC
Good.
So when the mpw is not known, we'll revert to the slow public interface.
Comment 5 _ ludo 2005-11-24 21:02:34 UTC
Fixed cvs commit -m "Fix for
http://www.netbeans.org/issues/show_bug.cgi?id=69224" -- StartSunServer.java (in
directory
C:\acvs\nb_all\serverplugins\sun\appsrv81\src\org\netbeans\modules\j2ee\sun\ide\j2ee\)
Checking in StartSunServer.java;
/cvs/serverplugins/sun/appsrv81/src/org/netbeans/modules/j2ee/sun/ide/j2ee/StartSunServer.java,v
 <--  StartSunServer.java
new revision: 1.16; previous revision: 1.15
done

We could improved the error dialog a bit now...(less text)