Jump to content

A problem occurred running the Server launcher.java.lang.reflect.InvocationTargetException


Recommended Posts

Command used:

docker run --rm -v /home/dinidu/MCModServer:/data -e TYPE=CURSEFORGE -e CF_SERVER_MOD=SevTech_Ages_3.2.1.zip -p 25565:25565 -e EULA=TRUE --name mc itzg/minecraft-server
Output:

[init] Running as uid=1000 gid=1000 with /data as 'drwxrwxrwx 3 1000 1000 4096 Jul  6 19:54 /data'
[init] Resolved version given LATEST into 1.17.1
[init] Resolving type given CURSEFORGE
[init] **********************************************************************
[init] WARNING: The image tag itzg/minecraft-server:java8 is recommended
[init]          since some mods require Java 8
[init]          Exception traces reporting ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader
[init]          can be fixed with java8
[init] **********************************************************************
[init] Looking for Feed-The-Beast / CurseForge server modpack.
~/FeedTheBeast ~
Installing Forge and required jars.
Done!
~
[init] detected FTB, changing properties path to /data/FeedTheBeast/server.properties
[init] server.properties already created, skipping
[init] Checking for JSON files.
[init] Setting initial memory to 1G and max to 1G
[init] Running FTB /data/FeedTheBeast/ServerStart.sh in /data/FeedTheBeast ...
Starting SevTech Ages Server...
A problem occurred running the Server launcher.java.lang.reflect.InvocationTargetException
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.base/java.lang.reflect.Method.invoke(Unknown Source)
    at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.java:70)
    at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.java:34)
Caused by: java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')
    at net.minecraft.launchwrapper.Launch.<init>(Launch.java:34)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
    ... 6 more
2021-07-06T20:34:23.513Z    WARN    mc-server-runner    sub-process failed    {"exitCode": 1}
2021-07-06T20:34:23.513Z    INFO    mc-server-runner    Done
 

My Java Version is  "1.8.0_292", OpennJDK 64-Bit Server VM

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.