on 2022 Dec 13 1:02 PM
Good Morning,
I am facing the below error while trying to connect to third party system.Following is the error from XPI_ Inspector.
ssl_debug(2714): Received server_hello_done handshake message.
ssl_debug(2714): Sending client_key_exchange handshake...
ssl_debug(2714): Sending change_cipher_spec message...
ssl_debug(2714): Sending finished message...
ssl_debug(2714): Received change_cipher_spec message.
ssl_debug(2714): Received finished message.
ssl_debug(2714): Session added to session cache.
ssl_debug(2714): Handshake completed, statistics:
ssl_debug(2714): Read 5116 bytes in 5 records, wrote 476 bytes in 4 records.
ssl_debug(2714): Exception sending message: java.net.SocketException: error 32 - Broken pipe (Write failed) (local port 51509 to address 10.239.5.120 (WSMZAPPPOD.wilson.sons), remote host unknown)
ssl_debug(2714): Shutting down SSL layer...
ssl_debug(2714): Ignoring exception shutting down: java.net.SocketException: error 32 - Broken pipe (Write failed) (local port 51509 to address 10.239.5.120 (WSMZAPPPOD.wilson.sons), remote host unknown)
ssl_debug(2714): Read 0 bytes in 0 records, 0 bytes net, 0 average.
ssl_debug(2714): Wrote 344826 bytes in 22 records, 344188 bytes net, 15644 average.
ssl_debug(2714): Closing transport...
ssl_debug(2714): Closing transport...
ssl_debug(2714): Closing transport...
Catching java.net.SocketException: error 32 - Broken pipe (Write failed) (local port 51509 to address 10.239.5.120 (WSMZAPPPOD.wilson.sons), remote host unknown)
I already applied the steps from the note https://launchpad.support.sap.com/#/notes/2604240 but it didn't work
I must inform you that this is a very large json, as I am sending a file in binary format
Any idea ?
Thank´s
Request clarification before answering.
This error occurs in Java when a connection between a client and a server terminates unexpectedly. It indicates that the server has stopped reading from the socket, and any subsequent writes to the java socket will result in a broken pipe error. This typically happens when the server has crashed or when the client is no longer able to communicate with the server, either due to a network issue or because the server has closed the connection.
solutions:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ti_sap_abap,
"This tag is filled with the binary content of an excel file generated in an abap program, through the cl_salv_bs_tt_util=>if_salv_bs_tt_util~transform method and the SCMS_XSTRING_TO_BINARY function." -> split this binary content into two parts and then send two payloads to PI. A lot depends on how abap code is populating the contents and whether split is possible or not. If this is not possible then you need to take a call with third party WS team. Ask them threshold value of message size and ask them to increase the same.
Regards
Anupam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Good morning anupam.ghosh2,
The scenario consists of consuming an external api with the following layout:
{
"AWSAccessKeyId": "XXXXXXXXXXXXXXX",
"Key": "rebocadores/conta_a_receber/proxy.xls",
"x-amz-security-token": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"policy": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"signature": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"file": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
The issue is in the tag "file". This tag is filled with the binary content of an excel file generated in an abap program, through the cl_salv_bs_tt_util=>if_salv_bs_tt_util~transform method and the SCMS_XSTRING_TO_BINARY function.
After filling in the content, the abap program calls the PI, which generates the json with that content.
The external api expects the entire contents of the file in this tag "file". I don't understand how I could split this content.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ti_sap_abap,
The split has to be made at source, if possible.
Webservice has not been designed for large payloads. From the source server itself multiple messages needs to be generated. You have not explained the entire scenario on how this has been designed.
Once you explain the entire scenario, then perhaps, forum members suggest good solution.
Regards
Anupam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Good morning anupam.ghosh2,
Thank´s for your answer, but how can i split the payload before sending to target ? The payload is large due to a field, in which the file is sent in binary format. How could I split the contents of that field?
Ps. Small payloads work fine.
Tank´s
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ti_sap_abap,
Large payload is getting rejected at target sever.
Process small payload to test connection.
Only solution is to split the payload before sending to target.
Regards
Anupam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
12 | |
9 | |
8 | |
8 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.