CORBA CLIENT NO RESOURCE EXCEPTION
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   mandy_singh
Posted On:   Thursday, March 12, 2009 09:13 AM

I have developed a simple corba client to connect to a IACC server. But while initiating a connection to the server I am getting following exception. Please help... org.omg.CORBA.NO_RESOURCES: 10.x.x.x:900 in use Minor: 0 (0). Completed: not completed at gnu.CORBA.gnuRequest.submit(libgcj.so.7rh) at gnu.CORBA.IorDelegate.invoke(libgcj.so.7rh) at org.omg.CORBA.portable.ObjectImpl._invoke(libgcj.so.7rh) at org.omg.CosNaming._NamingContextExtStub.resolve_str(libgcj.so.7rh) Here 10.x.x.x is my own server. My client code is: Server _mServer=null; org.omg.CORBA.Object _obj = null; Properties iacc_properties = System.g   More>>

I have developed a simple corba client to connect to a IACC server.
But while initiating a connection to the server I am getting following exception. Please help...

org.omg.CORBA.NO_RESOURCES: 10.x.x.x:900 in use Minor: 0 (0). Completed: not completed

at gnu.CORBA.gnuRequest.submit(libgcj.so.7rh)

at gnu.CORBA.IorDelegate.invoke(libgcj.so.7rh)

at org.omg.CORBA.portable.ObjectImpl._invoke(libgcj.so.7rh)

at org.omg.CosNaming._NamingContextExtStub.resolve_str(libgcj.so.7rh)


Here 10.x.x.x is my own server.


My client code is:


			
Server _mServer=null;
org.omg.CORBA.Object _obj = null;
Properties iacc_properties = System.getProperties();
String iacc_nsref = "corbaloc:iiop:1.2@" + ip +":"+ port +"/NameService";
iacc_properties.put( "org.omg.CORBA.ORBInitRef", iacc_nsref );
Sring iacc_name = "IAMDN_ONM" +"/"+ "IACC_Server";
ORB orb = ORB.init(args, iacc_properties);
org.omg.CORBA.Object objRef=null;
try {
objRef = orb.resolve_initial_references("NameService");
} catch (InvalidName ex) {
ex.printStackTrace();
}
NamingContextExt ncRef = NamingContextExtHelper.narrow(objRef);

try {
_obj = ncRef.resolve_str(iacc_name);//At this point the exception is coming
} catch (CannotProceed ex) {
ex.printStackTrace();
} catch (org.omg.CosNaming.NamingContextPackage.InvalidName ex) {
ex.printStackTrace();
} catch (NotFound ex) {
ex.printStackTrace();
}catch(Exception ex){
ex.printStackTrace();
}
_mServer = ServerHelper.narrow(_obj);
   <<Less
About | Sitemap | Contact