tREST works but not tRESTClient

Six Stars

tREST works but not tRESTClient

I am trying to create a job to make an API call.  With tREST, it works but it does not work in tRESTClient component.  It is just a simple call but I am sure it is just some settings I am missing.

 

The error I am getting:

xception in component tRESTClient_1 (RESTAPI)
javax.ws.rs.InternalServerErrorException: HTTP 500 Internal Server Error
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(AbstractClient.java:507)
at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:902)
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.post(WebClient.java:456)
at pilotproject.restapi_0_1.RESTAPI.tRESTClient_1Process(RESTAPI.java:873)
at pilotproject.restapi_0_1.RESTAPI.runJobInTOS(RESTAPI.java:1323)
at pilotproject.restapi_0_1.RESTAPI.main(RESTAPI.java:1142)

 

Please see attachments.

Highlighted
Moderator

Re: tREST works but not tRESTClient

Hello,

The 500 error occurs if you post a straight URL with no parameter.

Best regards

Sabrina

 

 
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

Cloud Free Trial

Try Talend Cloud free for 30 days.

Tutorial

Introduction to Talend Open Studio for Data Integration.

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.