Problem with GS\LS

Results 1 to 8 of 8
  1. #1
    Novice Sniperik is offline
    MemberRank
    Dec 2010 Join Date
    1Posts

    sad Problem with GS\LS

    Code:
    Starting Aion Extreme Game Server.
    
    ==================================================================-[ DataBase ]
    [INFO] 2011-08-19 17:48:54 - Successfully connected to database
    [ERROR] 2011-08-19 17:48:54 - Critical Error - Thread: main terminated abnormaly
    : java.lang.Error: Can't load database script context: .\data\scripts\system\dat
    abase.xml
    java.lang.Error: Can't load database script context: .\data\scripts\system\datab
    ase.xml
            at org.openaion.commons.database.dao.DAOManager.init(DAOManager.java:50)
    
            at org.openaion.gameserver.GameServer.initUtilityServicesAndConfig(GameS
    erver.java:328)
            at org.openaion.gameserver.GameServer.main(GameServer.java:132)
    Caused by: java.lang.NullPointerException
            at org.openaion.commons.scripting.impl.javacompiler.ClassFileManager.<in
    it>(ClassFileManager.java:56)
            at org.openaion.commons.scripting.impl.javacompiler.ScriptCompilerImpl.d
    oCompilation(ScriptCompilerImpl.java:177)
            at org.openaion.commons.scripting.impl.javacompiler.ScriptCompilerImpl.c
    ompile(ScriptCompilerImpl.java:160)
            at org.openaion.commons.scripting.impl.ScriptContextImpl.init(ScriptCont
    extImpl.java:130)
            at org.openaion.commons.scripting.scriptmanager.ScriptManager.load(Scrip
    tManager.java:77)
            at org.openaion.commons.database.dao.DAOManager.init(DAOManager.java:46)
    
            ... 2 more
    
    Server terminated abnormaly ...
    
    
    Server terminated ...
    Code:
    Open Aion Login Server.
    
    ===================================================================-[ Network ]
    [INFO] 2011-08-19 17:50:35 - Loading: ./config/network/network.properties
    [INFO] 2011-08-19 17:50:35 - Loading: ./config/network/database.properties
    [INFO] 2011-08-19 17:50:35 - Loading: ./config/network/floodcontroller.propertie
    s
    ==================================================================-[ DataBase ]
    [INFO] 2011-08-19 17:50:36 - Successfully connected to database
    Exception in thread "main" java.lang.Error: Can't load database script context:
    .\data\scripts\system\database.xml
            at org.openaion.commons.database.dao.DAOManager.init(DAOManager.java:50)
    
            at org.openaion.loginserver.LoginServer.main(LoginServer.java:41)
    Caused by: java.lang.NullPointerException
            at org.openaion.commons.scripting.impl.javacompiler.ClassFileManager.<in
    it>(ClassFileManager.java:56)
            at org.openaion.commons.scripting.impl.javacompiler.ScriptCompilerImpl.d
    oCompilation(ScriptCompilerImpl.java:177)
            at org.openaion.commons.scripting.impl.javacompiler.ScriptCompilerImpl.c
    ompile(ScriptCompilerImpl.java:160)
            at org.openaion.commons.scripting.impl.ScriptContextImpl.init(ScriptCont
    extImpl.java:130)
            at org.openaion.commons.scripting.scriptmanager.ScriptManager.load(Scrip
    tManager.java:77)
            at org.openaion.commons.database.dao.DAOManager.init(DAOManager.java:46)
    
            ... 1 more
    
    Login Server Terminated Abnormaly, Please Verify Your Files.
    
    
    Login Server Terminated.
    How to fix this?


  2. #2
    Apprentice artha77 is offline
    MemberRank
    Aug 2011 Join Date
    5Posts

    Re: Problem with GS\LS

    This is a problem with your database (you're sure to have it properly configured?)
    What's the name of both your database?
    the name of the default database changes with emulator
    is in your config file and you will see a line like database.url = jdbc:mysql://localhost:3306/op_aion_gs?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true
    which is in bold is the name of your database for the gameserver (the line is simillaire for login server)
    The solution: replace the two config (login and game server!) the word I bolded the name of your database

    sorry for my bad english ^^

  3. #3
    Account Upgraded | Title Enabled! error0024 is offline
    MemberRank
    Jul 2005 Join Date
    MalaysiaLocation
    896Posts

    Re: Problem with GS\LS

    I am pretty sure there is some problem with the files you have compiled.
    Sometimes when you changed some settings on the file it would cause this problem to occur as well.

    What artha77 said,actually wasn't true,since the log wrote,CONNECTED TO DATABASE SUCCESSFUL

    Or something like that,means its working.

    The best way to identify the problem is,just make a new clean server files and test it out the same way,see if there's any problem

  4. #4
    Novice alyxlyon is offline
    MemberRank
    Aug 2011 Join Date
    2Posts

    Re: Problem with GS\LS

    I had the same problems with GS and LS, heres a fix that the install manuals forgot to mention:

    add line to specify where your java files are in at. Example

    set path="C:\Program Files (x86)\Java\jdk1.6.0_27\bin"

    to each of the bat files. both, in the startGS.bat and startLS.bat

    Also it might be wise to run the java 6 instead of the new java 7 binaries.

    Works for me after this.

  5. #5
    Account Upgraded | Title Enabled! error0024 is offline
    MemberRank
    Jul 2005 Join Date
    MalaysiaLocation
    896Posts

    Re: Problem with GS\LS

    alyxlyon : I'm not so sure about your solution,but for me i am running jdk 1.6.0_27 as well
    Maybe TS could try it out and see

  6. #6
    Novice alyxlyon is offline
    MemberRank
    Aug 2011 Join Date
    2Posts

    Re: Problem with GS\LS

    Quote Originally Posted by error0024 View Post
    alyxlyon : I'm not so sure about your solution,but for me i am running jdk 1.6.0_27 as well
    Maybe TS could try it out and see
    I run a bat file that sets paths to needed files manually. Not bothered to mess around with system config to set the paths for java. So since java file path isnt set automaticly I need to locate the path for the GS and LS, without the path set in the start bats I get the same error he is getting. When I have set path line in the startgs and startls the problem dissapears and server runs normally.

  7. #7
    Account Upgraded | Title Enabled! error0024 is offline
    MemberRank
    Jul 2005 Join Date
    MalaysiaLocation
    896Posts

    Re: Problem with GS\LS

    I think you got a point too.
    For me I usually get these errors,when i tried changing some values in the compiled java
    So i guess TS can give a try
    Cheers

  8. #8
    Member Rational is offline
    MemberRank
    May 2011 Join Date
    56Posts

    Re: Problem with GS\LS

    Your error is:
    Code:
    at org.openaion.loginserver.LoginServer.main(LoginServer.java:41)
    Caused by: java.lang.NullPointerException
            at org.openaion.commons.scripting.impl.javacompiler.ClassFileManager.<in
    it>(ClassFileManager.java:56)
            at org.openaion.commons.scripting.impl.javacompiler.ScriptCompilerImpl.d
    oCompilation(ScriptCompilerImpl.java:177)
    Your getting that because somewhere in the server there is dynamic compilation. (I think its what DAO's about.. not sure) And for dynamic compilation you need a java compiler. Based on the annoying errors that I've gotten (this was one of em), I highly suggest you DO link your paths to a Java SDK so that the source can actually get an instance to a java compiler. Obviously there is no Java compiler in JRE so link to a JDK :) Oh and you kinda have to use JDK6.

    I know I reposted everything that you guys said above, but I added some more information... Let's learn together :)



Advertisement