com.sforce.ws.ConnectionException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

It's possible you're trying to write to a connection that's already closed. Another cause for this is that you closed the socket with unread data in the socket receive buffer.


rafaelrafael
tip

This might be caused by unmatching versions of SSL. Java starts normally with SSLv2 and your server might not be able to negotiate. You have to force Java to use SSLv3. See this comment: https://goo.gl/hx0YB3


rafaelrafael

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • SOAP API extend idle time
    via Salesforce by dmachop
    ,
  • GitHub comment 902#255617188
    via GitHub by sashakozod
    ,
    • com.sforce.ws.ConnectionException: Failed to send request to https://cs7.salesforce.com/services/Soap/u/33.0/00Xe0000008CuJl at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:121) at com.sforce.soap.partner.PartnerConnection.queryMore(PartnerConnection.java:593) at sflayer.SOAPDataReader.queryAll(SOAPDataReader.java:277) at sflayer.SOAPDataReader.run(SOAPDataReader.java:87) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.net.SocketException: Connection reset at java.net.SocketInputStream.read(Unknown Source) at java.net.SocketInputStream.read(Unknown Source) at sun.security.ssl.InputRecord.readFully(Unknown Source) at sun.security.ssl.InputRecord.readV3Record(Unknown Source) at sun.security.ssl.InputRecord.read(Unknown Source) at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source) at sun.security.ssl.SSLSocketImpl.readDataRecord(Unknown Source) at sun.security.ssl.AppInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read1(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at sun.net.www.http.ChunkedInputStream.fastRead(Unknown Source) at sun.net.www.http.ChunkedInputStream.read(Unknown Source) at java.io.FilterInputStream.read(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(Unknown Source) at java.util.zip.InflaterInputStream.fill(Unknown Source) at java.util.zip.InflaterInputStream.read(Unknown Source) at java.util.zip.GZIPInputStream.read(Unknown Source) at sun.nio.cs.StreamDecoder.readBytes(Unknown Source) at sun.nio.cs.StreamDecoder.implRead(Unknown Source) at sun.nio.cs.StreamDecoder.read(Unknown Source) at java.io.InputStreamReader.read(Unknown Source) at com.sforce.ws.parser.MXParser.fillBuf(MXParser.java:2962) at com.sforce.ws.parser.MXParser.more(MXParser.java:3014) at com.sforce.ws.parser.MXParser.nextImpl(MXParser.java:1397) at com.sforce.ws.parser.MXParser.next(MXParser.java:1111) at com.sforce.ws.parser.XmlInputStream.next(XmlInputStream.java:136) at com.sforce.ws.bind.XmlObject.loadAfterStartTag(XmlObject.java:282) at com.sforce.ws.bind.XmlObject.load(XmlObject.java:268) at com.sforce.ws.bind.XmlObject.loadAfterStartTag(XmlObject.java:286) at com.sforce.ws.bind.XmlObject.load(XmlObject.java:268) at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:653) at com.sforce.ws.bind.TypeMapper.readArray(TypeMapper.java:553) at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:531) at com.sforce.soap.partner.QueryResult.loadFields(QueryResult.java:146) at com.sforce.soap.partner.QueryResult.load(QueryResult.java:130) at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:653) at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:529) at com.sforce.soap.partner.QueryMoreResponse_element.loadFields(QueryMoreResponse_element.java:64) at com.sforce.soap.partner.QueryMoreResponse_element.load(QueryMoreResponse_element.java:56) at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:653) at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:529) at com.sforce.ws.transport.SoapConnection.bind(SoapConnection.java:174) at com.sforce.ws.transport.SoapConnection.receive(SoapConnection.java:148) at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:99) ... 6 more

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Alireza MohamadiAlireza Mohamadi
    22 times, last one,
    TahirTahir
    2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    263 more bugmates