Problem SkyFactory server error

D

Daaavid

Guest
Hi,

I tried to start a server on skyfactory 2.5. but when I started it it showed a error. I don't know what to do so if anyone can help me please? If I use server 2.5.0 everything works but if I use 2.5.5 the latest than I get this error and I want to use 2.5.5

Code:
Starting server
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=256M; suppor
t was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: Using the ParNew young collector with
the Serial old collector is deprecated and will likely be removed in a future r
elease
A problem occurred running the Server launcher.java.lang.reflect.InvocationTarge
tException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at cpw.mods.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.j
ava:43)
        at cpw.mods.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.
java:12)
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(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 8 more
Exiting...
Press any key to continue . . .

Thnx
 

Henry Link

Popular Member
Dec 23, 2012
2,601
553
128
USA - East Coast
I think we need more info. What is the OS and what are you using to start the server? When you updated the server did you also update the jar files used and the startup script?
 
D

Daaavid

Guest
I think we need more info. What is the OS and what are you using to start the server? When you updated the server did you also update the jar files used and the startup script?

I use windows server 2012 R2, I installed Java 8 111 (64-bit), I downloaded the server from the ftb launcher and to start it's a .bat and inside it it's this code

Code:
@if NOT "%FTB_VERBOSE%"=="yes" (
    @echo off
)

call settings.bat

if NOT EXIST minecraft_server.1.7.10.jar (
    goto install
)
if NOT EXIST libraries\%LAUNCHWRAPPER% (
    goto install
)
goto skipinstall

:install
echo running install script!
call FTBInstall.bat
:skipinstall

REM Check if java in path
REM TODO: use %JAVACMD%
where java > NUL 2>&1

if %ERRORLEVEL% NEQ 0 (
    echo No java binary in path. Can't run server, exiting...
    pause
    exit /B
)

REM Test JVM
REM e.g. 32-bit JVM does not have server\jvm.dll library
java -server -version > java-test.log 2>&1

if %ERRORLEVEL% NEQ 0 (
    echo Detected following JVM error:
    echo =======================================
    more java-test.log
    echo =======================================
    echo JVM test failed. Can't run server, Exiting...
    pause
    exit /B
)

if not exist eula.txt (
    echo Missing eula.txt. Startup will fail and eula.txt will be created
    echo Make sure to read eula.txt before playing!
    goto startserver
)

find "eula=false" eula.txt 1 > NUL 2>&1
if %ERRORLEVEL% EQU 0 (
    echo Make sure to read eula.txt before playing! Exiting.
    pause
    exit /B
)

del /f /q autostart.stamp > nul 2>1

:startserver
echo Starting server
java -server -Xms512M -Xmx2048M -XX:PermSize=256M -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:+CMSClassUnloadingEnabled -XX:ParallelGCThreads=2 -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -jar FTBServer-1.7.10-1614.jar nogui

:server_loop
if exist autostart.stamp (
    del /f /q autostart.stamp > nul 2>1
    echo If you want to completely stop the server process now, press Ctrl+C before the time is up!
    for /l %%i in (5,-1,1) do (
        echo Restarting server in %%i
        choice /t 1 /d y > nul
    )
    echo Starting server now
    java -server -Xms512M -Xmx2048M -XX:PermSize=256M -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:+CMSClassUnloadingEnabled -XX:ParallelGCThreads=2 -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -jar FTBServer-1.7.10-1614.jar nogui
    echo Server process finished
    goto :server_loop
)
echo Exiting...
pause

I don't know if you need more?
 

Henry Link

Popular Member
Dec 23, 2012
2,601
553
128
USA - East Coast
As a test can we eliminate the script? Open a command prompt and use the CD command to go where your FTBServer-1.7.10-1614.jar file is located. Then type in the followig:
Code:
java -server -Xms512M -Xmx4096M -jar FTBServer-1.7.10-1614.jar nogui

If it produces and error capture as much of the console you window you can and post it here. I'm not trusting some of those command line arguments for Java since I know they only work in Java 7.
 
D

Daaavid

Guest
As a test can we eliminate the script? Open a command prompt and use the CD command to go where your FTBServer-1.7.10-1614.jar file is located. Then type in the followig:
Code:
java -server -Xms512M -Xmx4096M -jar FTBServer-1.7.10-1614.jar nogui

If it produces and error capture as much of the console you window you can and post it here. I'm not trusting some of those command line arguments for Java since I know they only work in Java 7.

I followed the steps and this is what i found.. I don't know if I did it right so let me know..

Code:
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\Administrator>cd\

C:\>cd ftb\server\FTBPresentsSkyfactory25server

C:\ftb\server\FTBPresentsSkyfactory25Server>DIR
Volume in drive C has no label.
Volume Serial Number is 78A4-5697

Directory of C:\ftb\server\FTBPresentsSkyfactory25Server

19/10/2016  18:08    <DIR>          .
19/10/2016  18:08    <DIR>          ..
19/10/2016  18:08               108 1
19/10/2016  18:08    <DIR>          config
19/10/2016  18:08               183 eula.txt
19/10/2016  18:08               403 FTBInstall.bat
19/10/2016  18:08               728 FTBInstall.sh
19/10/2016  18:08         3 018 833 FTBServer-1.7.10-1614.jar
19/10/2016  18:08         3 018 833 FTBserver.jar
19/10/2016  18:08               147 java-test.log
19/10/2016  18:08    <DIR>          libraries
19/10/2016  18:08           730 737 minecraft_server.1.7.10.jar
19/10/2016  18:08    <DIR>          modpack
19/10/2016  18:08    <DIR>          mods
19/10/2016  18:08    <DIR>          mods-resourcepacks
19/10/2016  18:08    <DIR>          scripts
19/10/2016  18:08             2 177 ServerStart.bat
19/10/2016  18:08             1 557 ServerStart.sh
19/10/2016  18:08               216 settings.bat
19/10/2016  18:08               171 settings.sh
19/10/2016  18:08               129 version.json
              13 File(s)      6 774 222 bytes
               8 Dir(s)  19 781 382 144 bytes free

C:\ftb\server\FTBPresentsSkyfactory25Server>java -server -Xms512M -Xmx4096M -jar
FTBServer-1.7.10-1614.jar nogui
A problem occurred running the Server launcher.java.lang.reflect.InvocationTarge
tException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at cpw.mods.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.j
ava:43)
        at cpw.mods.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.
java:12)
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(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 8 more

C:\ftb\server\FTBPresentsSkyfactory25Server>
 

Henry Link

Popular Member
Dec 23, 2012
2,601
553
128
USA - East Coast
Looks correct. Let me do some testing at home later tonight to see if I can duplicate this error. I don't have a windows server but I'll try it on my windows 10 box and see what I get.

One last thing can you type in java -version on the command line. I just want to make sure I'm duplicating with that exact same version.
 
D

Daaavid

Guest
Looks correct. Let me do some testing at home later tonight to see if I can duplicate this error. I don't have a windows server but I'll try it on my windows 10 box and see what I get.

One last thing can you type in java -version on the command line. I just want to make sure I'm duplicating with that exact same version.

Thnx for helping man!

Code:
C:\ftb\server\FTBPresentsSkyfactory25Server>java -version
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
 

Henry Link

Popular Member
Dec 23, 2012
2,601
553
128
USA - East Coast
Ok so I get the exact same thing using a fresh download of the server on Java 1.8.0_101 64 bit. The StartServer.bat isn't calling the FTBInstall.bat. So drop to the command promt again CD to the same directory and type in FTBInstall.bat. Once that is done run the normal ServerStart.bat and that should fix your issue.

The FTBInstall.bat downloads the minecraft libraries directly from mojang.
 
  • Like
Reactions: Daaavid
D

Daaavid

Guest
Ok so I get the exact same thing using a fresh download of the server on Java 1.8.0_101 64 bit. The StartServer.bat isn't calling the FTBInstall.bat. So drop to the command promt again CD to the same directory and type in FTBInstall.bat. Once that is done run the normal ServerStart.bat and that should fix your issue.

The FTBInstall.bat downloads the minecraft libraries directly from mojang.

I think it works! Thank you very much man!