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
at lt.equal.gameserver.network.L2GameClient.onForcedDisconnection(L2Game
Client.java:503

Here you are.

  • 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 ?

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • L2Elixir – Patch 4 Is Live!   We’re working non-stop, day and night, to deliver the best possible quality and bring back what made L2Elixir special. This project is built with passion, not shortcuts — for the old-school players who remember, and the new ones who want to experience it properly. Thank you for being part of the journey. Together, we’re making L2Elixir great again ❤️ The legends never fade.    ⚙️ General Enabled Class Change service (same class type only) ALT + B → Services → Character Development Enabled Shift + Click on Treasure Chests Players can now identify real chests (Adena, scroll drops) and use Key / Unlock Event deaths now cancel only debuffs, All self buffs are preserved, fixes issues with Root and similar effects Bladedancer class can now log in even when Max Clients (2) is reached. Since an active Bladedancer is not available for every damage dealer and some players tried to abuse this via VPN or a second PC, this feature was added to keep things fair. protections applies, requires testing!    🎒 Items Crystallizing enchanted items now gives the correct increased crystal amount (retail-like behavior) Removed Agathion Seal Bracelet: Rudolph from Santa rewards (Gracia Final item) Added Dualsword Craft Stamp into Milestone Exchange list    🧙 Skills Fixed Banish Undead lethal chance Hot Springs Malaria and similar effects now level up faster while being attacked
    • thats new SEO level tricks you know nothing of noob - bottom line: exposed.
    • Warning: This guy is a big scammer, trying to sell everything, advertising for servers etc. That's his mail address evgesha.nrnr@gmail.com , stay away!   @Atom @Celestine
    • Warning: This guy is a big scammer, trying to sell everything, advertising for servers etc. That's his mail address evgesha.nrnr@gmail.com , stay away! @Celestine @Atom
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock