cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP Receiver communication channel Error

Former Member
0 Kudos

Hello All

When SOAP communication channel is trying to post the message to WEBSERVICE it is getting read timeout exception.

This is synchronous call. When the message size is 2KB it is posted successfully, but the error is coming when it trying to post the 2MB message.

The error in the CC monitoring as below

SOAP: error occured: com.sap.engine.interfaces.messaging.api.exception.MessagingException:

java.net.SocketTimeoutException: Read timed out

Adapter Framework caught exception: java.net.SocketTimeoutException: Read timed out

Delivering the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.net.SocketTimeoutException: Read timed out. Setting message to status failed.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

The WS was giving slow response

Former Member
0 Kudos

Hi Ram

Iam also facing the similar problem, What you did to increase the WS response time?

Thanks

Amol

Former Member
0 Kudos

are you able to fix the issue ?

All you gotta do is go to CC, in Module tab, select "XI.Timeout" in parameter name and enter the value in milli seconds .

FYI the default time out is 5 mins (300000)

Former Member
0 Kudos

hello all,

Already i have tried module parameter in the CC but that is not helped.

Thnese module parameters are used to If webservice is taking time to provide response.

But in my case the AF is not connected to webservice.

It seems to be timeout exception is occuring when the message is putting in af queue from IS.

com.sap.engine.interfaces.messaging.api.exception.MessagingException

former_member204873
Contributor
0 Kudos

Please check point no 2.2.7 of the doc:

http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/c059d583-a551-2c10-e095-eb5d95e03747

you can try to increase xiadapter.inbound.timeout.default in NWA, Go to->Operation Management->Systems-> Start & Stop -> Java Services -> (Under Related Tasks) Java System Properties.

Otherwise copy paste MDT(Audit Logs) of your channel.

Former Member
0 Kudos

Changes are made as per 2.2.7 section of the document. Changed the parameter value to 10mins(6000000)But still no use

Time Stamp Type Description

2010-01-07 09:52:08 Information The message was successfully received by the messaging system. Protocol: XI URL: http://pmichsappiq26.app.pmi:8026/MessagingSystem/receive/AFW/XI Credential (User): PIIS_PIQ

2010-01-07 09:52:08 Information Using connection SOAP_http://sap.com/xi/XI/System. Trying to put the message into the request queue.

2010-01-07 09:52:08 Information Message successfully put into the queue.

2010-01-07 09:52:08 Information The message was successfully retrieved from the request queue.

2010-01-07 09:52:08 Information The message status was set to DLNG.

2010-01-07 09:52:08 Information Delivering to channel: CC_SOAP_Rcv

2010-01-07 09:52:08 Information SOAP: request message entering the adapter with user J2EE_GUEST

2010-01-07 10:02:10 Error SOAP: call failed: java.net.SocketTimeoutException: Read timed out

2010-01-07 10:02:10 Error SOAP: error occured: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.net.SocketTimeoutException: Read timed out

2010-01-07 10:02:10 Error Adapter Framework caught exception: java.net.SocketTimeoutException: Read timed out

2010-01-07 10:02:10 Error Delivering the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.net.SocketTimeoutException: Read timed out. Setting message to status failed.

2010-01-07 10:02:10 Error The message status was set to FAIL.

Edited by: Rams on Jan 7, 2010 11:25 AM

former_member204873
Contributor
0 Kudos

As per audit log:

2010-01-07 09:52:08 Information SOAP: request message entering the adapter with user J2EE_GUEST

2010-01-07 10:02:10 Error SOAP: call failed: java.net.SocketTimeoutException: Read timed out

It is getting timed out after 600 secs, check if web service you are trying to connect through SOAP adapter is up or not.

Former Member
0 Kudos

when i am sending smaller size 1.5MB message to Webservice it is getting processed from PI. But failing for 2.5MB message.

The Audit log for success message is below. This message size is 1.5MB.

Time Stamp Type Description

2010-01-07 10:11:44 Information The message was successfully received by the messaging system. Protocol: XI URL: /MessagingSystem/receive/AFW/XI Credential (User): PIIS_PIQ

2010-01-07 10:11:44 Information Using connection SOAP_http://sap.com/xi/XI/System. Trying to put the message into the request queue.

2010-01-07 10:11:44 Information Message successfully put into the queue.

2010-01-07 10:11:44 Information The message was successfully retrieved from the request queue.

2010-01-07 10:11:44 Information The message status was set to DLNG.

2010-01-07 10:11:44 Information Delivering to channel: CC_SOAP_Rcv

2010-01-07 10:11:44 Information SOAP: request message entering the adapter with user J2EE_GUEST

2010-01-07 10:20:55 Information SOAP: completed the processing

2010-01-07 10:20:55 Information SOAP: continuing to response message 576b8330-fb76-11de-cbcf-00237da48188

2010-01-07 10:20:55 Information The message was successfully delivered to the application using connection SOAP_http://sap.com/xi/XI/System.

2010-01-07 10:20:55 Information The message status was set to DLVD.

Edited by: Rams on Jan 7, 2010 11:45 AM

former_member204873
Contributor
0 Kudos

As 1.5 MB is taking 550 secs, for 2.5 MB pls try to increase timeout to 20 mins for both SOAP reciever channel as well as xiadapter.inbound.timeout.default parameter.

Former Member
0 Kudos

Changed to 20mins but still no luck.

any help regarding this?

former_member187339
Active Contributor
0 Kudos

Hi Ram,

I am not sure whether you tried this or not (its a big forum thread and i am lost). Check the note

Note 856597 - FAQ: XI 3.0 / PI 7.0 / PI 7.1 SOAP Adapter

and see the question Can I configure the timeout value of my receiver adapter?. Do as suggested there.

Regards

Suraj

Former Member
0 Kudos

Hi,

I have configured this parameter also in my SOAP adapter, but no change.

former_member204873
Contributor
0 Kudos

Can u check & try to call your webservice with 2.5 MB payload without using PI and see how much time is it taking to process this payload.

Former Member
0 Kudos

Hi Mayank,

It took 12mins when I am directly processed 2.5MB message in the WS.

When I changed the parameter value to 20mins in PI

i got the below error.

<SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">

<SAP:Category>XIServer</SAP:Category>

<SAP:Code area="INTERNAL">CLIENT_RECEIVE_FAILED</SAP:Code>

<SAP:P1>402</SAP:P1>

<SAP:P2>ICM_HTTP_TIMEOUT</SAP:P2>

<SAP:P3>(See attachment HTMLError for details)</SAP:P3>

<SAP:P4 />

<SAP:AdditionalText />

<SAP:Stack>Error while receiving by HTTP (error code: 402, error text: ICM_HTTP_TIMEOUT) (See attachment HTMLError for details)</SAP:Stack>

<SAP:Retry>N</SAP:Retry>

</SAP:Error>

Edited by: Rams on Jan 7, 2010 4:03 PM

Former Member
0 Kudos

Similar issues discussed :

Regards ,

former_member204873
Contributor
0 Kudos

hi ,

Please check the link below to understand various timeout's in PI:

http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/c059d583-a551-2c10-e095-eb5d95e03747

Thanks!!

Former Member
0 Kudos

You can increase time out in CC.

Refer to SAP Note 856597 for more details

Cheers