Showing posts with label my thanks to The Google. Show all posts
Showing posts with label my thanks to The Google. Show all posts

Friday, September 26, 2008

Timeout bug with Corba and Java

Just in case this helps anyone searching The Google:

If you see an error message like this (snipped):

WARNING: (COMM_FAILURE) Read of full message failed : bytes requested = X bytes read = Y max wait time = 3,000 total time spent waiting = 3,190

and are using Java 1.5+ with CORBA, then be sure to check out this post.

Essentially, it involves a timeout value on a socket. Changing this property:

com.sun.CORBA.transport.ORBTCPReadTimeouts

is the key, as described in the linked post. Mercifully, we came across this quickly during a recent troubleshooting. It could have consumed days.