Hello Danny,
Yes, my simulator is running :
But I still see the error on HTTP get step:
============================================================================
| java.net.SocketTimeoutException: connect timed out
============================================================================
| Step: http GET~1
----------------------------------------------------------------------------
| Message: connect timed out
----------------------------------------------------------------------------
| Trapped Exception: connect timed out
| Trapped Message: java.net.SocketTimeoutException: connect timed out
----------------------------------------------------------------------------
STACK TRACE
java.net.SocketTimeoutException: connect timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:607)
at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:542)
at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:414)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:326)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:610)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:445)
at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
at com.itko.lisa.test.CommTrans.doSend(CommTrans.java:1157)
at com.itko.lisa.test.CommTrans.doSend(CommTrans.java:960)
at com.itko.lisa.test.CommTrans.send(CommTrans.java:914)
at com.itko.lisa.test.CommTrans.sendGET(CommTrans.java:789)
at com.itko.lisa.ws.rest.RESTNode.doSend(RESTNode.java:244)
at com.itko.lisa.ws.rest.RESTNode.doWebTrans(RESTNode.java:177)
at com.itko.lisa.ws.rest.RESTNodeBase.execute(RESTNodeBase.java:370)
at com.itko.lisa.test.TestNode.executeNode(TestNode.java:995)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1297)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1198)
at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1183)
at com.itko.lisa.test.TestCase.executeTest(TestCase.java:1124)
at com.itko.lisa.coordinator.Instance.run(Instance.java:208)
============================================================================
Original Message:
Sent: Apr 14, 2022 03:45 AM
From: Danny Saro
Subject: Getting Socket timeout error for HTTP request
Hi Sayana,
My understanding is you are trying to run a devtest testcase, this is where
the connect time out appears.
I also understand you have tested the connection earlier from AWS with a
curl statement.
A testcase would be executed inside a Simulator process. Can you confirm
that the Simulator process is running on the same host as the host from
which you tested with curl?
Cheers,
Danny Saro
Client Services Consultant
Broadcom Software
-------------------------------------------------
--
This electronic communication and the information and any files transmitted
with it, or attached to it, are confidential and are intended solely for
the use of the individual or entity to whom it is addressed and may contain
information that is confidential, legally privileged, protected by privacy
laws, or otherwise restricted from disclosure to anyone else. If you are
not the intended recipient or the person responsible for delivering the
e-mail to the intended recipient, you are hereby notified that any use,
copying, distributing, dissemination, forwarding, printing, or copying of
this e-mail is strictly prohibited. If you received this e-mail in error,
please return the e-mail to the sender, delete it from your computer, and
destroy any printed copy of it.
Original Message:
Sent: 4/13/2022 5:18:00 PM
From: Sayana Varughese
Subject: RE: Getting Socket timeout error for HTTP request
I added the proxy in the local.properties file of my DevTest Server, but i still get the: | java.net.SocketTimeoutException: connect timed out error.
My local.properties file:
## === Leave blank to use integrated NTLM authentication
lisa.http.webProxy.host.domain.encrypted=lea7915d864cb1089c728b2cd5bab8646df79345b40615fd6569e0305fdeca94798c23053edcdcdd132ad7207ad67a25ec2b1d1f5e8fe6e6f4b5fad134fa70edc3d3f82d50969011aedc8f04f12bc8f0c4731bb284d9398b64e3a7a516a43337457930a6c506691cc096eafd4566c36852d0b2d241654e194bd8088c07bc06a1e974057
#lisa.http.webProxy.host.account=
#lisa.http.webProxy.host.credential=
## === Exclude **** host names from proxy use - default value is true
lisa.http.webProxy.nonProxyHosts.excludeSimple=true
Original Message:
Sent: Apr 13, 2022 02:50 PM
From: Sayana Varughese
Subject: Getting Socket timeout error for HTTP request
Hello All,
Currently my DevTest server is installed on AWS cloud instance within the client network and is trying to reach a service that is deployed on-prem.
The firewall connectivity has been established. I am able to "curl" to the service endpoint from my AWS linux system and get a connection successful message.
Note that I do have a proxy that I use which has been set up on the AWS instance's env.
When I deploy my mar file, the http get step in that mar file fails with : | java.net.SocketTimeoutException: connect timed out
======================
I tried adding the proxy details in the Companion-common-web http proxy tab and provided the hostname and port
but i get the error: | java.net.UnknownHostException:<vpce dns>:Name or service not known
Kindly advice on what can be done or how i can resolve this.
Thanks and Regards
Sayana Varughese