Skip to Content
author's profile photo Former Member
Former Member

Problems during service lookup

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

And it comes from .invokeToString( Object proxy)

Implemented interfaces are:

interface java.rmi.Remote


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 $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?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 29, 2004 at 08:11 AM

    Hi Sergei,

    I am having the same problem with accessing DestinationService.

    Did you find any solution?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.