java.io.IOException: Invalid argument

JDK Bug System | Webbug Group | 4 months ago
  1. 0

    FULL PRODUCT VERSION : java version "1.8.0_102" Java(TM) SE Runtime Environment (build 1.8.0_102-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode) ADDITIONAL OS VERSION INFORMATION : Mac OS El Capitan 10.11.6 (15G31) 15.6.0 Darwin Kernel Version 15.6.0: Thu Jun 23 18:25:34 PDT 2016; root:xnu-3248.60.10~1/RELEASE_X86_64 x86_64 A DESCRIPTION OF THE PROBLEM : Selector.select(timeout) throws an IOException when timeout is larger than 100000000999L. EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - select operation should block for 100000000999L milliseconds. ACTUAL - select operation throws IOException: invalid argument. ERROR MESSAGES/STACK TRACES THAT OCCUR : Exception in thread "main" java.io.IOException: Invalid argument at sun.nio.ch.KQueueArrayWrapper.kevent0(Native Method) at sun.nio.ch.KQueueArrayWrapper.poll(KQueueArrayWrapper.java:198) at sun.nio.ch.KQueueSelectorImpl.doSelect(KQueueSelectorImpl.java:117) at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:86) at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97) at com.tdc.configurito.lab.expect.SelectTest.main(SelectTest.java:9) REPRODUCIBILITY : This bug can be reproduced always. ---------- BEGIN SOURCE ---------- import java.io.IOException; import java.nio.channels.Selector; public class SelectTest { public static void main(String[] args) throws IOException, InterruptedException { Selector selector = Selector.open(); selector.select(100000001000L); } } ---------- END SOURCE ---------- CUSTOMER SUBMITTED WORKAROUND : Use lower value.

    JDK Bug System | 4 months ago | Webbug Group
    java.io.IOException: Invalid argument
  2. 0

    Not Able to connect to couchbase server

    Stack Overflow | 2 years ago | dhiraj singh
    java.io.IOException: Invalid argument
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Exception using JRockit and NIO | Oracle Community

    oracle.com | 1 year ago
    java.io.IOException: Invalid argument

    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

      Invalid argument

      at sun.nio.ch.KQueueArrayWrapper.kevent0()
    2. Java RT
      SelectorImpl.select
      1. sun.nio.ch.KQueueArrayWrapper.kevent0(Native Method)
      2. sun.nio.ch.KQueueArrayWrapper.poll(KQueueArrayWrapper.java:198)
      3. sun.nio.ch.KQueueSelectorImpl.doSelect(KQueueSelectorImpl.java:117)
      4. sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:86)
      5. sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97)
      5 frames
    3. com.tdc.configurito
      SelectTest.main
      1. com.tdc.configurito.lab.expect.SelectTest.main(SelectTest.java:9)
      1 frame