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

techjaffa.info | 4 months ago
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  1. ivotje50 337 times, last 1 month ago
  2. ivotje50 258 times, last 1 month ago
  3. Sooraj Singh 11 times, last 5 months ago
  4. Riyaz 2 times, last 6 months ago
  5. Macapon 10 times, last 7 months ago
4 unregistered visitors
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.waitSocketSignal(BluetoothSocket.java:482)
    3. android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:324)
    3 frames
  3. com.example.gauravdubey
    MainActivity$1.onItemClick
    1. com.example.gauravdubey.myapplication.BluetoothConnector$FallbackBluetoothSocket.connect(BluetoothConnector.java:198)
    2. com.example.gauravdubey.myapplication.BluetoothConnector.connect(BluetoothConnector.java:62)
    3. com.example.gauravdubey.myapplication.ConnectThread.run(ConnectThread.java:101)
    4. com.example.gauravdubey.myapplication.MainActivity$1.onItemClick(MainActivity.java:288)
    4 frames
  4. Android Platform
    ActivityThread.main
    1. android.widget.AdapterView.performItemClick(AdapterView.java:299)
    2. android.widget.AbsListView.performItemClick(AbsListView.java:1113)
    3. android.widget.AbsListView$PerformClick.run(AbsListView.java:2911)
    4. android.widget.AbsListView$3.run(AbsListView.java:3645)
    5. android.os.Handler.handleCallback(Handler.java:733)
    6. android.os.Handler.dispatchMessage(Handler.java:95)
    7. android.os.Looper.loop(Looper.java:136)
    8. android.app.ActivityThread.main(ActivityThread.java:5001)
    8 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:785)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
    2 frames
  7. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame