java.net.SocketException: Invalid argument

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

java.net.SocketException: Invalid argument
at sun.nio.ch.DatagramChannelImpl.send0(Native Method)
at sun.nio.ch.DatagramChannelImpl.sendFromNativeBuffer(DatagramChannelImpl.java:521)
at sun.nio.ch.DatagramChannelImpl.send(DatagramChannelImpl.java:498)
at sun.nio.ch.DatagramChannelImpl.send(DatagramChannelImpl.java:462)
at org.itxtech.nemisys.raknet.server.UDPServerSocket.writePacket(UDPServerSocket.java:83)
at org.itxtech.nemisys.raknet.server.UDPServerSocket.writePacket(UDPServerSocket.java:78)
at org.itxtech.nemisys.raknet.server.SessionManager.sendPacket(SessionManager.java:197)
at org.itxtech.nemisys.raknet.server.Session.sendPacket(Session.java:189)
at org.itxtech.nemisys.raknet.server.Session.addToQueue(Session.java:225)
at org.itxtech.nemisys.raknet.server.Session.addEncapsulatedToQueue(Session.java:295)
at org.itxtech.nemisys.raknet.server.Session.close(Session.java:532)
at org.itxtech.nemisys.raknet.server.SessionManager.removeSession(SessionManager.java:431)
at org.itxtech.nemisys.raknet.server.Session.disconnect(Session.java:185)
at org.itxtech.nemisys.raknet.server.Session.update(Session.java:109)
at org.itxtech.nemisys.raknet.server.SessionManager.tick(SessionManager.java:107)
at org.itxtech.nemisys.raknet.server.SessionManager.tickProcessor(SessionManager.java:100)
at org.itxtech.nemisys.raknet.server.SessionManager.run(SessionManager.java:69)
at org.itxtech.nemisys.raknet.server.SessionManager.(SessionManager.java:57)
at org.itxtech.nemisys.raknet.server.RakNetServer.run(RakNetServer.java:101)

Users with the same issue

Samebug visitor profile picture
Unknown user
2 times, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
42 times, 11 months ago

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