Skip to content

[HELP] error stoping the server

Featured Replies

Whats the error ?

 

Exception in thread "SelectorThread-49" java.lang.NullPointerException

 

When this error appears, the game server is time outed, and players can only login to the table where listed servers, but nothing else..

I'm sure you get more lines error.

  • Author

        
Exception in thread "SelectorThread-49" java.lang.NullPointerException
at lt.equal.gameserver.network.L2GameClient.onForcedDisconnection(L2Game
Client.java:503)
       at org.mmocore.network.SelectorThread.readPacket(SelectorThread.java:363
)
       at org.mmocore.network.SelectorThread.run(SelectorThread.java:195)

java.lang.NullPointerException
       at lt.equal.gameserver.handler.skillhandlers.Heal.useSkill(Heal.java:94)

       at lt.equal.gameserver.model.L2Character.callSkill(L2Character.java:6771
)
       at lt.equal.gameserver.model.L2Character.onMagicHitTimer(L2Character.jav
a:6456)
       at lt.equal.gameserver.model.L2Character$MagicUseTask.run(L2Character.ja
va:2366)
       at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
       at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
       at java.util.concurrent.FutureTask.run(Unknown Source)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
access$301(Unknown Source)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
run(Unknown Source)
       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
       at java.lang.Thread.run(Unknown Source)

 

Here, I hope you can help me. :|

Look Do something Go edit Gameserver! And Copy paste Here all Code!

Example!

@echo off
title L2J-Archid GameServer Console
:start
echo Starting L2J-Archid Game Server.
echo.
REM ----------- Set Class Paths and Calls setenv.bat -----------------
SET OLDCLASSPATH=%CLASSPATH%
call classpath.bat
REM ------------------------------------------------------------------

REM -------------------------------------
REM Default parameters for a basic server.
java -Dfile.encoding=UTF-8 -Xmx4000m com.l2jarchid.gameserver.L2GameServer
REM
REM If you have a big server and lots of memory, you could experiment for example with
REM java -server -Xmx1536m -Xms1024m -Xmn512m -XX:PermSize=256m -XX:SurvivorRatio=8 -Xnoclassgc -XX:+AggressiveOpts
REM -------------------------------------

SET CLASSPATH=%OLDCLASSPATH%

if ERRORLEVEL 2 goto restart
if ERRORLEVEL 1 goto error
goto end
:restart
echo.
echo Administrator Restarted ...
echo.
goto start
:error
echo.
echo GameServer Terminated Abnormaly, Please Verify Your Files.
echo.
:end
echo.
echo GameServer Terminated.
echo.
pause

  • Author

My server is on linux, so I copy GameServer_loop.sh

 

#!/bin/bash


err=1
until [ $err == 0 ]; 
do
. ./setenv.sh
[ -f log/java0.log.0 ] && mv log/java0.log.0 "log/java/`date +%Y-%m-%d_%H-%M-%S`_java0.log.0"
[ -f log/stdout.log ] && mv log/stdout.log "log/stdout/`date +%Y-%m-%d_%H-%M-%S`_stdout.log"
# For developers mostly (1. line gc logrotate, 2. line parameters for gc logging):
#	[ -f log/gc.log ] && mv log/gc.log "log/gc/`date +%Y-%m-%d_%H-%M-%S`_gc.log"
#	-verbose:gc -Xloggc:log/gc.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC -XX:+PrintTenuringDistribution
# Alternative startup by NB4L1
#	java -Dfile.encoding=UTF-8 -Xmn128m -Xms512m -Xmx1024m -server lt.equal.gameserver.GameServer > log/stdout.log 2>&1
java -Dfile.encoding=UTF-8 -Xmx1024m lt.equal.gameserver.GameServer > log/stdout.log 2>&1
err=$?
#	/etc/init.d/mysql restart
sleep 10;
done

 

Here

 

at lt.equal.gameserver.network.L2GameClient.onForcedDisconnection(L2Game
Client.java:503

Here you are.

  • Author

Hmmm, so what should I do now ? Cause I'm newbye in java. Do you think it makes server crash ? :)

  • Author

BUMP

go at lt.equal.gameserver.network.L2GameClient

and copy the whole method onForcedDisconnection()

to see whats added in there.

  • Author

protected void onForcedDisconnection()
{
	if (Config.DEBUG)
		_log.info("Client " + toString() + " disconnected abnormally.");
	if(activeChar.isInOlympiadMode())
	{
		Olympiad.processPlayer(activeChar);
	}
}

 

Here, what's wrong with it ?

 

you use a dead shitty interlude pack we dont give support for such forks.

  • Author

If you don't know its not dead ^^

If you don't know its not dead ^^

 

it is because its so unstable you cant use it under live server

  • Author

Nesvaik debile tu kurva, prakeiktas.

Create an account or sign in to comment

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.