[
https://wso2.org/jira/browse/MASHUP-1025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18306#action_18306
]
Keith Godwin Chapman commented on MASHUP-1025:
----------------------------------------------
Charitha,
This happened because the request you sent did not have enough information for
it to be dispatched to the correct operation. As you might recall we cave a few
ways of dispatching,
1. RequestURI based
2. Addressing based
3. SOAPAction based,
4. SOAP Body based
4. HTTPLocation based
In your case you sent a http request (cause you set useSOAP to false) to
http://localhost:7762/services/system/version. Now that contains enough
information do dispatch to the correct service but it does not contain
information to dispatch to the correct operation. Hence the response is
expected.
> Service invocation falis if useSOAP option is set to false in WSRequest host
> object
> -----------------------------------------------------------------------------------
>
> Key: MASHUP-1025
> URL: https://wso2.org/jira/browse/MASHUP-1025
> Project: WSO2 Mashup Server
> Issue Type: Bug
> Components: Core
> Environment: winxp, jdk15
> Reporter: Charitha Kankanamge
> Assignee: Keith Godwin Chapman
>
> I got the following exception when invoking service if useSOAP option is set
> to false in WSRequest host object.
> ERROR [2008-07-23 23:35:39,890] The endpoint reference (EPR) for the
> Operation not found is http://localhost:7762/services/system-version and the
> WSA Action = null
> org.apache.axis2.AxisFault: The endpoint reference (EPR) for the Operation
> not found is http://localhost:7762/services/system-version and the WSA Action
> = null
> at
> org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:88)
> at org.apache.axis2.engine.Phase.invoke(Phase.java:333)
> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)
> at
> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:136)
> at
> org.apache.axis2.transport.http.util.RESTUtil.processXMLRequest(RESTUtil.java:84)
> at
> org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processXMLRequest(AxisServlet.java:813)
> at
> org.wso2.mashup.transport.MashupServlet.processRestRequest(MashupServlet.java:129)
> at
> org.wso2.mashup.transport.MashupServlet.doPost(MashupServlet.java:67)
> 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:269)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> at
> org.wso2.mashup.transport.ServiceUIFilter.doFilter(ServiceUIFilter.java:207)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> at
> org.wso2.adminui.AdminUIServletFilter.doFilter(AdminUIServletFilter.java:135)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
> at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
> at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
> at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
> at java.lang.Thread.run(Thread.java:595)
> ERROR [2008-07-23 23:35:39,906] JavaException: org.wso2.mashup.MashupFault:
> <Exception>org.apache.axis2.AxisFault: The endpoint reference (EPR) for the
> Operation not found is http
> ://localhost:7762/services/system-version and the WSA Action = null
> at
> org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:88)
> at org.apache.axis2.engine.Phase.invoke(Phase.java:333)
> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
> at
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)
> at
> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:136)
> at
> org.apache.axis2.transport.http.util.RESTUtil.processXMLRequest(RESTUtil.java:84)
> at
> org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processXMLRequest(AxisServlet.java:813)
> at
> org.wso2.mashup.transport.MashupServlet.processRestRequest(MashupServlet.java:129)
> at
> org.wso2.mashup.transport.MashupServlet.doPost(MashupServlet.java:67)
> 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:269)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> at
> org.wso2.mashup.transport.ServiceUIFilter.doFilter(ServiceUIFilter.java:207)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> at
> org.wso2.adminui.AdminUIServletFilter.doFilter(AdminUIServletFilter.java:135)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
> at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
> at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
> at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
> at java.lang.Thread.run(Thread.java:595)
> Steps to reproduce:
> ================
> 1. Deploy the following mashup
> function invokeGetVersion(){
> var version = new WSRequest();
> var options = new Array();
> options.useSOAP = false;
> options.useWSA = 1.0;
> options.action =
> "http://services.mashup.wso2.org/version/ServiceInterface/getVersionRequest";
> var payload = null;
> try {
> version.open(options,"http://localhost:7762/services/system/version", false);
> version.send(payload);
> result = version.responseE4X;
> } catch (e) {
> system.log(e.toString(),"error");
> return e.toString();
> }
> return result;
> }
> Note that SOAP is disabled with options.useSOAP = false;
> 2. Run this mashup by clicking on Tryit
> You will get the above exception.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
Mashup-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev