mojira.dev
MC-159641

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

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]

Related issues

Attachments

Comments

migrated
[media][media]
violine1101

Thank you for your report!
We're actually already tracking this issue in MC-10167, so I resolved and linked this ticket as a duplicate.

However, that ticket has already been resolved. Depending on the resolution, that can mean that it either will be fixed in the next version, or that it is not considered a bug and won't be fixed.

If you haven't already, you might like to make use of the search feature in the future to see if the issue has already been reported.

migrated

Hi, 

I tried this but instead it said there was no session.lock in the world to be able to run

is the Java.io.IOException: Access is denied - is whats causing the problem?

Thanks

edit: i've also provided attachments of the log if its easier to read - thanks

violine1101

It seems like the world files are accessed by another process while you're trying to launch the server. Perhaps you forgot to close the previous server instance?

migrated

no i dont believe so, i've tried restarting and many other things but I don't think it'll work.

thanks for the help anyway 🙂

i'll come back and keep you updated if anything happens, maybe another day it'll work

 

 

migrated

(Unassigned)

Unconfirmed

(Unassigned)

1.14.4

Retrieved