Skip to Content
0
Former Member
Aug 08, 2006 at 01:47 PM

ClassCastException

27 Views

Hi,

I had deployed LDAP adapter, it is running fine.

Now, I am trying to access the this adapter.

I am getting LDAPConnectionFactory using JNDI lookup.

When I cast to IConnectoinFactory, this is giving ClassCastException.

This is code.

Object obj = initctx.lookup("deployedAdapters/DSMLFactory/shareable/DSMLFactory");

IConnectionFactory connectionFactory = (IConnectionFactory)obj;

Error:

ClassCastException.

Note: LDAPConnectionFactory implements IConnectionFactory.

Regards,

Krishna