java.net.SocketException: Socket operation on nonsocket: sun.nio.ch.Net.setIntOption

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 807581, 1 year ago
Socket operation on nonsocket: sun.nio.ch.Net.setIntOption
via Oracle Community by 807581, 1 year ago
Socket operation on nonsocket: sun.nio.ch.Net.setIntOption
via netbeans.org by Unknown author, 1 year ago
Invalid argument: sun.nio.ch.Net.setIntOption
via Oracle Community by 843790, 1 year ago
Socket operation on nonsocket: sun.nio.ch.Net.setIntOption
java.net.SocketException: Socket operation on nonsocket: sun.nio.ch.Net.setIntOption
at sun.nio.ch.Net.setIntOption0(Native Method)
at sun.nio.ch.Net.setIntOption(Net.java:152)
at sun.nio.ch.SocketChannelImpl$1.setInt(SocketChannelImpl.java:372)
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:258)
at com.sun.enterprise.web.connector.grizzly.SelectorThread.setSocketOptions(SelectorThread.java:1906)
at com.sun.enterprise.web.connector.grizzly.SelectorThread.handleRead(SelectorThread.java:1356)
at com.sun.enterprise.web.connector.grizzly.SelectorThread.handleConnection(SelectorThread.java:1299)
at com.sun.enterprise.web.connector.grizzly.SelectorThread.startNonBlockingMode(SelectorThread.java:1254)
at com.sun.enterprise.web.connector.grizzly.SelectorThread.startEndpoint(SelectorThread.java:1126)

Users with the same issue

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

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