Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-248289

The server console occasionally logs "Exception handling console input java.io.IOException: The handle is invalid" when first starting up servers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.18.1, 22w03a
    • None
    • GeForce GTX 1660/PCIe/SSE2
      Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
    • Unconfirmed
    • (Unassigned)

      The Bug:

      The server console occasionally logs "Exception handling console input java.io.IOException: The handle is invalid" when first starting up servers.

      On several different occasions, I've booted up a server and have been greeted with this message. I'm unsure as to what the cause of this is, and why this is happening in the first place, but assume that there's some kind of problem here worth bringing to light.

      The following error was printed into the server log shortly after first starting up the server.

      [18:19:35 ERROR]: Exception handling console input
      java.io.IOException: The handle is invalid
          at java.io.FileInputStream.readBytes(Native Method) ~[?:?]
          at java.io.FileInputStream.read(FileInputStream.java:276) ~[?:?]
          at java.io.BufferedInputStream.read1(BufferedInputStream.java:282) ~[?:?]
          at java.io.BufferedInputStream.read(BufferedInputStream.java:343) ~[?:?]
          at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:270) ~[?:?]
          at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:313) ~[?:?]
          at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:188) ~[?:?]
          at java.io.InputStreamReader.read(InputStreamReader.java:177) ~[?:?]
          at java.io.BufferedReader.fill(BufferedReader.java:162) ~[?:?]
          at java.io.BufferedReader.readLine(BufferedReader.java:329) ~[?:?]
          at java.io.BufferedReader.readLine(BufferedReader.java:396) ~[?:?]
          at aco$1.run(SourceFile:101) [server-22w03a.jar:?]
      

      Steps to Reproduce:

      • Start a server.
      • Watch the server console closely as the server starts up.
      • Take note as to whether or not the server console occasionally logs "Exception handling console input java.io.IOException: The handle is invalid" when first starting up servers.

      Observed Behavior:

      An error is present and is logged in the server console.

      Expected Behavior:

      This error wouldn't be present when starting up servers.

            Unassigned Unassigned
            Avoma [Mod] Avoma
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: