synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Malith Dhanushka (JIRA)" <>
Subject [jira] [Created] (SYNAPSE-932) Class Loading issue in Script Mediator
Date Wed, 24 Apr 2013 12:07:15 GMT
Malith Dhanushka created SYNAPSE-932:

             Summary: Class Loading issue in Script Mediator
                 Key: SYNAPSE-932
             Project: Synapse
          Issue Type: Bug
          Components: Extension Mediators
    Affects Versions: 2.1
         Environment: Any
            Reporter: Malith Dhanushka
             Fix For: FUTURE

An exception similar to the following is triggered when using jars inside 'template/lib' using
the script mediator.

ERROR ScriptMediator The script engine returned an error executing the inlined js script function
com.sun.phobos.script.util.ExtendedScriptException: org.mozilla.javascript.EcmaError: ReferenceError:
"FedexTrackingClient" is not defined. (<Unknown Source>#11) in <Unknown Source>
at line number 11
    at com.sun.phobos.script.javascript.RhinoCompiledScript.eval(
    at javax.script.CompiledScript.eval(
    at org.apache.synapse.mediators.bsf.ScriptMediator.mediateForInlineScript(
    at org.apache.synapse.mediators.bsf.ScriptMediator.invokeScript(
    at org.apache.synapse.mediators.bsf.ScriptMediator.mediate(
Caused by: org.mozilla.javascript.EcmaError: ReferenceError: "FedexTrackingClient" is not
defined. (<Unknown Source>#11)
    at org.mozilla.javascript.ScriptRuntime.constructError(
    at org.mozilla.javascript.ScriptRuntime.constructError(
    at org.mozilla.javascript.ScriptRuntime.notFoundError(
    at org.mozilla.javascript.gen.c3._c0(<Unknown Source>:11)

It seems it is because of external dependencies inside 'template/lib'  are not visible for
the Rhino engine.   

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message