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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Oracle Community by 807581, 1 year ago
via netbeans.org by Unknown author, 1 year ago
Invalid argument: sun.nio.ch.Net.setIntOption
via Oracle Community by bouteill, 4 months 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$IP$TCP.noDelay(SocketOptsImpl.java:284)
at sun.nio.ch.OptionAdaptor.setTcpNoDelay(OptionAdaptor.java:48)
at sun.nio.ch.SocketAdaptor.setTcpNoDelay(SocketAdaptor.java:268)
at com.sun.enterprise.web.connector.grizzly.SelectorThread.setSocketOptions(SelectorThread.java:1880)
at com.sun.enterprise.web.connector.grizzly.SelectorThread.handleAccept(SelectorThread.java:1453)
at com.sun.enterprise.web.connector.grizzly.SelectorThread.handleConnection(SelectorThread.java:1417)
at com.sun.enterprise.web.connector.grizzly.SelectorThread.doSelect(SelectorThread.java:1329)
at com.sun.enterprise.web.connector.grizzly.SelectorThread.startListener(SelectorThread.java:1263)
at com.sun.enterprise.web.connector.grizzly.SelectorThread.startEndpoint(SelectorThread.java:1226)

Users with the same issue

4 times, 6 months ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
2 times, 4 days ago
24 times, 5 months ago

Write tip

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