Re: [Dev] Script Mediator Error in Developer Studio 3.7.1

2015-07-28 Thread Viraj Rajaguru
Hi Nuwan, There is a class loading issue in DevS 3.7.1 on MacOS with Java 7 update 55(7u55) and later updates. That's because you are getting the same issue irrespective of having CDATA tags or not in the payload.(There shouldn't be any issue if you enter the JS script without CDATA tag as Sohani

Re: [Dev] Script Mediator Error in Developer Studio 3.7.1

2015-07-28 Thread Viraj Rajaguru
[Correction] On Tue, Jul 28, 2015 at 11:52 AM, Viraj Rajaguru vi...@wso2.com wrote: Hi Nuwan, There is a class loading issue in DevS 3.7.1 on MacOS with Java 7 update 55(7u55) and later updates. That's because you are getting the same issue irrespective of having CDATA tags or not in the

[Dev] Script Mediator Error in Developer Studio 3.7.1

2015-07-27 Thread Nuwan Dias
Hi, I'm using Developer Studio version 3.7.1 on MacOS. When I try to use the Script Mediator within an API Resource's in-sequence, it doesn't allow me to save the API and gives an error. The following is the error message *Save failed. Following error(s) have been detected. Please see the error

Re: [Dev] Script Mediator Error in Developer Studio 3.7.1

2015-07-27 Thread Sohani Weerasinghe
Hi Nuwan, It seems this exception occurs in ScriptMediator.java (at org.apache.synapse.mediators.bsf - line 354) when trying to compile the script. *compiledScript = ((Compilable) scriptEngine).compile(scriptSourceCode);* @Jasintha/ Viraj : This can be reproduced even in linux and any idea

Re: [Dev] Script Mediator Error in Developer Studio 3.7.1

2015-07-27 Thread Sohani Weerasinghe
Hi Jasintha, This is the error I am getting org.apache.synapse.SynapseException: Exception initializing inline script at org.apache.synapse.mediators.bsf.ScriptMediator.initInlineScript(ScriptMediator.java:365) at org.apache.synapse.mediators.bsf.ScriptMediator.init(ScriptMediator.java:152) at

Re: [Dev] Script Mediator Error in Developer Studio 3.7.1

2015-07-27 Thread Jasintha Dasanayake
On Tue, Jul 28, 2015 at 7:07 AM, Sohani Weerasinghe soh...@wso2.com wrote: Hi Nuwan, It seems this exception occurs in ScriptMediator.java (at org.apache.synapse.mediators.bsf - line 354) when trying to compile the script. *compiledScript = ((Compilable)

Re: [Dev] Script Mediator Error in Developer Studio 3.7.1

2015-07-27 Thread Nuwan Dias
I doubt its due to the CDATA tags. I tried both with and without CDATA tags, but it throws the same error always. I even tried providing the content through the source editor, but saving from the source editor also gives the same error. Please note that an API with the exact configuration can be