Meaningless Drivel is fun!
The moose likes EJB and other Java EE Technologies and the fly likes pls help me in solving CommunicationException: Request: 1 cancelled Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "pls help me in solving CommunicationException: Request: 1 cancelled" Watch "pls help me in solving CommunicationException: Request: 1 cancelled" New topic

pls help me in solving CommunicationException: Request: 1 cancelled

p anish
Ranch Hand

Joined: Feb 26, 2005
Posts: 32
how can i lookup a session bean from the client side...........i am using sun appserver..............

this is my code.................[B]

private final static String JNDI_NAME="ejb/LmsBean";
private static String url="ldap://localhost:4848";

Hashtable h=new Hashtable();
System.out.println("Before Loading Context in Delegate");
Context ctx=new InitialContext(h);
System.out.println("Loaded Context in Delegate");

Object obj=ctx.lookup(JNDI_NAME);
System.out.println("Loaded Object in Delegate");

System.out.println("Before Loading Home in Delegate");

LmsHome home = (LmsHome )PortableRemoteObject.narrow(obj,com.parx.lms.controller.LmsHome.class);
System.out.println("Loaded Home in Delegate");

lms = home.create();

System.out.println("Loaded remote in Delegate");

[B]and i got the exception........

Inside Client before calling delegate
Before Loading Context in Delegate
javax.naming.CommunicationException: Request: 1 cancelled
javax.naming.CommunicationException: Request: 1 cancelled
at com.sun.jndi.ldap.LdapRequest.getReplyBer(
at com.sun.jndi.ldap.Connection.readReply(
at com.sun.jndi.ldap.LdapClient.ldapBind(
at com.sun.jndi.ldap.LdapClient.authenticate(
at com.sun.jndi.ldap.LdapCtx.connect(
at com.sun.jndi.ldap.LdapCtx.<init>(
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(

at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.ja
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.jav
at javax.naming.spi.NamingManager.getInitialContext(
at javax.naming.InitialContext.getDefaultInitCtx(
at javax.naming.InitialContext.init(
at javax.naming.InitialContext.<init>(
at com.parx.lms.lmsdelegate.LmsDelegate.getController(
at com.parx.lms.lmsdelegate.LmsDelegate.addUserDelegate(
at com.parx.lms.client.consoleClient.Client.main(Unknown Source)

pls go tru the exception and pls help.........
Ken Loh
Ranch Hand

Joined: Feb 16, 2005
Posts: 190
Your question has been answered in the same posting of yours at
I agree. Here's the link:
subject: pls help me in solving CommunicationException: Request: 1 cancelled
It's not a secret anymore!