weird error

Results 1 to 11 of 11
  1. #1
    .. .-- - .-.. .. ...- . iwtLive is offline
    MemberRank
    Sep 2012 Join Date
    260Posts

    weird error

    Does anyone know what might be causing this error?

    I don't get this error on my pc but I do get it on the vps
    Last edited by iwtLive; 05-04-14 at 03:33 AM.


  2. #2
    Apprentice Jcharks is offline
    MemberRank
    Feb 2014 Join Date
    EarthLocation
    23Posts

    Re: weird error

    Quote Originally Posted by dorkie4ever View Post
    Does anyone know what might be causing this error?

    I don't get this error on my pc but I do get it on the vps
    Looks like something to do with events, but im not really good with this stuff. I believe i got a simple error before and just removed the files from my server that were corrupterd fore say

  3. #3
    Member Drum is offline
    MemberRank
    Jul 2013 Join Date
    80Posts

    Re: weird error

    java.lang.NullPointerException is thrown at scripting.event.EventScriptManager.java line 70, as the JVM tells you in your .bat. Please post this line and any code related to it that might cause a NullPointerException to be thrown.

  4. #4
    .. .-- - .-.. .. ...- . iwtLive is offline
    MemberRank
    Sep 2012 Join Date
    260Posts

    Re: weird error

    Quote Originally Posted by Drum View Post
    java.lang.NullPointerException is thrown at scripting.event.EventScriptManager.java line 70, as the JVM tells you in your .bat. Please post this line and any code related to it that might cause a NullPointerException to be thrown.
    I'm using moopledev rev120, I didn't touch the EventScriptManager, also I believe the problem is not with the codes since the same source does work on my pc.
    PHP Code:
        public void init() {
            for (
    EventEntry entry events.values()) {
                try {
                    ((
    ScriptEngineentry.iv).put("em"entry.em); //line 70
                    
    entry.iv.invokeFunction("init", (Object) null);
                } catch (
    ScriptException NoSuchMethodException ex) {
                    
    Logger.getLogger(EventScriptManager.class.getName()).log(Level.SEVEREnullex);
                    
    System.out.println("Error on script: " entry.em.getName());
                }
            }
        } 
    also, these are the error logs i'm getting in the logs folder
    http://www.mediafire.com/download/lb...mmpc/error.rar
    Last edited by iwtLive; 05-04-14 at 12:46 PM.

  5. #5
    That one pokemon thing Luxray is offline
    MemberRank
    Apr 2010 Join Date
    2,043Posts

    Re: weird error

    You probably miss an eventname in your moople.ini.
    It tries to load an event that doesn't exist, or there's no event that should exist.

  6. #6
    .. .-- - .-.. .. ...- . iwtLive is offline
    MemberRank
    Sep 2012 Join Date
    260Posts

    Re: weird error

    Quote Originally Posted by Zoldyck View Post
    You probably miss an eventname in your moople.ini.
    It tries to load an event that doesn't exist, or there's no event that should exist.
    what should I do to make it work ?

  7. #7
    That one pokemon thing Luxray is offline
    MemberRank
    Apr 2010 Join Date
    2,043Posts

    Re: weird error

    Add it or remove it.
    I have no idea what misses.

  8. #8
    Member Drum is offline
    MemberRank
    Jul 2013 Join Date
    80Posts

    Re: weird error

    After a look around I think I know what's going on.

    PHP Code:
    ((ScriptEngineentry.iv).put("em"entry.em); 
    For this to throw a NullPointerException, the Invocable object, iv, is probably null, so when casted to a ScriptEngine it will still be null. Then ScriptEngine.put() is called which throws the exception.

    After looking at how the scripts were loaded, and the getInvocable() function in AbstractScriptManager.java, I think this condition causes getInvocable() to return null:

    PHP Code:
    if (!scriptFile.exists()) {                
        return 
    null;          

    Check your ServerConstants.EVENTS field and see whether the scripts specified (separated by a space) do indeed exist in your scripts/event folder.

  9. #9
    .. .-- - .-.. .. ...- . iwtLive is offline
    MemberRank
    Sep 2012 Join Date
    260Posts

    Re: weird error

    Quote Originally Posted by Drum View Post
    After a look around I think I know what's going on.

    PHP Code:
    ((ScriptEngineentry.iv).put("em"entry.em); 
    For this to throw a NullPointerException, the Invocable object, iv, is probably null, so when casted to a ScriptEngine it will still be null. Then ScriptEngine.put() is called which throws the exception.

    After looking at how the scripts were loaded, and the getInvocable() function in AbstractScriptManager.java, I think this condition causes getInvocable() to return null:

    PHP Code:
    if (!scriptFile.exists()) {                
        return 
    null;          

    Check your ServerConstants.EVENTS field and see whether the scripts specified (separated by a space) do indeed exist in your scripts/event folder.
    fixed the problem by changing the vps's OS from windows 2012 to 2003, i don't know how it fixed it but w.e. there's a new weird problem now xD i'm getting desconnected back to the login screen after typing in the pic, do you happen to know a fix for that? i thought the solution for that would be portforwarding but it's a vps so all the posts should be already open, also tried to put the firewall offline but got the same result!

  10. #10
    Member Drum is offline
    MemberRank
    Jul 2013 Join Date
    80Posts

    Re: weird error

    Quote Originally Posted by dorkie4ever View Post
    fixed the problem by changing the vps's OS from windows 2012 to 2003, i don't know how it fixed it but w.e. there's a new weird problem now xD i'm getting desconnected back to the login screen after typing in the pic, do you happen to know a fix for that? i thought the solution for that would be portforwarding but it's a vps so all the posts should be already open, also tried to put the firewall offline but got the same result!
    Try this,

    http://forum.ragezone.com/f566/read-...pdates-698669/

  11. #11
    .. .-- - .-.. .. ...- . iwtLive is offline
    MemberRank
    Sep 2012 Join Date
    260Posts

    Re: weird error

    Quote Originally Posted by Drum View Post
    no, the solution for that was different. i had to disable the pic, i don't know why it matters but i guess something with the pic makes it wrong.



Advertisement