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

via Oracle Community by cameronr, 1 year ago
via Oracle Community by tanww888, 1 year ago
Invalid argument
via Oracle Community by h1d3m3, 1 year ago
via Oracle Community by Paresh Bhavsar Guest, 1 year ago
via Oracle Community by bhavsar.er, 1 year ago
java.net.SocketException: Invalid argument
at sun.nio.ch.Net.setIntOption0(Native Method)
at sun.nio.ch.Net.setIntOption(Net.java:154)
at sun.nio.ch.SocketChannelImpl$1.setInt(SocketChannelImpl.java:406)
at sun.nio.ch.SocketOptsImpl.setBoolean(SocketOptsImpl.java:38)
at sun.nio.ch.SocketOptsImpl.reuseAddress(SocketOptsImpl.java:156)
at sun.nio.ch.SocketOptsImpl$IP$TCP.reuseAddress(SocketOptsImpl.java:268)
at sun.nio.ch.OptionAdaptor.setReuseAddress(OptionAdaptor.java:177)
at sun.nio.ch.SocketAdaptor.setReuseAddress(SocketAdaptor.java:343)
at com.sun.enterprise.web.connector.grizzly.SelectorThread.setSocketOptions(SelectorThread.java:1910)
at com.sun.enterprise.web.connector.grizzly.SelectorThread.handleAccept(SelectorThread.java:1475)
at com.sun.enterprise.web.connector.grizzly.SelectorThread.handleConnection(SelectorThread.java:1439)
at com.sun.enterprise.web.connector.grizzly.SelectorThread.doSelect(SelectorThread.java:1350)
at com.sun.enterprise.web.connector.grizzly.SelectorThread.startListener(SelectorThread.java:1284)
at com.sun.enterprise.web.connector.grizzly.SelectorThread.startEndpoint(SelectorThread.java:1247)

Users with the same issue

6 times, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 day ago
24 times, 5 months ago
4 times, 6 months ago
7 more bugmates

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