java.io.IOError: java.io.IOException: Unknown error: 316

Apache's JIRA Issue Tracker | Robert Stupp | 2 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

    Clean shutdown on OSX with Java 1.8.0_20 does not work due to [JDK bug 8050499 fixed for Java 9|https://bugs.openjdk.java.net/browse/JDK-8050499]. Supplied patch provides a (very dirty) workaround to (hopefully) allow shutdown. Exception during shutdown looks like this: {code} ERROR 22:23:15 Fatal exception in thread Thread[StorageServiceShutdownHook,5,main] java.io.IOError: java.io.IOException: Unknown error: 316 at org.apache.cassandra.net.MessagingService.shutdown(MessagingService.java:721) ~[trunk/na] at org.apache.cassandra.service.StorageService$1.runMayThrow(StorageService.java:553) ~[trunk/na] at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) ~[trunk/na] at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_20] Caused by: java.io.IOException: Unknown error: 316 at sun.nio.ch.NativeThread.signal(Native Method) ~[na:1.8.0_20] at sun.nio.ch.ServerSocketChannelImpl.implCloseSelectableChannel(ServerSocketChannelImpl.java:283) ~[na:1.8.0_20] at java.nio.channels.spi.AbstractSelectableChannel.implCloseChannel(AbstractSelectableChannel.java:234) ~[na:1.8.0_20] at java.nio.channels.spi.AbstractInterruptibleChannel.close(AbstractInterruptibleChannel.java:115) ~[na:1.8.0_20] at sun.nio.ch.ServerSocketAdaptor.close(ServerSocketAdaptor.java:137) ~[na:1.8.0_20] at org.apache.cassandra.net.MessagingService$SocketThread.close(MessagingService.java:958) ~[trunk/na] at org.apache.cassandra.net.MessagingService.shutdown(MessagingService.java:717) ~[trunk/na] ... 3 common frames omitted {code}

    Apache's JIRA Issue Tracker | 2 years ago | Robert Stupp
    java.io.IOError: java.io.IOException: Unknown error: 316
  2. 0

    Cassandra on mac: stopping cassandra shows error

    Stack Overflow | 2 years ago | Devasia Joseph
    java.io.IOError: java.io.IOException: Unknown error: 316
  3. 0

    EmbeddedCassandraServerHelper.cleanEmbeddedCassandra() hangs forever

    Stack Overflow | 1 year ago | gigi2
    java.io.IOError: java.io.IOException: Unknown error: 316
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Cassandra 2.1.2 does not able to boot up

    GitHub | 2 years ago | syuu1228
    java.io.IOError: java.io.IOException: No such file or directory
  6. 0

    Tomcat not able to shutdown properly

    GitHub | 4 months ago | Maskime
    java.io.IOException: Unknown error: 316

    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.io.IOException

      Unknown error: 316

      at sun.nio.ch.NativeThread.signal()
    2. Java RT
      ServerSocketAdaptor.close
      1. sun.nio.ch.NativeThread.signal(Native Method)[na:1.8.0_20]
      2. sun.nio.ch.ServerSocketChannelImpl.implCloseSelectableChannel(ServerSocketChannelImpl.java:283)[na:1.8.0_20]
      3. java.nio.channels.spi.AbstractSelectableChannel.implCloseChannel(AbstractSelectableChannel.java:234)[na:1.8.0_20]
      4. java.nio.channels.spi.AbstractInterruptibleChannel.close(AbstractInterruptibleChannel.java:115)[na:1.8.0_20]
      5. sun.nio.ch.ServerSocketAdaptor.close(ServerSocketAdaptor.java:137)[na:1.8.0_20]
      5 frames
    3. org.apache.cassandra
      StorageService$1.runMayThrow
      1. org.apache.cassandra.net.MessagingService$SocketThread.close(MessagingService.java:958)[trunk/na]
      2. org.apache.cassandra.net.MessagingService.shutdown(MessagingService.java:717)[trunk/na]
      3. org.apache.cassandra.service.StorageService$1.runMayThrow(StorageService.java:553)[trunk/na]
      3 frames
    4. Apache Cassandra
      WrappedRunnable.run
      1. org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)[trunk/na]
      1 frame
    5. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)[na:1.8.0_20]
      1 frame