java.net.SocketException: Connection reset

GitHub | BoriszhangSec | 7 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0
    samebug 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
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    apache httpclient 4.5.1 making only SSL conections to non-ssl sites, and failing

    Stack Overflow | 1 year ago | Praveen
    java.lang.Exception: Searching source item B00OFLNE1C threw an error: Connection reset .....
  4. 0

    ConnectionException: While registering endpoint

    GitHub | 1 year ago | arthur-kalmykov
    com.samczsun.skype4j.exceptions.ConnectionException: While registering endpoint
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.SocketException

    Connection reset

    at java.net.SocketInputStream.read()
  2. Java RT
    SocketInputStream.read
    1. java.net.SocketInputStream.read(SocketInputStream.java:209)
    2. java.net.SocketInputStream.read(SocketInputStream.java:141)
    2 frames
  3. Java JSSE
    SSLSocketImpl.startHandshake
    1. sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
    2. sun.security.ssl.InputRecord.read(InputRecord.java:503)
    3. sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973)
    4. sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
    5. sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
    6. sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
    6 frames
  4. okhttp3.internal.connection
    ConnectInterceptor.intercept
    1. okhttp3.internal.connection.RealConnection.connectTls(RealConnection.java:241)
    2. okhttp3.internal.connection.RealConnection.establishProtocol(RealConnection.java:198)
    3. okhttp3.internal.connection.RealConnection.buildConnection(RealConnection.java:174)
    4. okhttp3.internal.connection.RealConnection.connect(RealConnection.java:114)
    5. okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:193)
    6. okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:129)
    7. okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:98)
    8. okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42)
    8 frames
  5. okhttp3.internal.http
    RealInterceptorChain.proceed
    1. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
    2. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
    2 frames
  6. okhttp3.internal.cache
    CacheInterceptor.intercept
    1. okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:109)
    1 frame
  7. okhttp3.internal.http
    RealInterceptorChain.proceed
    1. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
    2. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
    3. okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
    4. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
    5. okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:124)
    6. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
    7. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
    7 frames
  8. okhttp3
    RealCall.execute
    1. okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:170)
    2. okhttp3.RealCall.execute(RealCall.java:60)
    2 frames
  9. io.fabric8.kubernetes
    BaseClient.rootPaths
    1. io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:234)
    2. io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:229)
    3. io.fabric8.kubernetes.client.dsl.base.BaseOperation.getRootPaths(BaseOperation.java:149)
    4. io.fabric8.kubernetes.client.BaseClient.rootPaths(BaseClient.java:150)
    4 frames
  10. io.fabric8.openshift
    OpenShiftExtensionAdapter.adapt
    1. io.fabric8.openshift.client.OpenshiftAdapterSupport.isOpenShift(OpenshiftAdapterSupport.java:51)
    2. io.fabric8.openshift.client.OpenshiftAdapterSupport.isAdaptable(OpenshiftAdapterSupport.java:35)
    3. io.fabric8.openshift.client.OpenShiftExtensionAdapter.adapt(OpenShiftExtensionAdapter.java:45)
    4. io.fabric8.openshift.client.OpenShiftExtensionAdapter.adapt(OpenShiftExtensionAdapter.java:33)
    4 frames
  11. io.fabric8.kubernetes
    BaseClient.adapt
    1. io.fabric8.kubernetes.client.BaseClient.adapt(BaseClient.java:142)
    1 frame
  12. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor865.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:498)
    3 frames
  13. Weld Implementation
    ProxyMethodHandler.invoke
    1. org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:38)
    2. org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:100)
    2 frames
  14. io.fabric8.kubernetes
    KubernetesClient$418356913$Proxy$_$$_WeldClientProxy.adapt
    1. io.fabric8.kubernetes.client.KubernetesClient$418356913$Proxy$_$$_WeldClientProxy.adapt(Unknown Source)
    1 frame
  15. Fabric8 :: Kubernetes Client API
    Controller.applyBuildConfig
    1. io.fabric8.kubernetes.api.Controller.getOpenShiftClientOrNull(Controller.java:403)
    2. io.fabric8.kubernetes.api.Controller.getOpenShiftClientOrJenkinshift(Controller.java:411)
    3. io.fabric8.kubernetes.api.Controller.applyBuildConfig(Controller.java:785)
    3 frames
  16. io.fabric8.forge
    CommandsResource.executeCommand
    1. io.fabric8.forge.rest.main.GitCommandCompletePostProcessor.createBuildConfig(GitCommandCompletePostProcessor.java:206)
    2. io.fabric8.forge.rest.main.GitCommandCompletePostProcessor.firePostCompleteActions(GitCommandCompletePostProcessor.java:175)
    3. io.fabric8.forge.rest.CommandsResource.doExecute(CommandsResource.java:385)
    4. io.fabric8.forge.rest.CommandsResource$4.apply(CommandsResource.java:279)
    5. io.fabric8.forge.rest.CommandsResource$4.apply(CommandsResource.java:275)
    6. io.fabric8.forge.rest.CommandsResource.withUIContext(CommandsResource.java:600)
    7. io.fabric8.forge.rest.CommandsResource.withUIContext(CommandsResource.java:561)
    8. io.fabric8.forge.rest.CommandsResource.executeCommand(CommandsResource.java:275)
    8 frames
  17. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor684.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:498)
    3 frames
  18. Apache CXF Core
    AbstractInvoker.invoke
    1. org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
    2. org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
    2 frames
  19. Apache CXF Runtime JAX-RS Frontend
    JAXRSInvoker.invoke
    1. org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:189)
    2. org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:99)
    2 frames
  20. Apache CXF Core
    ChainInitiationObserver.onMessage
    1. org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59)
    2. org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96)
    3. org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
    4. org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
    4 frames
  21. Apache CXF Runtime HTTP Transport
    AbstractHTTPServlet.doPost
    1. org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:254)
    2. org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234)
    3. org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208)
    4. org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160)
    5. org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:180)
    6. org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:298)
    7. org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:217)
    7 frames
  22. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    1 frame
  23. Apache CXF Runtime HTTP Transport
    AbstractHTTPServlet.service
    1. org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:273)
    1 frame
  24. Jetty
    SelectChannelEndPoint$2.run
    1. org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:837)
    2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:583)
    3. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
    4. org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
    5. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
    6. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)
    7. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
    8. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
    9. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)
    10. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
    11. org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
    12. org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)
    13. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
    14. org.eclipse.jetty.server.Server.handle(Server.java:524)
    15. org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:319)
    16. org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:253)
    17. org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
    18. org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
    19. org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
    19 frames
  25. org.eclipse.jetty
    ExecuteProduceConsume.run
    1. org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
    2. org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
    3. org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
    3 frames
  26. Jetty
    QueuedThreadPool$2.run
    1. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
    2. org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
    2 frames
  27. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame