Skip to Content
0
Former Member
Sep 06, 2004 at 09:19 AM

Problems during service lookup

35 Views

Hello ,

I have some weird problem using "keystore" service.

In the normal way I make this call and things look good

InitialContext ctx = new InitialContext();

o = (Object) ctx.lookup("keystore");

manager = (KeystoreManager) o;

the result of the lookup is KeyStoreManagerWrapperImpl and the cast works fine.

But there are cases when the result of the lookup() call is rather different. Then I get

$Proxy4 object which is useless in the latter approach

some details of this object may be a bit prompting:

I see this in the debuger

RMI_P4: Dynamic Stub:com.sap.engine.services.keystore.KeyStoreManagerImpl

And it comes from

com.sap.engine.services.rmi_p4.reflect.LocalInvocationHandler .invokeToString( Object proxy)

Implemented interfaces are:

interface java.rmi.Remote

interface com.sap.engine.services.rmi_p4.RemoteRef

Available methods are :

public final int $Proxy4.hashCode()

public final boolean $Proxy4.equals(java.lang.Object)

public final java.lang.String $Proxy4.toString()

public final com.sap.engine.services.rmi_p4.RemoteObjectInfo $Proxy4.getObjectInfo()

I tried to get the KeystoreManagerImpl which I see in the private members, but no luck 😔

What to do?

What does this mean that I get this Proxy4 instance insted of KeyStoreManagerWrapperImpl?

is there any problem with the service? How should this be fixed?