Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

getHandle Error  RSS feed

Ashish Shinde
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am facing a problem while invoking getHandle() method on remote.
A client program does a remote lookup to Stateless SB. Since it is to be used frequently, I have used the getHandle method to cache the reference.
However the EJB on this server throws NullPointerException at
exactly the same point where getHandle is called.
The stack trace is:
java.lang.NullPointerException at weblogic.ejb20.internal.HandleImpl.readExternal(
at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO at weblogic.rmi.internal.ObjectIO.readObject(
at weblogic.rmi.internal.BasicRemoteRef.unmarshalReturn(BasicRemoteRef.j
ava:233) at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR at weblogic.rmi.internal.ProxyStub.invoke(
at $Proxy2.getHandle(Unknown Source)

However this works fine for another instance of same application on other server.

Note that there is no clustering used anywhere.

I want to know is there some console or server setting which is causing the problem.

From the stacktrace my primary guess is that the server is not able to serialize the handle.

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!