Hi Lakshani

A fix is mentioned related to the mashupSamples > digit2image sample
https://wso2.org/jira/browse/WSAS-1491

regards,

Shavantha Weerasinghe
Senior Software Engineer QA
WSO2, Inc.
lean.enterprise.middleware.
http://wso2.com
http://wso2.org
Tel : 94 11 214 5345
Fax :94 11 2145300


On Tue, Feb 10, 2015 at 11:00 AM, Lakshani Gamage <laksh...@wso2.com> wrote:

> Hi,
>
> According to AS documentation[1], when running 'Digit2Image' sample, I got
> following exception.
>
> Cannot call method "toString" of undefined
> [2015-02-10 10:26:19,624] ERROR {org.wso2.carbon.mashup.
> javascript.hostobjects.wsrequest.WSRequestHostObject} -  Error occured
> while invoking the service
> org.apache.axis2.AxisFault: Transport error: 403 Error: Forbidden
>     at
> org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:311)
>     at
> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:194)
>     at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
>     at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451)
>     at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278)
>     at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>     at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430)
>     at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
>     at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
>     at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:554)
>     at
> org.wso2.carbon.mashup.javascript.hostobjects.wsrequest.WSRequestHostObject.jsFunction_send(WSRequestHostObject.java:385)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     at java.lang.reflect.Method.invoke(Method.java:597)
>     at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
>     at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386)
>     at
> org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
>     at
> org.jaggeryjs.rhino.c2._c_digit2image_1(///home/lakshani/Downloads/wso2as-5.2.1/repository/deployment/server/jsservices/admin/digit2image.js:126)
>     at
> org.jaggeryjs.rhino.c2.call(///home/lakshani/Downloads/wso2as-5.2.1/repository/deployment/server/jsservices/admin/digit2image.js)
>     at
> org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
>     at
> org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
>     at
> org.jaggeryjs.rhino.c2.call(///home/lakshani/Downloads/wso2as-5.2.1/repository/deployment/server/jsservices/admin/digit2image.js)
>     at
> org.jaggeryjs.scriptengine.engine.RhinoEngine.execFunc(RhinoEngine.java:519)
>     at
> org.jaggeryjs.scriptengine.engine.RhinoEngine.execFunc(RhinoEngine.java:501)
>     at
> org.jaggeryjs.scriptengine.engine.RhinoEngine.call(RhinoEngine.java:340)
>     at
> org.wso2.carbon.mashup.javascript.messagereceiver.JavaScriptEngine.call(JavaScriptEngine.java:169)
>     at
> org.wso2.carbon.mashup.javascript.messagereceiver.JavaScriptEngine.call(JavaScriptEngine.java:208)
>     at
> org.wso2.carbon.mashup.javascript.messagereceiver.JavaScriptReceiver.invokeBusinessLogic(JavaScriptReceiver.java:185)
>     at
> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
>     at
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
>     at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>     at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
>     at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
>     at
> org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>     at
> org.eclipse.equinox.http.helper.FilterServletAdaptor$FilterChainImpl.doFilter(FilterServletAdaptor.java:56)
>     at
> org.wso2.carbon.mashup.jsservices.custom.ui.CustomUIServletFilter.doFilter(CustomUIServletFilter.java:233)
>     at
> org.eclipse.equinox.http.helper.FilterServletAdaptor.service(FilterServletAdaptor.java:37)
>     at
> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>     at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>     at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>     at
> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>     at
> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>     at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>     at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>     at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>     at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>     at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>     at
> org.wso2.carbon.statistics.webapp.RequestIntercepterValve.invoke(RequestIntercepterValve.java:43)
>     at
> org.wso2.carbon.bam.webapp.stat.publisher.WebAppStatisticPublisherValve.invoke(WebAppStatisticPublisherValve.java:104)
>     at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
>     at
> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
>     at
> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
>     at
> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
>     at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
>     at
> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
>     at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
>     at
> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
>     at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>     at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
>     at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
>     at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
>     at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
>     at java.lang.Thread.run(Thread.java:662)
> [2015-02-10 10:26:19,625] ERROR
> {org.jaggeryjs.scriptengine.engine.RhinoEngine} -
> org.mozilla.javascript.EcmaError: TypeError: undefined is not an xml
> object.
> (///home/lakshani/Downloads/wso2as-5.2.1/repository/deployment/server/jsservices/admin/digit2image.js#132)
> [2015-02-10 10:26:19,625] ERROR
> {org.jaggeryjs.scriptengine.engine.RhinoEngine} -
> org.jaggeryjs.scriptengine.exceptions.ScriptException:
> org.mozilla.javascript.EcmaError: TypeError: undefined is not an xml
> object.
> (///home/lakshani/Downloads/wso2as-5.2.1/repository/deployment/server/jsservices/admin/digit2image.js#132)
>
>
> How can I fix this?
>
> [1]. https://docs.wso2.com/display/AS521/Digit2image
>
> Thank You.
> --
> Lakshani Gamage
>
> *Software Engineer*
> Mobile : +94 (0) 71 5478184 <%2B94%20%280%29%20773%20451194>
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to