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

Stack Overflow | Meng Kry | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Can't connect to Android Bluetooth Device socket

    Stack Overflow | 6 months ago | Meng Kry
    java.io.IOException: read failed, socket might closed or timeout, read ret: -1
  2. 0

    Bluetooth socket connection with Bluetooth PC server fails "ava.io.IOException: read failed, socket might closed or timeout, read ret: -1"

    Stack Overflow | 3 months ago | Sumeet
    java.io.IOException: read failed, socket might closed or timeout, read ret: -1
  3. 0

    Troubleshoot bluetooth connection between NXT and Android

    GitHub | 2 years ago | wkeifenheim
    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

    Error happens when connect in android

    Stack Overflow | 4 years ago | Wun
    java.io.IOException: read failed, socket might closed or timeout, read ret: -1
  6. 0

    Blutooth connected to number of devices getting this error, Can you please help me

    Stack Overflow | 2 years ago | user2353486
    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:900)
    2. android.bluetooth.BluetoothSocket.readInt(BluetoothSocket.java:912)
    3. android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:531)
    3 frames
  3. edu.psu.ee
    btDevices$2.onItemClick
    1. edu.psu.ee.bluetooth.btDevices.openBT(btDevices.java:102)
    2. edu.psu.ee.bluetooth.btDevices$2.onItemClick(btDevices.java:81)
    2 frames
  4. Android Platform
    ActivityThread.main
    1. android.widget.AdapterView.performItemClick(AdapterView.java:345)
    2. android.widget.AbsListView.performItemClick(AbsListView.java:1547)
    3. android.widget.AbsListView$PerformClick.run(AbsListView.java:3821)
    4. android.widget.AbsListView$3.run(AbsListView.java:5843)
    5. android.os.Handler.handleCallback(Handler.java:739)
    6. android.os.Handler.dispatchMessage(Handler.java:95)
    7. android.os.Looper.loop(Looper.java:158)
    8. android.app.ActivityThread.main(ActivityThread.java:7229)
    8 frames
  5. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  6. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
    2 frames