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

java.io.ioexception access is denied / handle is invalid

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: 1.14.4
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Unconfirmed
    • Category:
      (Unassigned)

      Description

      Hi,

      the server was running just fine afew hours ago but I updated my Nvidia Drivers while playing on the server and the server crashed including my minecraft game. I didn't think it was much until I tried running it again and encountered afew problems and yes I have been searching for over an hour and have not found any solution. I tried reverting the driver version but still no hope. I have also tried installing a new minecraft server and running it and something similar pops up.

       [20:30:28] [main/WARN]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498]
      [20:30:28] [main/WARN]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
      [20:30:28] [main/WARN]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0]
      [20:30:28] [main/WARN]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498]
      [20:30:28] [main/WARN]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
      [20:30:29] [Server thread/INFO]: Starting minecraft server version 1.14.4
      [20:30:29] [Server thread/INFO]: Loading properties
      [20:30:29] [Server thread/INFO]: Default game type: SURVIVAL
      [20:30:29] [Server thread/INFO]: Generating keypair
      [20:30:29] [Server console handler/ERROR]: Exception handling console input
      java.io.IOException: The handle is invalid

      at java.io.FileInputStream.readBytes(Native Method) ~[?:1.8.0_221]at java.io.FileInputStream.readBytes(Native Method) ~[?:1.8.0_221] at java.io.FileInputStream.read(Unknown Source) ~[?:1.8.0_221] at java.io.BufferedInputStream.read1(Unknown Source) ~[?:1.8.0_221] at java.io.BufferedInputStream.read(Unknown Source) ~[?:1.8.0_221] at sun.nio.cs.StreamDecoder.readBytes(Unknown Source) ~[?:1.8.0_221] at sun.nio.cs.StreamDecoder.implRead(Unknown Source) ~[?:1.8.0_221] at sun.nio.cs.StreamDecoder.read(Unknown Source) ~[?:1.8.0_221] at java.io.InputStreamReader.read(Unknown Source) ~[?:1.8.0_221] at java.io.BufferedReader.fill(Unknown Source) ~[?:1.8.0_221] at java.io.BufferedReader.readLine(Unknown Source) ~[?:1.8.0_221] at java.io.BufferedReader.readLine(Unknown Source) ~[?:1.8.0_221] at uk$2.run(SourceFile:109) [server.jar:?]

      [20:30:29] [Server thread/INFO]: Starting Minecraft server on 192.168.1.102:25565[20:30:29] [Server thread/INFO]: Starting Minecraft server on 192.168.1.102:25565[20:30:29] [Server thread/INFO]: Using default channel type[20:30:31] [Server thread/INFO]: Preparing level "world"[20:30:31] [Server thread/INFO]: [STDERR]: java.io.IOException: Access is denied[20:30:31] [Server thread/INFO]: [STDERR]: at java.io.FileOutputStream.writeBytes(Native Method)[20:30:31] [Server thread/INFO]: [STDERR]: at java.io.FileOutputStream.write(Unknown Source)[20:30:31] [Server thread/INFO]: [STDERR]: at java.io.DataOutputStream.writeLong(Unknown Source)[20:30:31] [Server thread/INFO]: [STDERR]: at coo.h(SourceFile:89)[20:30:31] [Server thread/INFO]: [STDERR]: at coo.<init>(SourceFile:51)[20:30:31] [Server thread/INFO]: [STDERR]: at coq.a(SourceFile:113)[20:30:31] [Server thread/INFO]: [STDERR]: at coq.a(SourceFile:109)[20:30:31] [Server thread/INFO]: [STDERR]: at net.minecraft.server.MinecraftServer.a(SourceFile:352)[20:30:31] [Server thread/INFO]: [STDERR]: at uk.d(SourceFile:218)[20:30:31] [Server thread/INFO]: [STDERR]: at net.minecraft.server.MinecraftServer.run(SourceFile:615)[20:30:31] [Server thread/INFO]: [STDERR]: at java.lang.Thread.run(Unknown Source)[20:30:31] [Server thread/ERROR]: Encountered an unexpected exceptionjava.lang.RuntimeException: Failed to check session lock, aborting

      at coo.h(SourceFile:95) ~[server.jar:?]at coo.h(SourceFile:95) ~[server.jar:?] at coo.<init>(SourceFile:51) ~[server.jar:?] at coq.a(SourceFile:113) ~[server.jar:?] at coq.a(SourceFile:109) ~[server.jar:?] at net.minecraft.server.MinecraftServer.a(SourceFile:352) ~[server.jar:?] at uk.d(SourceFile:218) ~[server.jar:?] at net.minecraft.server.MinecraftServer.run(SourceFile:615) [server.jar:?] at java.lang.Thread.run(Unknown Source) [?:1.8.0_221][20:30:31] [Server thread/ERROR]: Could not save crash report to .\crash-reports\crash-2019-08-24_20.30.31-server.txtjava.io.FileNotFoundException: .\crash-reports\crash-2019-08-24_20.30.31-server.txt (The system cannot find the path specified) at java.io.FileOutputStream.open0(Native Method) ~[?:1.8.0_221] at java.io.FileOutputStream.open(Unknown Source) ~[?:1.8.0_221] at java.io.FileOutputStream.<init>(Unknown Source) ~[?:1.8.0_221] at java.io.FileOutputStream.<init>(Unknown Source) ~[?:1.8.0_221] at d.a(SourceFile:179) [server.jar:?] at net.minecraft.server.MinecraftServer.run(SourceFile:666) [server.jar:?] at java.lang.Thread.run(Unknown Source) [?:1.8.0_221][20:30:31] [Server thread/ERROR]: We were unable to save this crash report to disk.[20:30:31] [Server thread/INFO]: Stopping server[20:30:31] [Server thread/INFO]: Saving players[20:30:31] [Server thread/INFO]: Saving worlds[20:30:31] [Server thread/ERROR]: Exception stopping the serverjava.lang.NullPointerException: null at net.minecraft.server.MinecraftServer.a(SourceFile:546) ~[server.jar:?] at net.minecraft.server.MinecraftServer.m(SourceFile:574) ~[server.jar:?] at uk.m(SourceFile:593) ~[server.jar:?] at net.minecraft.server.MinecraftServer.run(SourceFile:676) [server.jar:?] at java.lang.Thread.run(Unknown Source) [?:1.8.0_221]

       

      So this is the current log after putting all my server properties and everything back to original when it was running normally.

      [20:30:28] [main/WARN]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498]
      [20:30:28] [main/WARN]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
      [20:30:28] [main/WARN]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0]
      [20:30:28] [main/WARN]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498]
      [20:30:28] [main/WARN]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
      [20:30:29] [Server thread/INFO]: Starting minecraft server version 1.14.4
      [20:30:29] [Server thread/INFO]: Loading properties
      [20:30:29] [Server thread/INFO]: Default game type: SURVIVAL
      [20:30:29] [Server thread/INFO]: Generating keypair
      [20:30:29] [Server console handler/ERROR]: Exception handling console input
      java.io.IOException: The handle is invalid

       

      at java.io.FileInputStream.readBytes(Native Method) ~[?:1.8.0_221]at java.io.FileInputStream.readBytes(Native Method) ~[?:1.8.0_221] at java.io.BufferedInputStream.read1(Unknown Source) ~[?:1.8.0_221] at java.io.BufferedInputStream.read(Unknown Source) ~[?:1.8.0_221] at sun.nio.cs.StreamDecoder.readBytes(Unknown Source) ~[?:1.8.0_221] at sun.nio.cs.StreamDecoder.implRead(Unknown Source) ~[?:1.8.0_221] at sun.nio.cs.StreamDecoder.read(Unknown Source) ~[?:1.8.0_221] at java.io.InputStreamReader.read(Unknown Source) ~[?:1.8.0_221] at java.io.BufferedReader.fill(Unknown Source) ~[?:1.8.0_221] at java.io.BufferedReader.readLine(Unknown Source) ~[?:1.8.0_221] at java.io.BufferedReader.readLine(Unknown Source) ~[?:1.8.0_221] at uk$2.run(SourceFile:109) [server.jar:?]

       [20:30:29] [Server thread/INFO]: Starting Minecraft server on 192.168.1.102:25565

      [20:30:29] [Server thread/INFO]: Starting Minecraft server on 192.168.1.102:25565

      [20:30:29] [Server thread/INFO]: Using default channel type

      [20:30:31] [Server thread/INFO]: Preparing level "world"[20:30:31] [Server thread/INFO]: [STDERR]: java.io.IOException: Access is denied

      [20:30:31] [Server thread/INFO]: [STDERR]: at java.io.FileOutputStream.writeBytes(Native Method)

      [20:30:31] [Server thread/INFO]: [STDERR]: at java.io.FileOutputStream.write(Unknown Source)

      [20:30:31] [Server thread/INFO]: [STDERR]: at java.io.DataOutputStream.writeLong(Unknown Source)

      [20:30:31] [Server thread/INFO]: [STDERR]: at coo.h(SourceFile:89)[20:30:31] [Server thread/INFO]: [STDERR]: at coo.<init>(SourceFile:51)

      [20:30:31] [Server thread/INFO]: [STDERR]: at coq.a(SourceFile:113)[20:30:31] [Server thread/INFO]: [STDERR]: at coq.a(SourceFile:109)

      [20:30:31] [Server thread/INFO]: [STDERR]: at net.minecraft.server.MinecraftServer.a(SourceFile:352)

      [20:30:31] [Server thread/INFO]: [STDERR]: at uk.d(SourceFile:218)

      [20:30:31] [Server thread/INFO]: [STDERR]: at net.minecraft.server.MinecraftServer.run(SourceFile:615)

      [20:30:31] [Server thread/INFO]: [STDERR]: at java.lang.Thread.run(Unknown Source)[20:30:31] [Server thread/ERROR]: Encountered an unexpected exceptionjava.lang.RuntimeException: Failed to check session lock, aborting

      at coo.h(SourceFile:95) ~[server.jar:?]at coo.h(SourceFile:95) ~[server.jar:?] at coo.<init>(SourceFile:51) ~[server.jar:?] at coq.a(SourceFile:113) ~[server.jar:?] at coq.a(SourceFile:109) ~[server.jar:?] at net.minecraft.server.MinecraftServer.a(SourceFile:352) ~[server.jar:?] at uk.d(SourceFile:218) ~[server.jar:?] at net.minecraft.server.MinecraftServer.run(SourceFile:615) [server.jar:?] at java.lang.Thread.run(Unknown Source) [?:1.8.0_221][20:30:31] [Server thread/ERROR]: Could not save crash report to .\crash-reports\crash-2019-08-24_20.30.31-server.txtjava.io.FileNotFoundException: .\crash-reports\crash-2019-08-24_20.30.31-server.txt (The system cannot find the path specified) at java.io.FileOutputStream.open0(Native Method) ~[?:1.8.0_221] at java.io.FileOutputStream.open(Unknown Source) ~[?:1.8.0_221] at java.io.FileOutputStream.<init>(Unknown Source) ~[?:1.8.0_221] at java.io.FileOutputStream.<init>(Unknown Source) ~[?:1.8.0_221] at d.a(SourceFile:179) [server.jar:?] at net.minecraft.server.MinecraftServer.run(SourceFile:666) [server.jar:?] at java.lang.Thread.run(Unknown Source) [?:1.8.0_221][20:30:31] [Server thread/ERROR]: We were unable to save this crash report to disk.[20:30:31] [Server thread/INFO]: Stopping server[20:30:31] [Server thread/INFO]: Saving players[20:30:31] [Server thread/INFO]: Saving worlds[20:30:31] [Server thread/ERROR]: Exception stopping the serverjava.lang.NullPointerException: null at net.minecraft.server.MinecraftServer.a(SourceFile:546) ~[server.jar:?] at net.minecraft.server.MinecraftServer.m(SourceFile:574) ~[server.jar:?] at uk.m(SourceFile:593) ~[server.jar:?] at net.minecraft.server.MinecraftServer.run(SourceFile:676) [server.jar:?] at java.lang.Thread.run(Unknown Source) [?:1.8.0_221]

        Attachments

        1. smh2.PNG
          smh2.PNG
          50 kB
        2. smh.PNG
          smh.PNG
          96 kB

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                chapanya Josh Noguera
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: