Exception in component tRESTClient

Highlighted
One Star

Exception in component tRESTClient

Hey Everyone,
Does the below error mean that I am missing a jar file in my configuration? 
I am trying to do a very simple task (GET, Accept Type JSON, Use Basic HTTP Authentication) using tRESTClient.
Exception in component tRESTClient_1
javax.ws.rs.NotFoundException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.apache.cxf.jaxrs.client.AbstractClient.convertToWebApplicationException(AbstractClient.java:461)
at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:860)
at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:831)
at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:394)
at org.apache.cxf.jaxrs.client.WebClient.get(WebClient.java:573)
at 
Thanks,
Brian
One Star

Re: Exception in component tRESTClient

Hi Brian,
Based on the Talend version, we need to add the javax.ws.rs.jar ( in my case I have added javax.ws.rs-api-2.0-m10.jar for the TOS 5.5.1 )  file under Talend open studio installation directory.
Mostly java library will be under *\TOS_ESB-r118616-V5.5.1\Studio\lib\java directory.
I hope it will solve your problem.
Employee

Re: Exception in component tRESTClient

tRESTClient creates exceptions reflectively, this error means that the target server endpoint is either not active or has no handler allocated to handle a given request URI
Cheers, Sergey
One Star

Re: Exception in component tRESTClient

How can i add authentication to a Trest Component in talend? HTTP method: Post Params is Json

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

An API-First Approach to Modernizing Applications

Learn how to use an API-First Approach to Modernize your Applications

Watch Now

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Getting Started with APIs

Find out how to get started with APIs

Read