Receiving java.net.socket time-out exception read times out when trying to invoke a web service from an EJB (MDB).
 Technote (troubleshooting)
 
This document applies only to the following language version(s):
English
 
Problem(Abstract)
An EJB (MDB) trying to access web services will time-out two or three minutes after showing the following log:

[5/3/04 15:20:32:733 EDT] 145a915 enterprise I com.ibm.ws.webservices.engine.enterprise WSWS3243I: Info: Mapping Exception to WebServicesFault.

[5/3/04 15:20:32:744 EDT] 145a915 enterprise I com.ibm.ws.webservices.engine.enterprise TRAS0014I: The following exception was logged WebServicesFault
faultCode: Server.generalException
faultString: java.net.SocketTimeoutException: Read timed out
faultActor: null
faultDetail:
 
Cause
The MDB Listener is invoking the MDB when a message arrives on the listening queue.
The MDB then invokes a remote web service (synchronously) and waits for the web service to respond with the results.

The problem is that the web service is taking ten minutes to respond. By default, the WebSphere Application Server transaction time-out is set to two minutes. When the web service finally finishes and tries to respond, the MDB transaction has already been aborted (thus causing the original message to be placed back onto the queue). Since the transaction was aborted three minutes earlier, the socket connection back to the MDB is gone,

 
Resolving the problem
To fix this issue, increase the Application Server transaction time-out to allow the web service to respond.
Refer to Transaction service settings in the WebSphere Application Server Information Center for details on the transaction settings.
 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Web Services (for example: SOAP or UDDI or WSGW or WSIF)
Operating system(s): Windows
Software version: 5.0
Software edition:
Reference #: 1176613
IBM Group: Software Group
Modified date: May 31, 2006