FORUMS


Discussion about Intalio|BPP Community Edition.


Back to Intalio|BPMS 5.2 (0 viewing) 
Go to bottom Favoured: 0
TOPIC: proxy settings for Intalio BPMS server
Oct 20, 2008 11:16 pm
andrew.crapo (User)
3 posts
Fresh Boarder

Karma: 0  
I have tested and deployed the First Process example. From Designer, I can access the TimeService as long as I set the correct proxy settings within Eclipse. (I am behind a firewall.) However, when I deploy my First Process to the Intalio BPMS server and try to execute an instance of the process, I get "fault:
exceptionClass: org.apache.axis2.AxisFault, message: Read timed out." I suspect this is because without the appropriate proxy settings the server is unable to get through the firewall to invoke the TimeService Web service. However, I can't seem to find anything in documentation or in the forum that tells me how to set proxy settings for the server. How is this done?
 
  The administrator has disabled public write access.
Oct 21, 2008 12:56 am
alexis.midon (User)
24 posts
Junior Boarder

Karma: 1  
Hi Andrew,

to set the proxy for service invocations you can create a property file with the '.endpoint' extension.
The properties to use are:
http.proxy.host
http.proxy.port
http.proxy.domain
http.proxy.user
http.proxy.password

If your settings vary from one service to another, you can use the alias syntax described in the ODE user-guide [1]

The property file might be created in two different locations:
. in $bpms_server/var/process/$your_process/foo.endpoint
. or in $bpms_server/var/config/foo.endpoint

If some properties are set twice from these two locations, values in /var/config/ take precedence.

Alexis

[1] http://ode.apache.org/user-guide.html#UserGuide-EndpointConfiguration
 
 
Last Edit: 2008/10/21 00:58 By alexis.midon.
  The administrator has disabled public write access.
Oct 21, 2008 2:07 pm
andrew.crapo (User)
3 posts
Fresh Boarder

Karma: 0  
Thanks Alexis. This is very helpful.

You indicated that one possible location of the .endpoint file is $bpms_server/var/process/$your_process/foo.endpoint. I observe that there are already directories for projects at $bpms_server/var/processes/$some_process. I wonder if you meant "processes" rather than "process"?

Thanks again,
Andy
 
  The administrator has disabled public write access.
Oct 21, 2008 6:21 pm
andrew.crapo (User)
3 posts
Fresh Boarder

Karma: 0  
I created an endpoint file containing two name value pairs of the form:

http.proxy.host=proxy.mycom.com
http.proxy.port=1234

(I also tried adding http.proxy.domain.)

I placed it in $bpms_server/var/processes/FirstProcess-6 and in $bpms_server/var/config. I also tried renaming the file to {$process_dir}/endpoint-configuration.properties as suggested in the link you provided. All to no avail. I can access the TimeService from the Designer view but cannot successful invoke it when running the deployed application under the bpms server.

I get this error:
****************************************************************************
08:33:02,446 ERROR [INVOKE] Failure during invoke: Error sending message (mex={P
artnerRoleMex#884737 [PID {http://example.com/FirstProcess/FirstProcess}FirstPro
cess-6] calling (...)}): C
onnection refused: connect
08:33:22,302 ERROR [WebServiceInvocationRequestProcessor] Error processing XML r
equest
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(XMLR
equestProcessor.java:54)
at com.intalio.bpms.wsi.servlets.XMLRequestProcessorServlet.doPost(XMLRe
questProcessorServlet.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(Internal
JettyServletHolder.java:65)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:3
62)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.jav
a:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:1
81)
at org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle(Th
readClassloaderHandler.java:46)
at org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle(Inst
anceContextHandler.java:58)
at org.apache.geronimo.jetty6.handler.UserTransactionHandler.handle(User
TransactionHandler.java:48)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:7
12)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)

at org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle(Com
ponentContextHandler.java:47)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHand
lerCollection.java:211)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.
java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1
39)
at org.mortbay.jetty.Server.handle(Server.java:313)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:50
6)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnectio
n.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.ja
va:396)
at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:201)
at org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(Th
readPool.java:331)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:675)
at java.lang.Thread.run(Thread.java:595)
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.jav
a:195)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessa
geWithCommons(CommonsHTTPTransportSender.java:327)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Com
monsHTTPTransportSender.java:206)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisO
peration.java:374)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(Out
InAxisOperation.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$Http
ConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)
at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMetho
dBase.java:1973)
at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodB
ase.java:1735)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.j
ava:1098)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Htt
pMethodDirector.java:398)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMe
thodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
a:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
a:346)
at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(Abst
ractHTTPSender.java:520)
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.jav
a:191)
... 40 more
08:34:53,589 ERROR [ODEService] Timeout or execution error when waiting for resp
onse to MEX {MyRoleMex#884736 [Client ba565681-3054-41f5-b498-4d8572e76051-1] ca
lling {http://example.com/FirstProcess/FirstProcess}CanonicServiceForClient.Even
tStartMessage(...)} java.util.concurrent.TimeoutException: Message exchange org.
apache.ode.bpel.engine.MyRoleMessageExchangeImpl$ResponseFuture@9aaf0b timed out
when waiting for a response!
 
  The administrator has disabled public write access.
Oct 23, 2008 2:12 am
alexis.midon (User)
24 posts
Junior Boarder

Karma: 1  
Hi Andrew,


I apologize for the misleading information. I was one version ahead of you.
You're right the property file must be named var/processes/$your_process/endpoint-configuration.properties.

Meanwhile I've checked Axis2 source code and especially the class mentioned in your exception. And in the catch block involved the following message is logged:
"Unable to sendViaPost to url[" + url + "]"

So could you make sure that your proxy accepts POST HTTP method?

Alexis
 
 
Last Edit: 2008/10/23 02:23 By alexis.midon.
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop

Top Posters

Last 30 days

  • estebanf (35)
  • madhav.vodnala (21)
  • scott.hebden (17)
  • kevin.fernandez (14)
  • jigonzalez@vertice.es (8)
  • ianoboa (7)
  • spyridoula.markopoulou (6)
  • gino.de.cock (5)
  • lars.roediger (5)
  • asmaa.loudiyi (5)

All time

  • Antoine (2754)
  • Shivanand (1194)
  • cshekhar (933)
  • psq (797)
  • metabyte (415)
  • jag (393)
  • dfrench (367)
  • arnaud (329)
  • jalateras (325)
  • talita.pezzi (254)

Show last 4 hrs - 12 hrs - 24 hrs

Copyright © Intalio, 1999-2010.