java.lang.AssertionError: libcore.io.ErrnoException: getsockname failed: EBADF (Bad file number)

google.com | 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.

Root Cause Analysis

  1. java.lang.AssertionError

    libcore.io.ErrnoException: getsockname failed: EBADF (Bad file number)

    at java.nio.SocketChannelImpl.initLocalAddressAndPort()
  2. Java RT
    SocketChannelImpl$SocketAdapter.connect
    1. java.nio.SocketChannelImpl.initLocalAddressAndPort(SocketChannelImpl.java:230)
    2. java.nio.SocketChannelImpl.access$100(SocketChannelImpl.java:54)
    3. java.nio.SocketChannelImpl$SocketAdapter.connect(SocketChannelImpl.java:533)
    3 frames