This discussion is archived
0 Replies Latest reply: Jan 15, 2013 5:01 AM by ChandraSG RSS

CORBA COMM_FAILURE Exception from java client

ChandraSG Newbie
Currently Being Moderated
I develop a client server program using TAO. Jdk1.6 is used in client part and c++ is used in server part.TAO version is 2.1.0.Native orb is used in client.
when receiving large data from server , COMM_FAILURE exception occurs in client.

here is the stack dump :
Jan 15, 2013 11:48:51 AM com.sun.corba.se.impl.transport.SocketOrChannelConnecti
onImpl readFully
WARNING: "IOP00410215: (COMM_FAILURE) Read of full message failed : bytes reques
ted = 800,024 bytes read = 747,343 max wait time = 3,000 total time spent waitin
g = 3,190"
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 215 completed: No
at com.sun.corba.se.impl.logging.ORBUtilSystemException.transportReadTim
eoutExceeded(ORBUtilSystemException.java:2600)
at com.sun.corba.se.impl.logging.ORBUtilSystemException.transportReadTim
eoutExceeded(ORBUtilSystemException.java:2626)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.readFul
ly(SocketOrChannelConnectionImpl.java:628)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.read(So
cketOrChannelConnectionImpl.java:559)
at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.readGIOPBod
y(MessageBase.java:413)
at com.sun.corba.se.impl.transport.CorbaContactInfoBase.finishCreatingMe
ssageMediator(CorbaContactInfoBase.java:183)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.finishR
eadingBits(SocketOrChannelConnectionImpl.java:380)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.doWork(
SocketOrChannelConnectionImpl.java:1208)
at com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.
performWork(ThreadPoolImpl.java:471)
at com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.
run(ThreadPoolImpl.java:500)

After searching the internet , I found System.setProperty("com.sun.CORBA.transport.ORBTCPReadTimeouts", "100:60000:0:20") have to be used to solve the problem.

After using this , my problem is solved . But receiving larger data than previous one , same COMM_FAILURE exception occurs in client.


Can anyone provide guidance on
1. is it possible to disable timeout property

2. If not, how to get the optimize value of the property "ORBTCPReadTimeouts" .

Regards
Chandra Shekhar

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points