users@glassfish.java.net

Exception during Client / Server communication

From: <glassfish_at_javadesktop.org>
Date: Mon, 07 Jun 2010 07:25:43 PDT

We are running GF 2.1 as server for our Java clients. Recently we discovered some problems which we could not explain.

When starting certain functions from the clients we get the following error:

GRAVE: IOP5029: Exception occurred creating authentication token
java.lang.NullPointerException
        at com.sun.enterprise.iiop.security.GSSUPToken.<init>(GSSUPToken.java:18
0)
        at com.sun.enterprise.iiop.security.GSSUPToken.getClientSideInstance(GSS
UPToken.java:108)
        at com.sun.enterprise.iiop.security.SecClientRequestInterceptor.createAu
thToken(SecClientRequestInterceptor.java:164)
        at com.sun.enterprise.iiop.security.SecClientRequestInterceptor.send_req
uest(SecClientRequestInterceptor.java:298)
        at com.sun.corba.ee.impl.interceptors.InterceptorInvoker.invokeClientInt
erceptorStartingPoint(InterceptorInvoker.java:271)
        at com.sun.corba.ee.impl.interceptors.PIHandlerImpl.invokeClientPIStarti
ngPoint(PIHandlerImpl.java:348)
        at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.begin
Request(CorbaClientRequestDispatcherImpl.java:284)
        at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaC
lientDelegateImpl.java:181)
        at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.priv
ateInvoke(StubInvocationHandlerImpl.java:186)
        at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invo
ke(StubInvocationHandlerImpl.java:152)
        at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELS
tubBase.java:225)
        at com.sun.ejb.codegen._GenericEJBHome_Generated_DynamicStub.create(com/
sun/ejb/codegen/_GenericEJBHome_Generated_DynamicStub.java)
        at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.sun.ejb.EJBUtils.lookupRemote30BusinessObject(EJBUtils.java:372)
        at com.sun.ejb.containers.RemoteBusinessObjectFactory.getObjectInstance(
RemoteBusinessObjectFactory.java:74)
        at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
        at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:414
)
        at javax.naming.InitialContext.lookup(Unknown Source)

The error is reproducible, but does not always appear.

To make things stranger:
- the error seems to disappear when we put the CORBA logging to FINE on the server. Only thing i can imagine is that this will slow things down on the server.
- only certain clients seem to have the problem. It looks like it only happens on the more modern, faster client pc's.

As current work-around we have the CORBA logging put to FINE on the server.

We let our clients connect with the -Dcom.sun.appserv.iiop.endpoints=9.9.9.9:999 option to the server. If we change this to -Dorg.omg.CORBA.ORBInitialHost=9.9.9.9 and -Dorg.omg.CORBAInitialPort=9999 the error disappears again. We found out that the endpoints option should be used for a clustered environment, and the two corba options when connecting to a single server instance (as we are using). But now we aren't sure that this is the solution for this problem or that it's just a work-around like turning on the corba logging (which mysterious seems to fix the problem)

Does anyone recognize the error?
Can anyone explain this behavior?
Do you think changing the options (from endpoints to the 2 corba options) will solve the problem?
 
We are working with GF 2.1 build b60e-fcs, we already tried updating to GF 2.1.1 final, but that did not solved the problem.

Any help is greatly appreciated.
[Message sent by forum member 'boess']

http://forums.java.net/jive/thread.jspa?messageID=473151