java.net.SocketException: Invalid argument

Oracle Community | cameronr | 9 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    setTcpNoDelay and setReuseAddress exceptions in 58g | Java.net

    java.net | 2 years ago
    java.net.SocketException: Invalid argument
  2. 0

    setTcpNoDelay and setReuseAddress exceptions in 58g

    Oracle Community | 9 years ago | cameronr
    java.net.SocketException: Invalid argument
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    setSoLinger and setReuseAddress Exceptions

    Oracle Community | 8 years ago | h1d3m3
    java.net.SocketException: Invalid argument
  5. 0

    Glassfish hung on port 80 (Failed to invoke action getSession on MBean ..)

    Oracle Community | 8 years ago | richard_tsai
    java.net.SocketException: Invalid argument

  1. mauritius 6 times, last 4 months ago
1 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.SocketException

    Invalid argument

    at sun.nio.ch.Net.setIntOption0()
  2. Java RT
    SocketAdaptor.setReuseAddress
    1. sun.nio.ch.Net.setIntOption0(Native Method)
    2. sun.nio.ch.Net.setIntOption(Net.java:154)
    3. sun.nio.ch.SocketChannelImpl$1.setInt(SocketChannelImpl.java:406)
    4. sun.nio.ch.SocketOptsImpl.setBoolean(SocketOptsImpl.java:38)
    5. sun.nio.ch.SocketOptsImpl.reuseAddress(SocketOptsImpl.java:156)
    6. sun.nio.ch.SocketOptsImpl$IP$TCP.reuseAddress(SocketOptsImpl.java:268)
    7. sun.nio.ch.OptionAdaptor.setReuseAddress(OptionAdaptor.java:177)
    8. sun.nio.ch.SocketAdaptor.setReuseAddress(SocketAdaptor.java:343)
    8 frames
  3. Glassfish Core
    SelectorThread.run
    1. com.sun.enterprise.web.connector.grizzly.SelectorThread.setSocketOptions(SelectorThread.java:1888)
    2. com.sun.enterprise.web.connector.grizzly.SelectorThread.handleAccept(SelectorThread.java:1453)
    3. com.sun.enterprise.web.connector.grizzly.SelectorThread.handleConnection(SelectorThread.java:1417)
    4. com.sun.enterprise.web.connector.grizzly.SelectorThread.doSelect(SelectorThread.java:1329)
    5. com.sun.enterprise.web.connector.grizzly.SelectorThread.startListener(SelectorThread.java:1263)
    6. com.sun.enterprise.web.connector.grizzly.SelectorThread.startEndpoint(SelectorThread.java:1226)
    7. com.sun.enterprise.web.connector.grizzly.SelectorThread.run(SelectorThread.java:1202)
    7 frames