java.lang.Error: java.net.SocketException: Socket operation on non-socket

Apache's JIRA Issue Tracker | Stephen Green | 7 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    When trying to call ZooKeeper.toString during client disconnections, an exception can be generated: [04/06/10 15:39:57.744] ERROR Error while calling watcher java.lang.Error: java.net.SocketException: Socket operation on non-socket at sun.nio.ch.Net.localAddress(Net.java:128) at sun.nio.ch.SocketChannelImpl.localAddress(SocketChannelImpl.java:430) at sun.nio.ch.SocketAdaptor.getLocalAddress(SocketAdaptor.java:147) at java.net.Socket.getLocalSocketAddress(Socket.java:717) at org.apache.zookeeper.ClientCnxn.getLocalSocketAddress(ClientCnxn.java:227) at org.apache.zookeeper.ClientCnxn.toString(ClientCnxn.java:183) at java.lang.String.valueOf(String.java:2826) at java.lang.StringBuilder.append(StringBuilder.java:115) at org.apache.zookeeper.ZooKeeper.toString(ZooKeeper.java:1486) at java.util.Formatter$FormatSpecifier.printString(Formatter.java:2794) at java.util.Formatter$FormatSpecifier.print(Formatter.java:2677) at java.util.Formatter.format(Formatter.java:2433) at java.util.Formatter.format(Formatter.java:2367) at java.lang.String.format(String.java:2769) at com.echonest.cluster.ZooContainer.process(ZooContainer.java:544) at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:488) Caused by: java.net.SocketException: Socket operation on non-socket at sun.nio.ch.Net.localInetAddress(Native Method) at sun.nio.ch.Net.localAddress(Net.java:125) ... 15 more

    Apache's JIRA Issue Tracker | 7 years ago | Stephen Green
    java.lang.Error: java.net.SocketException: Socket operation on non-socket
  2. 0

    IBM PK46040: GETLOCALSOCKETADDRESS, GETLOCALPORT RETURNS INVALID ARGUMENT. - United States

    ibm.com | 1 year ago
    java.lang.Error: java.net.SocketException: A system call received a parameter that is not valid. at sun.nio.ch.Net.localAddress(Net.java(Inlined Compiled Code)) at sun.nio.ch.SocketChannelImpl.localAddress(SocketChannelImpl.java (Compiled Code)) at sun.nio.ch.SocketAdaptor.getLocalAddress(SocketAdaptor.java:178)
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    IBM PK46040: GETLOCALSOCKETADDRESS, GETLOCALPORT RETURNS INVALID ARGUMENT. - United States

    ibm.com | 1 year ago
    java.lang.Error: java.net.SocketException: A system call received a parameter that is not valid. at sun.nio.ch.Net.localAddress(Net.java(Inlined Compiled Code)) at sun.nio.ch.SocketChannelImpl.localAddress(SocketChannelImpl.java (Compiled Code)) at sun.nio.ch.SocketAdaptor.getLocalAddress(SocketAdaptor.java:178)
  5. 0

    [DIRMINA-718] Sometimes AbstractIoSession.toString() invoked java.net.SocketException - ASF JIRA

    apache.org | 1 year ago
    java.lang.Error: java.net.SocketException: Socket operation on nonsocket: getsockname

    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

      Socket operation on non-socket

      at sun.nio.ch.Net.localInetAddress()
    2. Java RT
      Socket.getLocalSocketAddress
      1. sun.nio.ch.Net.localInetAddress(Native Method)
      2. sun.nio.ch.Net.localAddress(Net.java:125)
      3. sun.nio.ch.SocketChannelImpl.localAddress(SocketChannelImpl.java:430)
      4. sun.nio.ch.SocketAdaptor.getLocalAddress(SocketAdaptor.java:147)
      5. java.net.Socket.getLocalSocketAddress(Socket.java:717)
      5 frames
    3. Zookeeper
      ClientCnxn.toString
      1. org.apache.zookeeper.ClientCnxn.getLocalSocketAddress(ClientCnxn.java:227)
      2. org.apache.zookeeper.ClientCnxn.toString(ClientCnxn.java:183)
      2 frames
    4. Java RT
      StringBuilder.append
      1. java.lang.String.valueOf(String.java:2826)
      2. java.lang.StringBuilder.append(StringBuilder.java:115)
      2 frames
    5. Zookeeper
      ZooKeeper.toString
      1. org.apache.zookeeper.ZooKeeper.toString(ZooKeeper.java:1486)
      1 frame
    6. Java RT
      String.format
      1. java.util.Formatter$FormatSpecifier.printString(Formatter.java:2794)
      2. java.util.Formatter$FormatSpecifier.print(Formatter.java:2677)
      3. java.util.Formatter.format(Formatter.java:2433)
      4. java.util.Formatter.format(Formatter.java:2367)
      5. java.lang.String.format(String.java:2769)
      5 frames
    7. com.echonest.cluster
      ZooContainer.process
      1. com.echonest.cluster.ZooContainer.process(ZooContainer.java:544)
      1 frame
    8. Zookeeper
      ClientCnxn$EventThread.run
      1. org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:488)
      1 frame