cancel
Showing results for 
Search instead for 
Did you mean: 

Error 32 - Broken pipe (Write failed) in Rest Receiver Adapter

6,545

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

View Entire Topic
0 Kudos

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:

  • Check the network connectivity between the client and the server. If there's a network issue, it can cause the connection to terminate unexpectedly.
  • Increase the timeout value on the client side. Sometimes, a slow connection can cause the socket to time out and terminate the connection.
  • Make sure the server is able to handle a large number of connections. If the server is not configured to handle a lot of connections, it may close the connection if it becomes overwhelmed.
  • Implement error handling in your code. You can catch the "java.net.SocketException: Broken pipe" exception and handle it in your code. For example, you can try to re-establish the connection or log the error for debugging purposes.
  • Verify that the server is not closing the connection prematurely. Sometimes, the server may close the connection before the client has finished sending data. You can check the server logs to see if this is the case.