ошибка майнкрафт internal exception java nio channels closedchannelexception
internal exception: java.nio.channels.closedchannelexception #2984
Comments
mklprudence commented Jun 25, 2018
Bug Report
When I load the world in, once it gets to the load in blocks stage, i can only see beacons and immediately the world crashed but not the game, and display this internal exception, internal exception: java.nio.channels.closedchannelexception.
I have scrolled through some bug reports and they are resolved stating that it would be resolved in 3.0.7, but im already on 3.0.8
Also it may not be a problem with the world save, as I have tried like 5 backup worlds, even ones that was able to load before.
Expected Behaviour
For the world to load without closing the world immediately witht the exception internal exception: java.nio.channels.closedchannelexception
It should have been fixed in 3.0.7 but for some reason it’s still happening to be
Steps to Reproduce (for bugs)
Client/Server Log:
latest.log
The world closes at the end of this log
Crash Log: no crash log cuz the world closes without crashing the game
Client Information
World Information
The text was updated successfully, but these errors were encountered:
Stifling-Bossness commented Jun 25, 2018
Please upload the log to pastebin or gist, as we will not download your log files.
mklprudence commented Jun 25, 2018
Stifling-Bossness commented Jun 25, 2018
A few things that may or may not solve your issue.
Your Java is horribly out of date. You’re using 1.8_025, which came out 4 years ago. You even get a warning message in chat about this every time you log in. After installing the latest Java (171/172 at the time of this post), open your Twitch app, then go to the upper right corner, click the dropdown arrow, click Settings, then go to the Minecraft tab in the new window.
In the Minecraft settings then change the Launcher to Jar Launcher instead of Native. Ensure the Latest Java Version dropdown box shows Java 8 u171/172 as the version.
You’re not allocating nearly enough RAM. 3GB is absolutely not enough for this pack, 4GB is seen as the absolute minimum for this pack, with 6GB being recommended and 8GB max.
Also, do not install Java 9 or 10, they’re unsupported by Forge and you will crash
Once you’ve done these, try again.
mklprudence commented Jun 25, 2018
I allocated 6GB and java 8 u172, but it’s still not working
FYI, I paused the game before the world closes, and it said «There is no advancement here» when I click into the advancement tab.
artdude543 commented Jun 25, 2018
Re-install your pack it’s really broken and your missing content. Also, this can be moved to Discord.
Minecraft Forums
java.nio.channels.closedchannelexception
so I’m making a modded survival on 1.12.2 and everything works fine, except 80% of the time I run the world, I get the error «java.nio.channels.closedchannelexception», and for some reason, no one has talked about this error. So, how do I fix this?
Post the entire crash report using paste.ubuntu.com.
there is no crash, when you get the error, an option appears that says back to server screen.
Post the fml log then.
this is the fml latest log:
[14:53:13] [main/DEBUG] [FML/]: Injecting tracing printstreams for STDOUT/STDERR.
[14:53:13] [main/INFO] [FML/]: Forge Mod Loader version 14.23.2.2613 for Minecraft 1.12.2 loading
[14:53:13] [main/INFO] [FML/]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_51, running on Windows 10:amd64:10.0, installed at C:\Program Files (x86)\Minecraft\runtime\jre-x64
[14:53:13] [main/DEBUG] [FML/]: Java classpath at launch is:
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\net\minecraftforge\forge\1.12.2-14.23.2.2613\forge-1.12.2-14.23.2.2613.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\net\minecraft\launchwrapper\1.12\launchwrapper-1.12.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\org\ow2\asm\asm-all\5.2\asm-all-5.2.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\jline\jline\2.13\jline-2.13.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\com\typesafe\akka\akka-actor_2.11\2.3.3\akka-actor_2.11-2.3.3.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\com\typesafe\config\1.2.1\config-1.2.1.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-actors-migration_2.11\1.1.0\scala-actors-migration_2.11-1.1.0.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-compiler\2.11.1\scala-compiler-2.11.1.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\org\scala-lang\plugins\scala-continuations-library_2.11\1.0.2\scala-continuations-library_2.11-1.0.2.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\org\scala-lang\plugins\scala-continuations-plugin_2.11.1\1.0.2\scala-continuations-plugin_2.11.1-1.0.2.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-library\2.11.1\scala-library-2.11.1.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-parser-combinators_2.11\1.0.1\scala-parser-combinators_2.11-1.0.1.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-reflect\2.11.1\scala-reflect-2.11.1.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-swing_2.11\1.0.1\scala-swing_2.11-1.0.1.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-xml_2.11\1.0.2\scala-xml_2.11-1.0.2.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\lzma\lzma\0.0.1\lzma-0.0.1.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\net\sf\jopt-simple\jopt-simple\5.0.3\jopt-simple-5.0.3.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\java3d\vecmath\1.5.2\vecmath-1.5.2.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\net\sf\trove4j\trove4j\3.0.3\trove4j-3.0.3.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\com\mojang\patchy\1.1\patchy-1.1.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\oshi-project\oshi-core\1.1\oshi-core-1.1.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\net\java\dev\jna\jna\4.4.0\jna-4.4.0.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\net\java\dev\jna\platform\3.4.0\platform-3.4.0.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\com\ibm\icu\icu4j-core-mojang\51.2\icu4j-core-mojang-51.2.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\net\sf\jopt-simple\jopt-simple\5.0.3\jopt-simple-5.0.3.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\com\paulscode\codecjorbis\20101023\codecjorbis-20101023.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\com\paulscode\codecwav\20101023\codecwav-20101023.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\com\paulscode\libraryjavasound\20101123\libraryjavasound-20101123.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\com\paulscode\librarylwjglopenal\20100824\librarylwjglopenal-20100824.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\com\paulscode\soundsystem\20120107\soundsystem-20120107.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\io\netty\netty-all\4.1.9.Final\netty-all-4.1.9.Final.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\com\google\guava\guava\21.0\guava-21.0.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\org\apache\commons\commons-lang3\3.5\commons-lang3-3.5.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\commons-io\commons-io\2.5\commons-io-2.5.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\commons-codec\commons-codec\1.10\commons-codec-1.10.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\net\java\jinput\jinput\2.0.5\jinput-2.0.5.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\net\java\jutils\jutils\1.0.0\jutils-1.0.0.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\com\google\code\gson\gson\2.8.0\gson-2.8.0.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\com\mojang\authlib\1.5.25\authlib-1.5.25.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\com\mojang\realms\1.10.22\realms-1.10.22.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\org\apache\commons\commons-compress\1.8.1\commons-compress-1.8.1.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\org\apache\httpcomponents\httpclient\4.3.3\httpclient-4.3.3.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\commons-logging\commons-logging\1.1.3\commons-logging-1.1.3.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\org\apache\httpcomponents\httpcore\4.3.2\httpcore-4.3.2.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\it\unimi\dsi\fastutil\7.1.0\fastutil-7.1.0.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\org\apache\logging\log4j\log4j-api\2.8.1\log4j-api-2.8.1.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\org\apache\logging\log4j\log4j-core\2.8.1\log4j-core-2.8.1.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl\lwjgl\2.9.4-nightly-20150209\lwjgl-2.9.4-nightly-20150209.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl\lwjgl_util\2.9.4-nightly-20150209\lwjgl_util-2.9.4-nightly-20150209.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\libraries\com\mojang\text2speech\1.10.3\text2speech-1.10.3.jar
[14:53:13] [main/DEBUG] [FML/]: C:\Users\Justin Higgins\AppData\Roaming\.minecraft\versions\1.12.2\1.12.2.jar
[14:53:13] [main/DEBUG] [FML/]: Java library path at launch is:
[14:53:13] [main/DEBUG] [FML/]: C:\Users\JUSTIN
i’ve never used pastebin, so I just did this
ClosedChannelException on initial load #1671
Comments
jengeld4 commented Apr 9, 2018
Issue / Bug
Updated from 3.0.4 to 3.0.6 and now have issue loading previous 3.0.4 saves. Initial loads of the single player save return «Internal Exception: java.nio.channels.ClosedChannelException» then send me to server select screen. Further attempts to load function properly
Steps to Reproduce (for bugs)
Context
An annoyance really. Loads save fine after failing the first time.
Client Information
The text was updated successfully, but these errors were encountered:
justinrusso commented Apr 9, 2018 •
This is mentioned right in the changelog as a known issue
«* There is a known bug with being kicked back to the title or server screen after loading into your first world and sometimes after gaining/losing advancements/stages. We are looking into it. You should be able to join the world back with no issues after this happens.»
NerdySpider commented Apr 21, 2018
@justinrusso this dose not seem to be the case though. I have just heard about this pack and decided to try it out. after making a world and receiving this issue I tried to rejoin it. but only for it to kick me back out with the same issue again.
Delaterius commented Apr 24, 2018
@DragonmasterDJ I had the same problem. I created a second new world, and was then able to load into either.
justinrusso commented Apr 28, 2018
This appears to be fine. No one has been finding issues since this change.
Logins555 commented Jun 8, 2018
I been having the same error mesage almost every time I attempt traveling between dimensions:
Connection Lost
Internal Exception: java.nio.channels.ClosedChannelException
Then got kick out to the server select screen, and then sometimes when opening the save find my character teleported a bit more than 1100 blooks away and often inside of a moutain.
KS-HTK commented Jul 5, 2018
This Bug is not fixed. I have been having this Issue since 3.0.2(when I started playing) and I still get it. Currently on 3.0.8
DaDiamondDragon commented Jul 5, 2018 •
I am on 3.0.8 and I am still experiencing this problem. When initially loading up the pack, I am able to join my world just fine, but if I left the world and tried to rejoin after playing for a while, it would close the world, reading: Shutting down internal server, and then give the ClosedChannel Exception. I would try again and again to rejoin, but the same issue repeated. This would be fixed by closing the whole pack and then reopening it, so if it were just that it would be a minor inconvenience. However, the issue also occurs on some occasions when I am going between dimensions. When going to the Betweenlands, the issue would occur and when I finally managed to get back into the world, I would find myself hundreds of blocks away from my portal and in a cave. So far, this issue has occurred going to and from the Betweenlands, Nether, and Hunting Dimension, but never the Twilight. I have found myself teleported to locations such as in caves, suffocating in stone in a mountain, and in a lava lake. All of this is very frustrating and wastes a ton of time, because it takes the pack 10 minutes to load for me, even with 8 GB of RAM allocated. I’ve had tons of fun playing this pack, but this issue is messing up the experience a bit. I would very much appreciate a solution to this issue. Thanks
Closed Channel Exception Class
Definition
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A ClosedChannelException is thrown when a channel is closed for the type of operation attempted.
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Constructors
A constructor used when creating managed representations of JNI objects; called by the runtime.
Fields
Properties
(Inherited from Throwable)
The handle to the underlying Android instance.
(Inherited from Throwable)
Returns the detail message which was provided when this Throwable was created.
Returns the detail message which was provided when this Throwable was created.
(Inherited from Throwable)
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
Methods
Adds throwable to the list of throwables suppressed by this.
(Inherited from Throwable)
Returns the throwables suppressed by this.
Writes a printable representation of this Throwable ‘s stack trace to the System.err stream.
Writes a printable representation of this Throwable ‘s stack trace to the given print stream.
Writes a printable representation of this Throwable ‘s stack trace to the specified print writer.
Sets the Handle property.
Sets the array of stack trace elements.
(Inherited from Throwable)
Explicit Interface Implementations
IJavaObjectEx.IsProxy | (Inherited from Throwable) |
IJavaObjectEx.KeyHandle | (Inherited from Throwable) |
IJavaObjectEx.NeedsActivation | (Inherited from Throwable) |
IJavaObjectEx.ToLocalJniHandle() | (Inherited from Throwable) |
IJavaPeerable.Disposed() | (Inherited from Throwable) |
IJavaPeerable.DisposeUnlessReferenced() | (Inherited from Throwable) |
IJavaPeerable.Finalized() | (Inherited from Throwable) |
IJavaPeerable.JniManagedPeerState | (Inherited from Throwable) |
IJavaPeerable.SetJniIdentityHashCode(Int32) | (Inherited from Throwable) |
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from Throwable) |
IJavaPeerable.SetPeerReference(JniObjectReference) | (Inherited from Throwable) |
Extension Methods
Performs an Android runtime-checked type conversion.
Jenkins Windows slave connection getting terminated with java.nio.channels.ClosedChannelException
While connecting to windows machine as slave, i am getting following error i think its some network related issue, but need some help where to start looking or what is a possible solution for this.
Above mentioned stack trace is from salve (Windows) machine and my Jenkins/Master is running on RHEL, i am able to see following stacktrace there.
9 Answers 9
I was experiencing a similar error as the OP where the connection to my slave was dropping. The root cause of the issue was not due to a mismatch in Java versions between Jenkins slave and master hosts.
Solution If you are running Jenkins in an EC2 instance on AWS behind an Elastic Load Balancer (ELB), increase the «idle timeout» value under the «attributes» section from the default 60 seconds. I set the new value to 600 and no longer experienced the error.
It appears that if a single command in your build process takes greater than 60 seconds with no log output, the ELB will terminate the session due to idle activity.
In my case, I am running swarm-client-2.0-jar-with-dependencies.jar on a linux host, and it was using Java 7.
java version «1.7.0_80» Java(TM) SE Runtime Environment (build 1.7.0_80-b15) Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)
Our jenkins master was upgraded and is now running Java 8
java version «1.8.0_121» Java(TM) SE Runtime Environment (build 1.8.0_121-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
in addition to the error log in the post, I got also the error log under the jenkins directory in the slave (for me it was C:\jenkins\jenkins-slave.err.log):
my solution:
2)windows slave level: kill all java and jenkins-slave processes (if exist)
3)windows slave level: delete the jenkins slave service (if exist) from cmd: sc delete jenkinsslave-c__jenkins /force (in my case)
7)jenkins master ui level: relaunch the agent in jenkins and wait several minutes.