java.io.IOException: read failed, socket might closed or timeout, read ret: -1

Stack Overflow | philip | 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

    Getting IOException when connecting socket in Android Bluetooth

    Stack Overflow | 1 month ago | philip
    java.io.IOException: read failed, socket might closed or timeout, read ret: -1
  2. 0

    Unable to read from a Bluetooth socket - Xamarin Forums

    xamarin.com | 11 months ago
    java.io.IOException: read failed, socket might closed or timeout, read ret: -1
  3. 0

    Program does unexpectedly finish and complications with connection to local Bluetooth address

    Stack Overflow | 6 months ago | John
    java.io.IOException: read failed, socket might closed or timeout, read ret: -1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Socket not connecting

    GitHub | 5 months ago | vishal-raj
    java.io.IOException: read failed, socket might closed or timeout, read ret: -1
  6. 0

    How to migrate code from QSerialPort to QBluetoothSocket

    Stack Overflow | 2 years ago | jpo38
    java.io.IOException: read failed, socket might closed or timeout, read ret: -1
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.io.IOException

    read failed, socket might closed or timeout, read ret: -1

    at android.bluetooth.BluetoothSocket.readAll()
  2. Android Platform
    BluetoothSocket.connect
    1. android.bluetooth.BluetoothSocket.readAll(BluetoothSocket.java:505)
    2. android.bluetooth.BluetoothSocket.readInt(BluetoothSocket.java:516)
    3. android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:320)
    3 frames
  3. adc.com.samplebluetooth
    MainActivity$OnClick.onClick
    1. adc.com.samplebluetooth.Bluetooth.connectToPaired(Bluetooth.java:248)
    2. adc.com.samplebluetooth.MainActivity$OnClick.onClick(MainActivity.java:90)
    2 frames
  4. Android Platform
    ActivityThread.main
    1. android.view.View.performClick(View.java:4443)
    2. android.view.View$PerformClick.run(View.java:18443)
    3. android.os.Handler.handleCallback(Handler.java:733)
    4. android.os.Handler.dispatchMessage(Handler.java:95)
    5. android.os.Looper.loop(Looper.java:136)
    6. android.app.ActivityThread.main(ActivityThread.java:5017)
    6 frames
  5. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:515)
    2 frames
  6. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
    2 frames
  7. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame