• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

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

 
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

 
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.
 
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 ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!