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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Rest client Exception

Hello All, 

I am new to talend and when i am trying to execute the simple rest example from the help window i am getting the below exception. Can anyone guide me please. 

[statistics] connecting to socket on port 3800
[statistics] connected
Exception in component tRESTClient_1 (RestAPI)
javax.ws.rs.WebApplicationException: HTTP 404 Not Found
at local_project.restapi_0_1.RestAPI.tFixedFlowInput_1Process(RestAPI.java:1494)
at local_project.restapi_0_1.RestAPI.runJobInTOS(RestAPI.java:2041)
at local_project.restapi_0_1.RestAPI.main(RestAPI.java:1892)
[statistics] disconnected

 

 

Labels (1)
12 Replies
Anonymous
Not applicable
Author

Can you show your tRestClient configuration please? It looks like you are making a POST request (assuming you are getting a xml document from the tXMLMap), so can you show the tXMLMap config as well?

Anonymous
Not applicable
Author

Please find the configuration details for txmlmap and trestclint from the attachment. 

 


2019-05-07_09h00_36.png
2019-05-07_09h01_13.png
Anonymous
Not applicable
Author

You have written a job to consume a message from a service with the URL http://localhost:8080/UserInfo
This needs to be running on your machine before you can consume from it. Have you written a service with this URL that you can run?

Anonymous
Not applicable
Author

No i havent created the same. Can you guide me how to crate the same.
I am using xampp apache.
Anonymous
Not applicable
Author

Hi,
The service http://localhost:8080/ is already running.
Anonymous
Not applicable
Author

Can you access it from a normal web browser? As your service is a post service, you won't be able to successfully run it via a web browser (unless you have a tool like "Advanced REST client"), but you should see your service responding. Also, where is your service running? I assume it is running in the Talend Studio that you are running this job on?

Anonymous
Not applicable
Author

I checked service and its running. But still i am not sure why it is not picking the local host. 

 

 

Anonymous
Not applicable
Author

Where is the service running? Which machine? It MUST be on the same machine if you are using localhost

Anonymous
Not applicable
Author

Yes it's running in the same machine