Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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
Labels (5)
3 Replies
_AnonymousUser
Specialist III
Specialist III

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.
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

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