Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Folks,
I am using tRestclient component to access data using REST API call and store that into cassandra. But when i was accessing REST API from local tomcat instance it is working fine but when i am trying access the application server which is on AWS it is giving me the following error.
My Job Flow:
tRestclient txmlmap tmap cassandra
Error i am getting
[WARN ]: org.apache.cxf.phase.PhaseInterceptorChain - Interceptor for {http://<url>:<port>/endpoint}tRESTClient has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Could not send Message.
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
at org.apache.cxf.jaxrs.client.AbstractClient.doRunInterceptorChain(AbstractClient.java:677)
at org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:1041)
at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:895)
at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:863)
at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:426)
at org.apache.cxf.jaxrs.client.WebClient.get(WebClient.java:609)
at digital_twin.test_0_1.test.tRESTClient_1Process(test.java:1342)
at digital_twin.test_0_1.test.runJobInTOS(test.java:3741)
at digital_twin.test_0_1.test.main(test.java:3570)
Caused by: java.net.ConnectException: ConnectException invoking http://<hostname>:<port>/endpoint Connection timed out: connect
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1385)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1369)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:653)
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java
Any suggestions/help/ideas
Thanks in advance