Jump to content
  • 0

[HELP] error stoping the server


Question

Posted

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..

14 answers to this question

Recommended Posts

  • 0
Posted

        
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. :|

  • 0
Posted

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

  • 0
Posted

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

 

  • 0
Posted

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

 

Here, what's wrong with it ?

 

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
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  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.



×
×
  • Create New...