Jump to content

InvocationTargetException when attempting to start Forge 1.12.2 server with JDK 8 on Ubuntu 16.04


Recommended Posts

Posted (edited)

I was attempting to setup the server for FTB Revelation but after extracting the files and running the server start script, I was immediately met with this InvocationTargetException:

 

Spoiler

A problem occurred running the Server launcher.java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.java:62)
        at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.java:31)
Caused by: java.lang.NoClassDefFoundError: org/apache/logging/log4j/Level
        at net.minecraft.launchwrapper.Launch.launch(Launch.java:94)
        at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
        ... 6 more
Caused by: java.lang.ClassNotFoundException: org.apache.logging.log4j.Level
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 8 more

 

This error is on Ubuntu 16.04 with OpenJDK 8 or Oracle JDK 8 and no log files are produced. I tried replacing the jar file that FTB includes with the 1.12.2 recommended build, and latest, and neither had any effect. I also noted the NoClassDefFoundError was indicative of a missing library, which I checked for and could not find. I redownloaded the libraries using the Forge installer, both jar and exe, to no effect. Any help would be greatly appreciated. 

Edited by NEXUS2345
Posted

Here is the log:

Spoiler

Installing server to current directory
MESSAGE: Data kindly mirrored by Forge at http://MinecraftForge.net/
MESSAGE: Considering library net.minecraftforge:forge:1.12.2-14.23.1.2600: Not Downloading {Wrong Side}
MESSAGE: Considering library net.minecraft:launchwrapper:1.12
MESSAGE: Downloading library net.minecraft:launchwrapper:1.12
MESSAGE: Trying unpacked library net.minecraft:launchwrapper:1.12
MESSAGE: Considering library org.ow2.asm:asm-all:5.2
MESSAGE: Downloading library org.ow2.asm:asm-all:5.2
MESSAGE: Trying unpacked library org.ow2.asm:asm-all:5.2
MESSAGE: Considering library jline:jline:2.13
MESSAGE: Downloading library jline:jline:2.13
MESSAGE: Trying unpacked library jline:jline:2.13
MESSAGE: Considering library com.typesafe.akka:akka-actor_2.11:2.3.3
MESSAGE: Downloading library com.typesafe.akka:akka-actor_2.11:2.3.3
MESSAGE: Unpacking packed file akka-actor_2.11-2.3.3.jar.pack.xz
  Signed
  Checksum Length: 140942
  Total Length:    2606968
  Temp File:       /tmp/art5283963064430078785.pack
MESSAGE: Successfully unpacked packed file akka-actor_2.11-2.3.3.jar.pack.xz
Checking "/home/jgregory201718/revelations-server/./libraries/com/typesafe/akka/akka-actor_2.11/2.3.3/akka-actor_2.11-2.3.3.jar" internal checksums
    checksums.sha1 validated successfully
    Jar contents validated successfully
MESSAGE: Considering library com.typesafe:config:1.2.1
MESSAGE: Downloading library com.typesafe:config:1.2.1
MESSAGE: Unpacking packed file config-1.2.1.jar.pack.xz
  Signed
  Checksum Length: 12246
  Total Length:    111476
  Temp File:       /tmp/art8568074478327579455.pack
MESSAGE: Successfully unpacked packed file config-1.2.1.jar.pack.xz
Checking "/home/jgregory201718/revelations-server/./libraries/com/typesafe/config/1.2.1/config-1.2.1.jar" internal checksums
    checksums.sha1 validated successfully
    Jar contents validated successfully
MESSAGE: Considering library org.scala-lang:scala-actors-migration_2.11:1.1.0
MESSAGE: Downloading library org.scala-lang:scala-actors-migration_2.11:1.1.0
MESSAGE: Unpacking packed file scala-actors-migration_2.11-1.1.0.jar.pack.xz
  Signed
  Checksum Length: 3311
  Total Length:    52481
  Temp File:       /tmp/art9114039472183437185.pack
MESSAGE: Successfully unpacked packed file scala-actors-migration_2.11-1.1.0.jar.pack.xz
Checking "/home/jgregory201718/revelations-server/./libraries/org/scala-lang/scala-actors-migration_2.11/1.1.0/scala-actors-migration_2.11-1.1.0.jar" internal checksums
    checksums.sha1 validated successfully
    Jar contents validated successfully
MESSAGE: Considering library org.scala-lang:scala-compiler:2.11.1
MESSAGE: Downloading library org.scala-lang:scala-compiler:2.11.1
MESSAGE: Unpacking packed file scala-compiler-2.11.1.jar.pack.xz
  Signed
  Checksum Length: 942120
  Total Length:    9183051
  Temp File:       /tmp/art3110830455875007766.pack
MESSAGE: Successfully unpacked packed file scala-compiler-2.11.1.jar.pack.xz
Checking "/home/jgregory201718/revelations-server/./libraries/org/scala-lang/scala-compiler/2.11.1/scala-compiler-2.11.1.jar" internal checksums
    checksums.sha1 validated successfully
    Jar contents validated successfully
MESSAGE: Considering library org.scala-lang.plugins:scala-continuations-library_2.11:1.0.2
MESSAGE: Downloading library org.scala-lang.plugins:scala-continuations-library_2.11:1.0.2
MESSAGE: Unpacking packed file scala-continuations-library_2.11-1.0.2.jar.pack.xz
  Signed
  Checksum Length: 2416
  Total Length:    18871
  Temp File:       /tmp/art4988415473961300817.pack
MESSAGE: Successfully unpacked packed file scala-continuations-library_2.11-1.0.2.jar.pack.xz
Checking "/home/jgregory201718/revelations-server/./libraries/org/scala-lang/plugins/scala-continuations-library_2.11/1.0.2/scala-continuations-library_2.11-1.0.2.jar" internal checksums
    checksums.sha1 validated successfully
    Jar contents validated successfully
MESSAGE: Considering library org.scala-lang.plugins:scala-continuations-plugin_2.11.1:1.0.2
MESSAGE: Downloading library org.scala-lang.plugins:scala-continuations-plugin_2.11.1:1.0.2
MESSAGE: Unpacking packed file scala-continuations-plugin_2.11.1-1.0.2.jar.pack.xz
  Signed
  Checksum Length: 16815
  Total Length:    139418
  Temp File:       /tmp/art3746303877942266017.pack
MESSAGE: Successfully unpacked packed file scala-continuations-plugin_2.11.1-1.0.2.jar.pack.xz
Checking "/home/jgregory201718/revelations-server/./libraries/org/scala-lang/plugins/scala-continuations-plugin_2.11.1/1.0.2/scala-continuations-plugin_2.11.1-1.0.2.jar" internal checksums
    checksums.sha1 validated successfully
    Jar contents validated successfully
MESSAGE: Considering library org.scala-lang:scala-library:2.11.1
MESSAGE: Downloading library org.scala-lang:scala-library:2.11.1
MESSAGE: Unpacking packed file scala-library-2.11.1.jar.pack.xz
  Signed
  Checksum Length: 341368
  Total Length:    5984083
  Temp File:       /tmp/art9214146451098790856.pack
MESSAGE: Successfully unpacked packed file scala-library-2.11.1.jar.pack.xz
Checking "/home/jgregory201718/revelations-server/./libraries/org/scala-lang/scala-library/2.11.1/scala-library-2.11.1.jar" internal checksums
    checksums.sha1 validated successfully
    Jar contents validated successfully
MESSAGE: Considering library org.scala-lang:scala-parser-combinators_2.11:1.0.1
MESSAGE: Downloading library org.scala-lang:scala-parser-combinators_2.11:1.0.1
MESSAGE: Unpacking packed file scala-parser-combinators_2.11-1.0.1.jar.pack.xz
  Signed
  Checksum Length: 37614
  Total Length:    273457
  Temp File:       /tmp/art6243861527723628466.pack
MESSAGE: Successfully unpacked packed file scala-parser-combinators_2.11-1.0.1.jar.pack.xz
Checking "/home/jgregory201718/revelations-server/./libraries/org/scala-lang/scala-parser-combinators_2.11/1.0.1/scala-parser-combinators_2.11-1.0.1.jar" internal checksums
    checksums.sha1 validated successfully
    Jar contents validated successfully
MESSAGE: Considering library org.scala-lang:scala-reflect:2.11.1
MESSAGE: Downloading library org.scala-lang:scala-reflect:2.11.1
MESSAGE: Unpacking packed file scala-reflect-2.11.1.jar.pack.xz
  Signed
  Checksum Length: 291610
  Total Length:    3217021
  Temp File:       /tmp/art59934633715443851.pack
MESSAGE: Successfully unpacked packed file scala-reflect-2.11.1.jar.pack.xz
Checking "/home/jgregory201718/revelations-server/./libraries/org/scala-lang/scala-reflect/2.11.1/scala-reflect-2.11.1.jar" internal checksums
    checksums.sha1 validated successfully
    Jar contents validated successfully
MESSAGE: Considering library org.scala-lang:scala-swing_2.11:1.0.1
MESSAGE: Downloading library org.scala-lang:scala-swing_2.11:1.0.1
MESSAGE: Unpacking packed file scala-swing_2.11-1.0.1.jar.pack.xz
  Signed
  Checksum Length: 39019
  Total Length:    888907
  Temp File:       /tmp/art4029456064248222542.pack
MESSAGE: Successfully unpacked packed file scala-swing_2.11-1.0.1.jar.pack.xz
Checking "/home/jgregory201718/revelations-server/./libraries/org/scala-lang/scala-swing_2.11/1.0.1/scala-swing_2.11-1.0.1.jar" internal checksums
    checksums.sha1 validated successfully
    Jar contents validated successfully
MESSAGE: Considering library org.scala-lang:scala-xml_2.11:1.0.2
MESSAGE: Downloading library org.scala-lang:scala-xml_2.11:1.0.2
MESSAGE: Unpacking packed file scala-xml_2.11-1.0.2.jar.pack.xz
  Signed
  Checksum Length: 35380
  Total Length:    739509
  Temp File:       /tmp/art8250767668586541250.pack
MESSAGE: Successfully unpacked packed file scala-xml_2.11-1.0.2.jar.pack.xz
Checking "/home/jgregory201718/revelations-server/./libraries/org/scala-lang/scala-xml_2.11/1.0.2/scala-xml_2.11-1.0.2.jar" internal checksums
    checksums.sha1 validated successfully
    Jar contents validated successfully
MESSAGE: Considering library lzma:lzma:0.0.1
MESSAGE: Downloading library lzma:lzma:0.0.1
MESSAGE: Trying unpacked library lzma:lzma:0.0.1
MESSAGE: Considering library net.sf.jopt-simple:jopt-simple:5.0.3
MESSAGE: Downloading library net.sf.jopt-simple:jopt-simple:5.0.3
MESSAGE: Trying unpacked library net.sf.jopt-simple:jopt-simple:5.0.3
MESSAGE: Considering library java3d:vecmath:1.5.2
MESSAGE: Downloading library java3d:vecmath:1.5.2
MESSAGE: Trying unpacked library java3d:vecmath:1.5.2
MESSAGE: Considering library net.sf.trove4j:trove4j:3.0.3
MESSAGE: Downloading library net.sf.trove4j:trove4j:3.0.3
MESSAGE: Trying unpacked library net.sf.trove4j:trove4j:3.0.3
MESSAGE: Considering library net.minecraftforge:MercuriusUpdater:1.12.2
MESSAGE: Downloading library net.minecraftforge:MercuriusUpdater:1.12.2
MESSAGE: Trying unpacked library net.minecraftforge:MercuriusUpdater:1.12.2
Saving optional modlist to: ./mods/mod_list.json
The server installed successfully, you should now be able to run the file forge-1.12.2-14.23.1.2600-universal.jar
You can delete this installer file now if you wish

 

 

 

Posted

Show us exactly how you're running the server. You're most likely not running it in the proper working directory.

the [forge jar] part should have NO directory paths. The only way this can happen is if it can not find the 'minecraft_server.1.12.2.jar' in the current working directory.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted

That is not what I asked for -.-

Speak with your server host and have them walk you through it. 

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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