java.net.SocketException: sendto failed: EBADF (Bad file descriptor)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Ziad Halabi
, 1 year ago
sendto failed: EBADF (Bad file descriptor)
via GitHub by yanzhenjie
, 1 year ago
via tagwith.com by Unknown author, 2 years ago
via Stack Overflow by mr.boyfox
, 1 year ago
java.net.SocketException: sendto failed: EBADF (Bad file descriptor)
at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:542)
at libcore.io.IoBridge.sendto(IoBridge.java:511)
at java.net.PlainSocketImpl.write(PlainSocketImpl.java:500)
at java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:37)
at com.example.android.wifidirect.MediaProxy.processRequestOld(MediaProxy.java:138)
at com.example.android.wifidirect.MediaProxy.run(MediaProxy.java:98)

Users with the same issue

Once, 4 months ago
33 times, 7 months ago
Once, 7 months ago
10 times, 9 months ago
9 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.