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.

15TH OCTOBER, COUNTY HALL, LONDON

Join us at the Community Lounge.

Register Now

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog