localhost vs mooshup.com
Hi
I’ve created simple “YahooGeo” service. This service takes City name as input parameter and gets the Latitude and longitude form the YahooGeo.
Service: https://mooshup.com/services/nk/temp?tryit
Source: https://mooshup.com/services/nk/temp?source&content-type=text/plain
It’s working fine when it’s running from “mooshup.com”. But the problem is that, the same code doesn’t work on a localhost.
I’ve deployed the “same” code to my local WSO2 Mashup Server (running on localhost:7443). But it didn’t work. Log message was: “Error:not found”
I don’t know, if this is security issue or I’m missing something.
Is there anybody with same problem?
Any ideas?
Thanx
- Login or register to post comments
- Printer friendly version
- 242 reads











It works on my local build
What is the version of the Mahup Server that your running locally? mooshup is running on 1.0.2. I also tried your code locally (on the latest build) and it works as expected. Did you see any errors on the colsole?
Thanks,
Keith.
http://www.keith-chapman.org
Localhost exception
Hi Keith
Thanx for your reply.
Our server is a WSO2 v1.0.2 on a Windows (XP) platform.
I got exception below, when I run the service from localhost.
Fault: unknown [detail]
<soapenv:Detail>
<Exception>
org.apache.axis2.AxisFault
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:431)
at org.wso2.javascript.rhino.JavaScriptEngine.call(JavaScriptEngine.java:182)
at org.wso2.javascript.rhino.JavaScriptEngine.call(JavaScriptEngine.java:210)
at org.wso2.javascript.rhino.JavaScriptReceiver.invokeBusinessLogic(JavaScriptReceiver.java:193)
at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:148)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:121)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.wso2.mashup.transport.ServiceUIFilter.doFilter(ServiceUIFilter.java:197)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at org.wso2.wsas.security.pox.POXSecurityHandler.invoke(POXSecurityHandler.java:80)
at org.apache.axis2.engine.Phase.invoke(Phase.java:292)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:235)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:135)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:344)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:397)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:214)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:533)
at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:513)
at org.wso2.mashup.hostobjects.wsrequest.WSRequestHostImpl.jsFunction_send(WSRequestHostImpl.java:355)
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:585)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:474)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
at org.mozilla.javascript.gen.c107._c1(Administrator-temp:34)
at org.mozilla.javascript.gen.c107.call(Administrator-temp)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
at org.mozilla.javascript.gen.c107.call(Administrator-temp)
at org.wso2.javascript.rhino.JavaScriptEngine.call(JavaScriptEngine.java:180)
... 26 more
</Exception>
</soapenv:Detail>
Comment out following from axis2.xml
Hi,
Can yiu try commenting out the following section from your axis2.xml (this is located in $MASHUP_HOME/conf).
<handler name="POXSecHandler"
class="org.wso2.wsas.security.pox.POXSecurityHandler">
<order phase="Transport"/>
</handler>
This should fix your issue for now.
Thanks,
Keith.
http://www.keith-chapman.org
Thanks...
Hi Keith
Thanx a lot.
This solution fixed our problem. Now it’s working fine.