• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hi guys please help me in removing this bug......

 
gopal venkateshamurthy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to call a remote EJB from a client...
Here is my client code...

InitialContext ic = new InitialContext();
Object o= ic.lookup("iiop://127.0.0.1:3700/ejb/TellHelloBean");
TellHelloRemoteHome helloHome = (TellHelloRemoteHome) PortableRemoteObject.narrow(o, TellHelloRemoteHome.class);
TellHelloRemoteBusiness obj=helloHome.create();
System.out.println("" + obj.printHello());

If try this it is working prperly...
But if i change the ip address to 127.0.0.1 to my real ip address like 172.20.34.218...It is giving this error:

Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: 172.20.33.218; port: 3700"
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No

 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure that its your IP ?
Otherwise I do not see anything wrong in this.Even your machine name should be fine.
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you able to access the server with this IP address (172.20.33.218) ?

What container are you using ?
 
gopal venkateshamurthy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi iam sure my ip addres is 172.20.33.218....

I am using netbeans5.5 and sun one 9.0
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi iam sure my ip addres is 172.20.33.218....


My question is not that. Are you able to access your server from your own machine with the IP address 172.20.33.218 ? Something like http:\\172.20.33.218:3700\myApp

[EDIT]

added port number to URL
[ April 27, 2007: Message edited by: John Meyers ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!