Failure during invoke of external webservice 4 Months, 1 Week ago
Karma: 0
Hi,
i´m using the Intalio Server 5.2 and the Intalio Designer 5.2 both on a Macbook Pro with MacOS 10.5 (Leopard).
I designed a process wich calls an external webservice. It´s a weather-webservice from webserviceX.NET wich provides weather information for a given country and city. I know that the process is designed correctly and the weather-webservice is availible. I successfully deployed the process in the Intalio Server.
Now i have the following problem:
I log in to the Intalio Server over the bpms-console. Then i select my weatherservice-process in the processes tab. Then i select the start button. After that a window appears where i can enter the parameters to invoke the process. I start the process instance by hitting the submit button. After short period of time i get the response from the weater-webservice.
But i get only a response if i´m in my home network-enviroment. If i try the invokation of my process in the network-enviroment of my employer i get a "exceptionClass: org.apache.axis2.AxisFault message: Read timed out" message.
In the console of the Intalio Server i get the following exceptions:
11:06:58,219 ERROR [SoapExternalService] Error sending message (mex={PartnerRoleMex#1212417 [PID {http://example.com/WeatherRequest/weatherprocess}weatherprocess-4] calling
(...)}): Transport error: 501 Error: Not Implemented org.apache.axis2.AxisFault: Transport error: 501 Error: Not Implemented at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:298) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:192) at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) at org.apache.ode.axis2.SoapExternalService$1$1.call(SoapExternalService.java:154) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:613) 11:06:58,300 ERROR [INVOKE] Failure during invoke: Error sending message (mex={PartnerRoleMex#1212417 [PID {http://example.com/WeatherRequest/weatherprocess}weatherprocess-4] calling
(...)}): Transport error: 501 Error: Not Implemented 11:07:25,491 ERROR [WebServiceInvocationRequestProcessor] Error processing XML request java.lang.RuntimeException: org.apache.axis2.AxisFault: Read timed out at com.intalio.bpms.wsi.servlets.ws.WebServiceInvocationRequestProcessor.buildResponse(WebServiceInvocationRequestProcessor.java:219) at com.intalio.bpms.wsi.servlets.XMLRequestProcessor.processRequest(XMLRequestProcessor.java:54) at com.intalio.bpms.wsi.servlets.XMLRequestProcessorServlet.doPost(XMLRequestProcessorServlet.java:26) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.apache.geronimo.jetty6.InternalJettyServletHolder.handle(InternalJettyServletHolder.java:65) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle(ThreadClassloaderHandler.java:46) at org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle(InstanceContextHandler.java:58) at org.apache.geronimo.jetty6.handler.UserTransactionHandler.handle(UserTransactionHandler.java:48) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle(ComponentContextHandler.java:47) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:844) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396) at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:201) at org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:331) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:613) Caused by: org.apache.axis2.AxisFault: Read timed out at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:195) at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508) at com.intalio.bpms.wsi.servlets.ws.WebServiceInvocationRequestProcessor.buildResponse(WebServiceInvocationRequestProcessor.java:201) ... 30 more Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read(BufferedInputStream.java:235) at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78) at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106) at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413) at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973) at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:520) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:191) ... 40 more
There is no problem if i use SoapUI to invoke the weather-webservice. By using SoapUI it makes no difference if i´m in my home network-enviroment or in the network-enviroment of my employer.
Do i have to modify the configuration of the Intalio Server if i use it in the network-enviroment of my employer or has the network-enviroment to be configured? What has to be configured in the network-enviroment of my employer? Why does the process invokation work in my home network-enviroment without special configuration?
Re:Failure during invoke of external webservice 4 Months ago
Karma: 0
Hi Venkaiah,
thanks for your reply.
I did the First Process example, like it was described in the Tutorial.
And i unfortunatly have the same results. The First Process example works in my home network-enviroment. If i start the process with the parameter "boston" as described in the tutorial i get a valid response. But at work at my employer i get the following message in the form:
fault: exceptionClass: org.apache.axis2.AxisFault message: Read timed out
And at command-line of the Intalio Server there were the following exceptions:
10:46:26,684 ERROR [SoapExternalService] Error sending message (mex={PartnerRoleMex#1966081 [PID {http://example.com/FirstProcess/FirstProcess}FirstProcess-42] calling
(...)}): Transport error: 501 Error: Not Implemented org.apache.axis2.AxisFault: Transport error: 501 Error: Not Implemented at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:298) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:192) at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) at org.apache.ode.axis2.SoapExternalService$1$1.call(SoapExternalService.java:154) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:613) 10:46:26,755 ERROR [INVOKE] Failure during invoke: Error sending message (mex={PartnerRoleMex#1966081 [PID {http://example.com/FirstProcess/FirstProcess}FirstProcess-42] calling
(...)}): Transport error: 501 Error: Not Implemented 10:46:54,930 ERROR [WebServiceInvocationRequestProcessor] Error processing XML request java.lang.RuntimeException: org.apache.axis2.AxisFault: Read timed out at com.intalio.bpms.wsi.servlets.ws.WebServiceInvocationRequestProcessor.buildResponse(WebServiceInvocationRequestProcessor.java:219) at com.intalio.bpms.wsi.servlets.XMLRequestProcessor.processRequest(XMLRequestProcessor.java:54) at com.intalio.bpms.wsi.servlets.XMLRequestProcessorServlet.doPost(XMLRequestProcessorServlet.java:26) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.apache.geronimo.jetty6.InternalJettyServletHolder.handle(InternalJettyServletHolder.java:65) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle(ThreadClassloaderHandler.java:46) at org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle(InstanceContextHandler.java:58) at org.apache.geronimo.jetty6.handler.UserTransactionHandler.handle(UserTransactionHandler.java:48) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle(ComponentContextHandler.java:47) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:844) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396) at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:201) at org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:331) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:613) Caused by: org.apache.axis2.AxisFault: Read timed out at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:195) at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508) at com.intalio.bpms.wsi.servlets.ws.WebServiceInvocationRequestProcessor.buildResponse(WebServiceInvocationRequestProcessor.java:201) ... 30 more Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read(BufferedInputStream.java:235) at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78) at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106) at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413) at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973) at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:520) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:191) ... 40 more 10:48:25,674 ERROR [ODEService] Timeout or execution error when waiting for response to MEX {MyRoleMex#1966080 [Client 0e512cd2-f4f7-4114-8834-669987de50fd-1] calling {http://example.com/FirstProcess/FirstProcess}CanonicServiceForClient.EventStartMessage(...)} java.util.concurrent.TimeoutException: Message exchange org.apache.ode.bpel.engine.MyRoleMessageExchangeImpl$ResponseFuture@7f86cf timed out when waiting for a response!
So both processes, my weather-process and the first-process/time-process works on my home network enviroment but not in the network-enviroment of my employer. So the configuration of both processes are valid.
I think this is a problem of the network-enviroment. But where do i have to search.
Do i have to modify the configuration of the Intalio Server if i use it in the network-enviroment of my employer or has the network-enviroment to be configured?
What has to be configured in the network-enviroment of my employer?
Why does the process invokation work in my home network-enviroment without special configuration?
Re:Failure during invoke of external webservice 4 Months ago
Karma: 4
Hi Tobias,
Follow the given configuration steps in server side.
Configuration:
1.You need to make the changes in axis2.xml file located under: intalio-bpms-server-5.1.1\repository\com\intalio\bpms\pxe\5.1.2\pxe-5.1.2.war\WEB-INF\conf 2.In the Axis2 configuration file , you should find the following declaration:
HTTP/1.1 chunked
3.You can either remove or comment the section for "Transfer-Encoding" and then restart the server.
Re:Failure during invoke of external webservice 4 Months ago
Karma: 0
Hi Venkaiah,
i have to thank you very much this configuration steps solved my problem.
There are two sections in the axis2.xml file. One section for http and one for https. In both sections i commented the section for "Transfer-Encoding".
Now both processes, FirstProcess and WeatherProcess, work as aspected. Now i can continue my work.