cancel
Showing results for 
Search instead for 
Did you mean: 

SCPI Fault: Could not send Message. Connection reset Error 2019.

AlexSampayo2
Explorer

Hi Experts,

I am having this error in CPI when calling a webservice in SAP from SCPI.

org.apache.cxf.interceptor.Fault: Could not send Message., cause: java.net.SocketException: Connection reset
The problem that i have is that the interface runs every 30 min, and sometimes it fails and sometimes it works and i cant find why is it failing.

I set up a trace before it runs and i fund that the error happens when calling one webservice using request reply from CPI.

Sometimes it works 2 or 3 times in a row and then fails one, or even fails several times in a row and then works like a charm.

Can you please help me to troubleshoot this and find a solution? I don know what to do or where to look.

I am calling a custom webservice in SAP using a Request-Reply SOAP call from CPI.
I have other interfaces calling ws and those are working fine, even this interface was working in the past.


I have checked some notes that appear here under the same error and I think i have read all the question with the similar subject and all the notes are old, i have the latest support package in SAP and i am using CPI web UI for several interfaces.
And I don't think the responses apply for CPI with 2019 support packages.


Thanks for your help,
Cheers,
Alex

bestantetholits
Explorer
0 Kudos

Hi,

We suddenly encounter this same error when calling a webservice from our SCPI iflow.

"org.apache.cxf.interceptor.Fault: Could not send Message., cause: java.net.SocketException: Connection reset".

We noticed that the integration flow is not using http session reuse. Could it be the cause of this error?

Thanks in advance,

Angelito

Accepted Solutions (0)

Answers (7)

Answers (7)

subhojit_saha2
Participant

Hi Alex,

Are you calling Request Reply in Loop . Or are there multiple Request Reply to same target system.

Plus what are you setting the value of parameter:

HTTP Session Reuse: ?? , is it set to none , or exchange or message ?

.

May be because of any of the above, the header properties become an issue due to size or non necessary properties getting passed from previous call. I am not sure but just a suggestion. after every request reply step please try to delete unneeded headers, which can be an issue, using content modifier. Like :

AlexSampayo2
Explorer

Hi subhojit.saha2 , Thanks for your quick response!
I am quite new to SCPI and there are still so many things that i don't know.

1- The request reply is not part of a loop
2- I don't know where is the value of the parameter.
3- HTTP Session reuse = None
4- If i type the message header the same way you are doing it in your screen. Will it work in my Iflow?

This error is happening in production only, so I will request permission to change the HTTP Session reuse.


Thanks for your help,
Cheers,

Alex

NickSYYang
Active Participant

I am facing same error (org.apache.cxf.interceptor.Fault: Could not send Message., cause: java.net.SocketException: Connection reset) in a recurring SOAP API call in my CPI iFlow and remove header solved the problem.

Thanks subhojit.saha2

lakshmiprasanna
Discoverer
0 Kudos

Hello alejandro.sampayo

Hope you are doing well !

Were you able to find a resolution to the above issue?

We are also facing the exact issue, and no much luck.

Many Thanks,

Regards,

Lakshmi Prasanna.

AlexSampayo2
Explorer
0 Kudos

Hi Experts,

I have tried all this options and more.

I believe the SAP call takes too long and the connection is closed by SCPI. Is that possible?

My SAP SOAP WS takes 7 minutes to run and return 49999 records to SCPI. Then SCPI process those records...
I dont have a loop or anything like that.
I didnt came back with this earlier because in Production sometime works and sometimes fails... and neither myself, basis or Networking can figure out why.
just today, Networking says that SCPI is sending a FIN request to the webdispatcher...

Is there a way to avoid that?

Thanks for your help,
Cheers,

Alex

subhojit_saha2
Participant
0 Kudos

The content modifier should be after the 'request - reply' step not before. The delete should be there inside content modifier and the content modifier after request reply.

subhojit_saha2
Participant
0 Kudos

If my solution solved your problem kindly press like to my solution ..... 🙂

BR,

Subhojit

AlexSampayo2
Explorer
0 Kudos

Hi subhojit.saha2 this is what i have done:


And when i tested it i had the same error.
So i added this:


And i still get the error:
Error Details

org.apache.cxf.interceptor.Fault: Could not send Message., cause: java.net.SocketException: Connection resetSo did I do it right?
Cheers,
Alex
subhojit_saha2
Participant
0 Kudos

Hi Alex,

We all are new here ... 🙂 . Just add a content modifier step after your request response and do as given in screen shot. This will delete all headers that came back from your reply.

Also click on any white space outside Integration Process and the overall project properties are displayed below. Here in 'Config' tab you will find Http session reuse tab. Set it to "exchange".

And if the error persists I would suggest opening a ticket with CPI team .

BR,

Subhojit