Error in accessing remote Services

Four Stars

Error in accessing remote Services

i have deployed Rest Webservice with ServiceLocator Checkbox enabled.

http://192.148.0.145:8040/services/customers/. Locator server is running in this host

 

in another server i have RestConsumer which consumes the above rest service. Here i have checked the ServiceLocator checkbox and in relative path i have given "/customers/"+input.number\ and seviceName DemoRest. In this runtime i have not started the Locator server.

 

when i tried to run this job i am getting below exception. Can anyone can help me in this configuration.

 

 

karaf@trun()> Exception in component tRESTClient_1 (DemoRESTConsumer)
java.lang.IllegalStateException: No endpoint found in Service Locator for servic
e {http://www.talend.org/rest/}DemoREST
at org.talend.esb.servicelocator.cxf.internal.LocatorTargetSelector.setA
ddress(LocatorTargetSelector.java:122)
at org.talend.esb.servicelocator.cxf.internal.LocatorTargetSelector.prep
are(LocatorTargetSelector.java:75)
at org.apache.cxf.jaxrs.client.ClientConfiguration.prepareConduitSelecto
r(ClientConfiguration.java:110)
at org.apache.cxf.jaxrs.client.ClientConfiguration.getConduit(ClientConf
iguration.java:204)
at org.apache.cxf.jaxrs.client.ClientConfiguration.getHttpConduit(Client
Configuration.java:214)
at demoproject.demorestconsumer_0_1.DemoRESTConsumer.tFixedFlowInput_1Pr
ocess(DemoRESTConsumer.java:1990)
at demoproject.demorestconsumer_0_1.DemoRESTConsumer.runJobInTOS(DemoRES
TConsumer.java:3948)
at org.talend.esb.job.controller.internal.SimpleJobTask$JobRunner.run(Si
mpleJobTask.java:81)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at org.talend.esb.job.controller.internal.SimpleJobTask.run(SimpleJobTas
k.java:63)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

 

 

 

 

 

Moderator

Re: Error in accessing remote Services

Hello,

What's your ESB environment? Are you able to run the consumer in the sudio?

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.

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