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
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.
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.
also, these are the error logs i'm getting in the logs folderPHP Code:public void init() {
for (EventEntry entry : events.values()) {
try {
((ScriptEngine) entry.iv).put("em", entry.em); //line 70
entry.iv.invokeFunction("init", (Object) null);
} catch (ScriptException | NoSuchMethodException ex) {
Logger.getLogger(EventScriptManager.class.getName()).log(Level.SEVERE, null, ex);
System.out.println("Error on script: " + entry.em.getName());
}
}
}
http://www.mediafire.com/download/lb...mmpc/error.rar
Last edited by iwtLive; 05-04-14 at 12:46 PM.
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.
Add it or remove it.
I have no idea what misses.
After a look around I think I know what's going on.
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.PHP Code:((ScriptEngine) entry.iv).put("em", entry.em);
After looking at how the scripts were loaded, and the getInvocable() function in AbstractScriptManager.java, I think this condition causes getInvocable() to 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.PHP Code:if (!scriptFile.exists()) {
return null;
}
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!