cancel
Showing results for 
Search instead for 
Did you mean: 

Deployable webservice client - ClassCastException

Former Member
0 Kudos

Hi,

We are trying to implement a WebService Client for the secure Webservice. I have created a deployable proxy client and deployed it on the server, our basis has attached the X509 certificate to the proxy in VA. Test Destination is successful. I have exposed the client as public part in the ws client dc project.I have created a used dc relationship to the webservice client project in my EP Component project. I'm trying to use this client in a AbstractPortal component with following code

SECQANDA seq = (SECQANDA) ctx.lookup("<JNDI location");

I get a ClassCastException on this line

java.lang.ClassCastException: <package>.SECQANDAImpl incompatible with <package>.SECQANDA

Have anyone faced this problem? How do I resolve this error?

Appreciate any help.

Thanks,

Giri.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Use an Object to collect the return value from lookup method.

Then check wether that object is null/empty etc.

if not then cast that object to ur required class object.

Thanks,

Anand

Former Member
0 Kudos

Hi Anand,

Thanks for your response. I have already checked that object for null - it is not. The problem is I dont have this SECQANDAImpl class that implements the SECQANDA interface in my DC. This implementation class gets generated when I deploy the deployable proxy object. Though I should be able to cast to the interface, it is throwing this error. Any other ideas?

Giri.