I am experiencing a similar problem to the one outlined below.

A user will log in using a servlet driven form.  When calling a session bean
for the first time, the resident servlet passes the username 'guest' instead
of the proper username and password as indicated in the principals and
credentials.

I have also been informed that orion will cache the username and password
unless a certain property is set.  The property, as I was told, is
"dedicated.connection" and it must be set to "true" however, this does not
seem to work.

Any suggestions or help?

Matt MacGillivray
Technical Developer
Delfour Corporation
(905) 415-9779 x2021
[EMAIL PROTECTED]


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Vidur Dhanda
Sent: Friday, October 20, 2000 1:50 PM
To: Orion-Interest
Subject: RP: How to recover from incorrect user password


Sorry, I forgot to attach the stacktrace.

Hello,

I want to force the user to enter a username/password when using the
application.  When the application creates a new InitialContext, Orion
prompts for a username/password. However, if the user enters an
incorrect password, Orion correctly throws a Security exception.  When
the application attempts the process again, Orion does not prompt for a
username/password but immediately throws a SecurityException.  Is this a
bug?

On a related note, after obtaining an InitialContext, if the application
closes it, and then tries to create another InitialContext, it gets a
NPE.  Is this related to the problem described above?
Here's the stacktrace:
java.lang.NullPointerException:

        at
com.evermind.server.rmi.RMIInitialContextFactory.getInitialContext(JAX)

        at
com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext
(JAX)

        at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668)

        at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)

        at javax.naming.InitialContext.init(InitialContext.java:222)

        at javax.naming.InitialContext.<init>(InitialContext.java:198)

        at com.epistemic.km.KMClient.getContext(KMClient.java:70)


Thanks,
Vidur


Reply via email to