Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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?
Please find the configuration details for txmlmap and trestclint from the attachment.
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?
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?
I checked service and its running. But still i am not sure why it is not picking the local host.
Where is the service running? Which machine? It MUST be on the same machine if you are using localhost