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 899236, 1 year ago
via Oracle Community by seagate-746906, 1 year ago
Invalid argument >
via Oracle Community by fishglass, 1 year ago
via Oracle Community by h1d3m3, 1 year ago
via Oracle Community by 807581, 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.setInt(SocketOptsImpl.java:46)
at sun.nio.ch.SocketOptsImpl.linger(SocketOptsImpl.java:104)
at sun.nio.ch.SocketOptsImpl$IP$TCP.linger(SocketOptsImpl.java:268)
at sun.nio.ch.OptionAdaptor.setSoLinger(OptionAdaptor.java:67)
at sun.nio.ch.SocketAdaptor.setSoLinger(SocketAdaptor.java:276)
at com.sun.enterprise.web.connector.grizzly.SelectorThread.setSocketOptions(SelectorThread.java:1893)
at com.sun.enterprise.web.connector.grizzly.SelectorReadThread.registerNewChannels(SelectorReadThread.java:93)
at com.sun.enterprise.web.connector.grizzly.SelectorReadThread.startEndpoint(SelectorReadThread.java:121)

Users with the same issue

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

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