An HotSpot Virtual Machine Error !
Well I tried to instanciate a very simple Context :
All parameter are OK.
public boolean authenticate(String user, String password) {
Hashtable env2 = new Hashtable();
env2.put(Context.INITIAL_CONTEXT_FACTORY, INITCTX);
env2.put(Context.PROVIDER_URL, MY_HOST);
env2.put(Context.SECURITY_AUTHENTICATION, "simple");
env2.put(Context.SECURITY_PRINCIPAL,user+","+MY_SEARCHBASE);
env2.put(Context.SECURITY_CREDENTIALS,password);
try
{
DirContext initialdircontext = new InitialDirContext(env2);
initialdircontext.close();
} catch(AuthenticationException e){
errorAuthenticate = "username or password is invalid";
return false;
} catch(Exception e) {
e.printStackTrace();
return false;
}
errorAuthenticate = "authenticate successfull";
return true;
}
In JBUILDER there's no problem, all is working correctly, but when I try on my server (I call this method in a jsp) the system wait a long time and I got this message :
#
# Java version:
# HotSpot VM (mixed mode)
#
# HotSpot Virtual Machine Error, Internal Error
#
# Fatal: exception happened outside interpreter, nmethods and vtable stubs (1)
# Error ID: /CLO/Components/JAVA_HOTSPOT/Src/build/hp-ux/../../src/share/vm/runtime/sharedRuntime.cpp, 267
#
It's not the first time I create an InitialDirContext with this VM.
Help me please.
What's happened ?

