Skip to Content
avatar image
Former Member

HTTP connection error: connection reset

After patching our SAP PI 7.3 environment we receive the following error trying to connect via HTTPS:

Before the upgrade everything was working fine, so we can exclude firewalls and other issues. Also the certificate is still installed in the Netweaver keystore.

Below the exception from the log files and the code raising this error.

Error in executePost()org.w3c.www.protocol.http.HttpException: Connection reset
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at iaik.security.ssl.Utils.a(SourceFile:289)
at iaik.security.ssl.B.e(SourceFile:350)
at iaik.security.ssl.y.f(SourceFile:365)
at iaik.security.ssl.n.b(SourceFile:730)
at iaik.security.ssl.n.a(SourceFile:1501)
at iaik.security.ssl.y.d(SourceFile:784)
at iaik.security.ssl.SSLTransport.startHandshake(SourceFile:571)
at iaik.security.ssl.SSLTransport.getOutputStream(SourceFile:650)
at iaik.security.ssl.SSLSocket.getOutputStream(SourceFile:390)
at org.w3c.www.protocol.http.HttpBasicConnection.a(SourceFile:463)

HttpURLConnection connection = null;   <br>SecureConnectionFactory connectionFactory = SecureConnectionFactory         .getDefault();   <br>URL url = new URL(targetURL);   <br>connection = connectionFactory.createURLConnection(url.toExternalForm());   
connection.setRequestMethod("POST");   <br>connection.setRequestProperty("Content-Type","application/x-www-form-urlencoded");   <br>connection.setRequestProperty("Content-Length", Integer.toString(urlParameters.getBytes().length));   <br>connection.setRequestProperty("Content-Language", "en-US");   <br>connection.setUseCaches(false);   <br>connection.setDoOutput(true);
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers