XiuzSource Channel problem

Results 1 to 1 of 1
  1. #1
    Proficient Member FreddanQ is offline
    MemberRank
    Oct 2010 Join Date
    SwedenLocation
    180Posts

    XiuzSource Channel problem

    Hi.

    When I'm starting up the channels, it just gives me this error:

    Spoiler:
    feb 09, 2015 5:03:42 EM net.sf.odinms.scripting.AbstractScriptManager getInvocab
    le
    ALLVARLIG: Error executing script.
    javax.script.ScriptException: ReferenceError: "importPackage" is not defined in
    <eval> at line number 40
    at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(
    NashornScriptEngine.java:586)
    at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptE
    ngine.java:570)
    at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptE
    ngine.java:525)
    at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptE
    ngine.java:521)
    at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngin
    e.java:187)
    at javax.script.AbstractScriptEngine.eval(Unknown Source)
    at net.sf.odinms.scripting.AbstractScriptManager.getInvocable(AbstractSc
    riptManager.java:39)
    at net.sf.odinms.scripting.event.EventScriptManager.<init>(EventScriptMa
    nager.java:32)
    at net.sf.odinms.net.channel.ChannelServer.run(ChannelServer.java:206)
    at net.sf.odinms.net.channel.ChannelServer.main(ChannelServer.java:574)
    Caused by: <eval>:40 ReferenceError: "importPackage" is not defined
    at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:58)
    at jdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.jav
    a:320)
    at jdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.jav
    a:292)
    at jdk.nashorn.api.scripting.NashornScriptEngine.__noSuchProperty__(Nash
    ornScriptEngine.java:272)
    at jdk.nashorn.internal.scripts.Script$engine.L:35(nashorn:engine/resour
    ces/engine.js:37)
    at jdk.nashorn.internal.scripts.Script$\^eval\_.runScript(<eval>:40)
    at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunction
    Data.java:535)
    at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.jav
    a:209)
    at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:3
    78)
    at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptE
    ngine.java:568)
    ... 8 more

    Channel 1: Listening on port: 7575
    Exception in thread "main" java.lang.NullPointerException
    at net.sf.odinms.scripting.event.EventScriptManager.init(EventScriptMana
    ger.java:49)
    at net.sf.odinms.net.channel.ChannelServer.run(ChannelServer.java:258)
    at net.sf.odinms.net.channel.ChannelServer.main(ChannelServer.java:574)
    feb 09, 2015 5:03:43 EM net.sf.odinms.scripting.event.EventManager$3 run
    ALLVARLIG: null
    javax.script.ScriptException: ReferenceError: "net" is not defined in <eval> at
    line number 17
    at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(
    NashornScriptEngine.java:586)
    at jdk.nashorn.api.scripting.NashornScriptEngine.invokeImpl(NashornScrip
    tEngine.java:511)
    at jdk.nashorn.api.scripting.NashornScriptEngine.invokeFunction(NashornS
    criptEngine.java:227)
    at net.sf.odinms.scripting.event.EventManager$3.run(EventManager.java:81
    )
    at net.sf.odinms.server.TimerManager$LoggingSaveRunnable.run(TimerManage
    r.java:134)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask.runAndReset(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.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: <eval>:17 ReferenceError: "net" is not defined
    at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:58)
    at jdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.jav
    a:320)
    at jdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.jav
    a:292)
    at jdk.nashorn.api.scripting.NashornScriptEngine.__noSuchProperty__(Nash
    ornScriptEngine.java:272)
    at jdk.nashorn.internal.scripts.Script$engine.L:35(nashorn:engine/resour
    ces/engine.js:37)
    at jdk.nashorn.internal.scripts.Script$\^eval\_.start(<eval>:17)
    at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunction
    Data.java:535)
    at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.jav
    a:209)
    at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:3
    78)
    at jdk.nashorn.api.scripting.ScriptObjectMirror.callMember(ScriptObjectM
    irror.java:185)
    at jdk.nashorn.api.scripting.NashornScriptEngine.invokeImpl(NashornScrip
    tEngine.java:505)
    ... 10 more


    Thanks in advance.

    EDIT: Fixed by downloading Java 7 instead of 8 and changing the number of channels to 2 instead of 4 in channel.properties (I think it is the wrong way to change the amount of channels).
    Last edited by FreddanQ; 09-02-15 at 07:53 PM.




Advertisement