Aidas Posted August 21, 2010 Posted August 21, 2010 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..
0 Aidas Posted August 21, 2010 Author Posted August 21, 2010 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 katara Posted August 21, 2010 Posted August 21, 2010 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 Aidas Posted August 21, 2010 Author Posted August 21, 2010 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 Kяaσh Posted August 21, 2010 Posted August 21, 2010 at lt.equal.gameserver.network.L2GameClient.onForcedDisconnection(L2Game Client.java:503 Here you are.
0 Aidas Posted August 21, 2010 Author Posted August 21, 2010 Hmmm, so what should I do now ? Cause I'm newbye in java. Do you think it makes server crash ? :)
0 Realtek2 Posted August 21, 2010 Posted August 21, 2010 go at lt.equal.gameserver.network.L2GameClient and copy the whole method onForcedDisconnection() to see whats added in there.
0 Aidas Posted August 22, 2010 Author Posted August 22, 2010 protected void onForcedDisconnection() { if (Config.DEBUG) _log.info("Client " + toString() + " disconnected abnormally."); if(activeChar.isInOlympiadMode()) { Olympiad.processPlayer(activeChar); } } Here, what's wrong with it ?
0 Intrepid Posted August 22, 2010 Posted August 22, 2010 you use a dead shitty interlude pack we dont give support for such forks.
0 Intrepid Posted August 22, 2010 Posted August 22, 2010 If you don't know its not dead ^^ it is because its so unstable you cant use it under live server
Question
Aidas
Whats the error ?
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
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 accountSign in
Already have an account? Sign in here.
Sign In Now