tREST Client component throws RedirectionException: HTTP 302 Found


When any third party API is used to fetch data and tries to interact with webservice providers (in the following stack trace, it is Zuora API), the following exception can occur:

Exception in component tRESTClient_1 (ZuoraConnection) HTTP 302 Found
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.apache.cxf.jaxrs.client.AbstractClient.convertToWebApplicationException(
at org.apache.cxf.jaxrs.client.WebClient.doInvoke(
at org.apache.cxf.jaxrs.client.WebClient.doInvoke(
at org.apache.cxf.jaxrs.client.WebClient.invoke(
at org.apache.cxf.jaxrs.client.WebClient.get(
at local_project.zuoraconnection_0_1.ZuoraConnection.tRESTClient_1Process(
at local_project.zuoraconnection_0_1.ZuoraConnection.runJobInTOS(
at local_project.zuoraconnection_0_1.ZuoraConnection.main(
[statistics] disconnected



The HTTP 302 Status code is the most common way of performing redirection. Generally, the 302 status code indicates that the resource you are requesting has redirected to another resource.


Resolve this by enabling the Use HTTP Proxy setting, available on the Advanced Settings tab of the tRestClient component.

Version history
Revision #:
7 of 7
Last update:
‎07-05-2019 03:49 AM
Updated by:

Is it fair to say that this solution only applies when we are actually using a proxy server of some sort?