java.net.SocketException: socket closed

GitHub | jasonsoso | 1 month ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    ClientSocket.setSoTimeout problem

    Google Groups | 1 decade ago | Banne
    java.net.SocketException: socket closed
  2. 0

    Java chat client and server

    Stack Overflow | 5 years ago | user1179027
    java.net.SocketException: Connection reset
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    RTSP server java implementation problems :(

    Stack Overflow | 5 years ago | Vardan Gevorgyan
    java.net.SocketException: Connection reset
  5. 0

    Chat Client not Connecting to Server

    Stack Overflow | 5 years ago | user1179027
    java.net.SocketException: Connection reset
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

    socket closed

    at java.net.SocketInputStream.socketRead0()
  2. Java RT
    SocketInputStream.read
    1. java.net.SocketInputStream.socketRead0(Native Method)
    2. java.net.SocketInputStream.read(SocketInputStream.java:152)
    3. java.net.SocketInputStream.read(SocketInputStream.java:122)
    3 frames
  3. Apache Http
    ContentLengthInputStream.read
    1. org.apache.http.impl.io.SessionInputBufferImpl.streamRead(SessionInputBufferImpl.java:139)
    2. org.apache.http.impl.io.SessionInputBufferImpl.fillBuffer(SessionInputBufferImpl.java:155)
    3. org.apache.http.impl.io.SessionInputBufferImpl.read(SessionInputBufferImpl.java:208)
    4. org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:178)
    4 frames
  4. Apache HttpClient
    EofSensorInputStream.read
    1. org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:137)
    1 frame
  5. Java RT
    LineNumberReader.readLine
    1. sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:283)
    2. sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:325)
    3. sun.nio.cs.StreamDecoder.read(StreamDecoder.java:177)
    4. java.io.InputStreamReader.read(InputStreamReader.java:184)
    5. java.io.BufferedReader.fill(BufferedReader.java:154)
    6. java.io.BufferedReader.readLine(BufferedReader.java:317)
    7. java.io.LineNumberReader.readLine(LineNumberReader.java:199)
    7 frames
  6. Lucene Common Analyzers
    SolrSynonymParser.parse
    1. org.apache.lucene.analysis.synonym.SolrSynonymParser.addInternal(SolrSynonymParser.java:82)
    2. org.apache.lucene.analysis.synonym.SolrSynonymParser.parse(SolrSynonymParser.java:70)
    2 frames
  7. com.bellszhu.elasticsearch
    DynamicSynonymTokenFilterFactory.<init>
    1. com.bellszhu.elasticsearch.plugin.synonym.analysis.RemoteSynonymFile.reloadSynonymMap(RemoteSynonymFile.java:75)
    2. com.bellszhu.elasticsearch.plugin.synonym.analysis.DynamicSynonymTokenFilterFactory.<init>(DynamicSynonymTokenFilterFactory.java:123)
    2 frames
  8. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    4 frames
  9. ElasticSearch
    FactoryProvider2.invoke
    1. org.elasticsearch.common.inject.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:50)
    2. org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:86)
    3. org.elasticsearch.common.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:104)
    4. org.elasticsearch.common.inject.FactoryProxy.get(FactoryProxy.java:54)
    5. org.elasticsearch.common.inject.InjectorImpl$5$1.call(InjectorImpl.java:828)
    6. org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:887)
    7. org.elasticsearch.common.inject.InjectorImpl$5.get(InjectorImpl.java:823)
    8. org.elasticsearch.common.inject.assistedinject.FactoryProvider2.invoke(FactoryProvider2.java:236)
    8 frames
  10. com.sun.proxy
    $Proxy39.create
    1. com.sun.proxy.$Proxy39.create(Unknown Source)
    1 frame
  11. ElasticSearch
    AnalysisService.<init>
    1. org.elasticsearch.index.analysis.AnalysisService.<init>(AnalysisService.java:161)
    2. org.elasticsearch.index.analysis.AnalysisService.<init>(AnalysisService.java:66)
    2 frames
  12. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    4 frames
  13. ElasticSearch
    PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run
    1. org.elasticsearch.common.inject.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:50)
    2. org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:86)
    3. org.elasticsearch.common.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:104)
    4. org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:47)
    5. org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:887)
    6. org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:43)
    7. org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:59)
    8. org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:46)
    9. org.elasticsearch.common.inject.SingleParameterInjector.inject(SingleParameterInjector.java:42)
    10. org.elasticsearch.common.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:66)
    11. org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:85)
    12. org.elasticsearch.common.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:104)
    13. org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:47)
    14. org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:887)
    15. org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:43)
    16. org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:59)
    17. org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:46)
    18. org.elasticsearch.common.inject.SingleParameterInjector.inject(SingleParameterInjector.java:42)
    19. org.elasticsearch.common.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:66)
    20. org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:85)
    21. org.elasticsearch.common.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:104)
    22. org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:47)
    23. org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:887)
    24. org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:43)
    25. org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:59)
    26. org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:46)
    27. org.elasticsearch.common.inject.InjectorBuilder$1.call(InjectorBuilder.java:201)
    28. org.elasticsearch.common.inject.InjectorBuilder$1.call(InjectorBuilder.java:193)
    29. org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:880)
    30. org.elasticsearch.common.inject.InjectorBuilder.loadEagerSingletons(InjectorBuilder.java:193)
    31. org.elasticsearch.common.inject.InjectorBuilder.injectDynamically(InjectorBuilder.java:175)
    32. org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:110)
    33. org.elasticsearch.common.inject.InjectorImpl.createChildInjector(InjectorImpl.java:159)
    34. org.elasticsearch.common.inject.ModulesBuilder.createChildInjector(ModulesBuilder.java:55)
    35. org.elasticsearch.indices.IndicesService.createIndex(IndicesService.java:358)
    36. org.elasticsearch.indices.cluster.IndicesClusterStateService.applyNewIndices(IndicesClusterStateService.java:294)
    37. org.elasticsearch.indices.cluster.IndicesClusterStateService.clusterChanged(IndicesClusterStateService.java:163)
    38. org.elasticsearch.cluster.service.InternalClusterService.runTasksForExecutor(InternalClusterService.java:600)
    39. org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:762)
    40. org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:231)
    41. org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:194)
    41 frames
  14. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    3. java.lang.Thread.run(Thread.java:745)
    3 frames