Five Stars

Open Studio ESB - route

Hello,
I can not launch my way to perform a test, I explain the context:

In order to understand ESB, I do some tests on Talend Open Studio for ESB.
On our ESB, we connected a database, and two applications. The first application is a thin client that sends requests to retrieve an attribute of the object stored in the database. Application 2 is a heavy client that retrieves an attribute set from the object.

A web service has been developed to answer the request of the application 1.

CaptureESB.PNG

I tried to develop a route on Talend. It runs from an http request.

CaptureESB2.PNG

Nevertheless, the route does not run, I have an error with a cxf component. I can not install them, have you ever encountered this problem? Thank you for your help,


Mathieu
12 REPLIES
Fifteen Stars

Re: Open Studio ESB - route

Did this error in the Studio or in the Karaf (runtime)? Can you send us the error?

Rilhia Solutions
Five Stars

Re: Open Studio ESB - route

in the Studio.

 

Errors : 

Démarrage du job test2 a 11:28 30/07/2018.
[statistics] connecting to socket on port 3377
[statistics] connected
Failed to resolve endpoint: cxf://locator://locator/?allowStreaming=false&dataFormat=PAYLOAD&defaultOperationName=API_masseEauOperation&defaultOperationNamespace=http%3A%2F%2Fwww.talend.org%2Fservice%2F&endpointName=%7Bhttp%3A%2F%2Fwww.talend.org%2Fservice%2F%7DAPI_masseEauPort&headerFilterStrategy=%23CXF_PAYLOAD_HEADER_FILTER&in=%24%7Bin.header.id%29&properties.id=cSOAP_1&serviceName=%7Bhttp%3A%2F%2Fwww.talend.org%2Fservice%2F%7DAPI_masseEau&wsdlURL=%2FUsers%2Fmathieuperdrieau%2FDesktop%2FTOS_ESB-20180411_1414-V7.0.1%2FStudio%2Fworkspace%2FSANDRE_TEST%2Fservices%2FAPI_masseEau_0.1.wsdl due to: Failed to resolve endpoint: cxf://locator://locator/?allowStreaming=false&dataFormat=PAYLOAD&defaultOperationName=API_masseEauOperation&defaultOperationNamespace=http%3A%2F%2Fwww.talend.org%2Fservice%2F&endpointName=%7Bhttp%3A%2F%2Fwww.talend.org%2Fservice%2F%7DAPI_masseEauPort&headerFilterStrategy=%23CXF_PAYLOAD_HEADER_FILTER&in=%24%7Bin.header.id%29&properties.id=cSOAP_1&serviceName=%7Bhttp%3A%2F%2Fwww.talend.org%2Fservice%2F%7DAPI_masseEau&wsdlURL=%2FUsers%2Fmathieuperdrieau%2FDesktop%2FTOS_ESB-20180411_1414-V7.0.1%2FStudio%2Fworkspace%2FSANDRE_TEST%2Fservices%2FAPI_masseEau_0.1.wsdl due to: There are 1 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown parameters=[{in=${in.header.id)}]
org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: cxf://locator://locator/?allowStreaming=false&dataFormat=PAYLOAD&defaultOperationName=API_masseEauOperation&defaultOperationNamespace=http%3A%2F%2Fwww.talend.org%2Fservice%2F&endpointName=%7Bhttp%3A%2F%2Fwww.talend.org%2Fservice%2F%7DAPI_masseEauPort&headerFilterStrategy=%23CXF_PAYLOAD_HEADER_FILTER&in=%24%7Bin.header.id%29&properties.id=cSOAP_1&serviceName=%7Bhttp%3A%2F%2Fwww.talend.org%2Fservice%2F%7DAPI_masseEau&wsdlURL=%2FUsers%2Fmathieuperdrieau%2FDesktop%2FTOS_ESB-20180411_1414-V7.0.1%2FStudio%2Fworkspace%2FSANDRE_TEST%2Fservices%2FAPI_masseEau_0.1.wsdl due to: Failed to resolve endpoint: cxf://locator://locator/?allowStreaming=false&dataFormat=PAYLOAD&defaultOperationName=API_masseEauOperation&defaultOperationNamespace=http%3A%2F%2Fwww.talend.org%2Fservice%2F&endpointName=%7Bhttp%3A%2F%2Fwww.talend.org%2Fservice%2F%7DAPI_masseEauPort&headerFilterStrategy=%23CXF_PAYLOAD_HEADER_FILTER&in=%24%7Bin.header.id%29&properties.id=cSOAP_1&serviceName=%7Bhttp%3A%2F%2Fwww.talend.org%2Fservice%2F%7DAPI_masseEau&wsdlURL=%2FUsers%2Fmathieuperdrieau%2FDesktop%2FTOS_ESB-20180411_1414-V7.0.1%2FStudio%2Fworkspace%2FSANDRE_TEST%2Fservices%2FAPI_masseEau_0.1.wsdl due to: There are 1 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown parameters=[{in=${in.header.id)}]
	at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:763)
	at org.apache.camel.builder.BuilderSupport.endpoint(BuilderSupport.java:377)
	at sandre_test.test2_0_1.test2.getCxfEndpoint(test2.java:138)
	at sandre_test.test2_0_1.test2.doConfig(test2.java:170)
	at sandre_test.test2_0_1.test2.configure(test2.java:147)
	at org.apache.camel.builder.RouteBuilder.checkInitialized(RouteBuilder.java:462)
	at org.apache.camel.builder.RouteBuilder.configureRoutes(RouteBuilder.java:402)
	at org.apache.camel.builder.RouteBuilder.addRoutesToCamelContext(RouteBuilder.java:383)
	at org.apache.camel.impl.DefaultCamelContext$1.call(DefaultCamelContext.java:1032)
	at org.apache.camel.impl.DefaultCamelContext$1.call(DefaultCamelContext.java:1029)
	at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:3268)
	at org.apache.camel.impl.DefaultCamelContext.addRoutes(DefaultCamelContext.java:1029)
	at org.apache.camel.main.MainSupport.postProcessCamelContext(MainSupport.java:612)
	at org.apache.camel.main.MainSupport.postProcessContext(MainSupport.java:550)
	at org.apache.camel.main.Main.doStart(Main.java:136)
	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
	at org.apache.camel.main.MainSupport.run(MainSupport.java:170)
	at sandre_test.test2_0_1.test2.run(test2.java:317)
	at sandre_test.test2_0_1.test2.runJobInTOS(test2.java:423)
	at sandre_test.test2_0_1.test2.main(test2.java:393)
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: cxf://locator://locator/?allowStreaming=false&dataFormat=PAYLOAD&defaultOperationName=API_masseEauOperation&defaultOperationNamespace=http%3A%2F%2Fwww.talend.org%2Fservice%2F&endpointName=%7Bhttp%3A%2F%2Fwww.talend.org%2Fservice%2F%7DAPI_masseEauPort&headerFilterStrategy=%23CXF_PAYLOAD_HEADER_FILTER&in=%24%7Bin.header.id%29&properties.id=cSOAP_1&serviceName=%7Bhttp%3A%2F%2Fwww.talend.org%2Fservice%2F%7DAPI_masseEau&wsdlURL=%2FUsers%2Fmathieuperdrieau%2FDesktop%2FTOS_ESB-20180411_1414-V7.0.1%2FStudio%2Fworkspace%2FSANDRE_TEST%2Fservices%2FAPI_masseEau_0.1.wsdl due to: There are 1 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown parameters=[{in=${in.header.id)}]
	at org.apache.camel.impl.DefaultComponent.validateParameters(DefaultComponent.java:215)
	at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:139)
	at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:716)
	... 19 more

Job test2 terminé à 11:28 30/07/2018. [Code sortie=1]
Fifteen Stars

Re: Open Studio ESB - route

Your endpoint looks incorrect. If you look at the error message it points out what it is struggling with. Your error includes this...

 

cxf://locator://locator/?allowStreaming=false&dataFormat=PAYLOAD&defaultOperationName=API_masseEauOperation&defaultOperationNamespace=http%3A%2F%2Fwww.talend.org%2Fservice%2F&endpointName=%7Bhttp%3A%2F%2Fwww.talend.org%2Fservice%2F%7DAPI_masseEauPort&headerFilterStrategy=%23CXF_PAYLOAD_HEADER_FILTER&in=%24%7Bin.header.id%29&properties.id=cSOAP_1&serviceName=%7Bhttp%3A%2F%2Fwww.talend.org%2Fservice%2F%7DAPI_masseEau&wsdlURL=%2FUsers%2Fmathieuperdrieau%2FDesktop%2FTOS_ESB-20180411_1414-V7.0.1%2FStudio%2Fworkspace%2FSANDRE_TEST%2Fservices%2FAPI_masseEau_0.1.wsdl due to: Failed to resolve endpoint: cxf://locator://locator/?allowStreaming=false&dataFormat=PAYLOAD&defaultOperationName=API_masseEauOperation&defaultOperationNamespace=http%3A%2F%2Fwww.talend.org%2Fservice%2F&endpointName=%7Bhttp%3A%2F%2Fwww.talend.org%2Fservice%2F%7DAPI_masseEauPort&headerFilterStrategy=%23CXF_PAYLOAD_HEADER_FILTER&in=%24%7Bin.header.id%29&properties.id=cSOAP_1&serviceName=%7Bhttp%3A%2F%2Fwww.talend.org%2Fservice%2F%7DAPI_masseEau&wsdlURL=%2FUsers%2Fmathieuperdrieau%2FDesktop%2FTOS_ESB-20180411_1414-V7.0.1%2FStudio%2Fworkspace%2FSANDRE_TEST%2Fservices%2FAPI_masseEau_0.1.wsdl due to: There are 1 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown parameters=[{in=${in.header.id)}]

Can you share your cHttp configuration?

 

Rilhia Solutions
Five Stars

Re: Open Studio ESB - route

thanks,

Capture d’écran 2018-07-30 à 15.23.55.pngCapture d’écran 2018-07-30 à 15.24.23.png

Fifteen Stars

Re: Open Studio ESB - route

Untick the Service Locator tick box in the cSoap component. The route may still error, but I suspect the error will be different and will point towards a header error (this was shown in the last error message, but was hidden).

Rilhia Solutions
Five Stars

Re: Open Studio ESB - route

Indeed, it did not change anything: /

 

Démarrage du job test2 a 15:46 30/07/2018.
[statistics] connecting to socket on port 3589
[statistics] connected
Failed to resolve endpoint: cxf://http://localhost:8091/services/API_masseEau?allowStreaming=false&dataFormat=PAYLOAD&defaultOperationName=API_masseEauOperation&defaultOperationNamespace=http%3A%2F%2Fwww.talend.org%2Fservice%2F&endpointName=%7Bhttp%3A%2F%2Fwww.talend.org%2Fservice%2F%7DAPI_masseEauPort&headerFilterStrategy=%23CXF_PAYLOAD_HEADER_FILTER&in=%24%7Bin.header.id%29&properties.id=cSOAP_1&serviceName=%7Bhttp%3A%2F%2Fwww.talend.org%2Fservice%2F%7DAPI_masseEau&wsdlURL=%2FUsers%2Fmathieuperdrieau%2FDesktop%2FTOS_ESB-20180411_1414-V7.0.1%2FStudio%2Fworkspace%2FSANDRE_TEST%2Fservices%2FAPI_masseEau_0.1.wsdl due to: Failed to resolve endpoint: cxf://http://localhost:8091/services/API_masseEau?allowStreaming=false&dataFormat=PAYLOAD&defaultOperationName=API_masseEauOperation&defaultOperationNamespace=http%3A%2F%2Fwww.talend.org%2Fservice%2F&endpointName=%7Bhttp%3A%2F%2Fwww.talend.org%2Fservice%2F%7DAPI_masseEauPort&headerFilterStrategy=%23CXF_PAYLOAD_HEADER_FILTER&in=%24%7Bin.header.id%29&properties.id=cSOAP_1&serviceName=%7Bhttp%3A%2F%2Fwww.talend.org%2Fservice%2F%7DAPI_masseEau&wsdlURL=%2FUsers%2Fmathieuperdrieau%2FDesktop%2FTOS_ESB-20180411_1414-V7.0.1%2FStudio%2Fworkspace%2FSANDRE_TEST%2Fservices%2FAPI_masseEau_0.1.wsdl due to: There are 1 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown parameters=[{in=${in.header.id)}]
org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: cxf://http://localhost:8091/services/API_masseEau?allowStreaming=false&dataFormat=PAYLOAD&defaultOperationName=API_masseEauOperation&defaultOperationNamespace=http%3A%2F%2Fwww.talend.org%2Fservice%2F&endpointName=%7Bhttp%3A%2F%2Fwww.talend.org%2Fservice%2F%7DAPI_masseEauPort&headerFilterStrategy=%23CXF_PAYLOAD_HEADER_FILTER&in=%24%7Bin.header.id%29&properties.id=cSOAP_1&serviceName=%7Bhttp%3A%2F%2Fwww.talend.org%2Fservice%2F%7DAPI_masseEau&wsdlURL=%2FUsers%2Fmathieuperdrieau%2FDesktop%2FTOS_ESB-20180411_1414-V7.0.1%2FStudio%2Fworkspace%2FSANDRE_TEST%2Fservices%2FAPI_masseEau_0.1.wsdl due to: Failed to resolve endpoint: cxf://http://localhost:8091/services/API_masseEau?allowStreaming=false&dataFormat=PAYLOAD&defaultOperationName=API_masseEauOperation&defaultOperationNamespace=http%3A%2F%2Fwww.talend.org%2Fservice%2F&endpointName=%7Bhttp%3A%2F%2Fwww.talend.org%2Fservice%2F%7DAPI_masseEauPort&headerFilterStrategy=%23CXF_PAYLOAD_HEADER_FILTER&in=%24%7Bin.header.id%29&properties.id=cSOAP_1&serviceName=%7Bhttp%3A%2F%2Fwww.talend.org%2Fservice%2F%7DAPI_masseEau&wsdlURL=%2FUsers%2Fmathieuperdrieau%2FDesktop%2FTOS_ESB-20180411_1414-V7.0.1%2FStudio%2Fworkspace%2FSANDRE_TEST%2Fservices%2FAPI_masseEau_0.1.wsdl due to: There are 1 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown parameters=[{in=${in.header.id)}]
	at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:763)
	at org.apache.camel.builder.BuilderSupport.endpoint(BuilderSupport.java:377)
	at sandre_test.test2_0_1.test2.getCxfEndpoint(test2.java:100)
	at sandre_test.test2_0_1.test2.doConfig(test2.java:132)
	at sandre_test.test2_0_1.test2.configure(test2.java:109)
	at org.apache.camel.builder.RouteBuilder.checkInitialized(RouteBuilder.java:462)
	at org.apache.camel.builder.RouteBuilder.configureRoutes(RouteBuilder.java:402)
	at org.apache.camel.builder.RouteBuilder.addRoutesToCamelContext(RouteBuilder.java:383)
	at org.apache.camel.impl.DefaultCamelContext$1.call(DefaultCamelContext.java:1032)
	at org.apache.camel.impl.DefaultCamelContext$1.call(DefaultCamelContext.java:1029)
	at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:3268)
	at org.apache.camel.impl.DefaultCamelContext.addRoutes(DefaultCamelContext.java:1029)
	at org.apache.camel.main.MainSupport.postProcessCamelContext(MainSupport.java:612)
	at org.apache.camel.main.MainSupport.postProcessContext(MainSupport.java:550)
	at org.apache.camel.main.Main.doStart(Main.java:136)
	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
	at org.apache.camel.main.MainSupport.run(MainSupport.java:170)
	at sandre_test.test2_0_1.test2.run(test2.java:266)
	at sandre_test.test2_0_1.test2.runJobInTOS(test2.java:372)
	at sandre_test.test2_0_1.test2.main(test2.java:342)
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: cxf://http://localhost:8091/services/API_masseEau?allowStreaming=false&dataFormat=PAYLOAD&defaultOperationName=API_masseEauOperation&defaultOperationNamespace=http%3A%2F%2Fwww.talend.org%2Fservice%2F&endpointName=%7Bhttp%3A%2F%2Fwww.talend.org%2Fservice%2F%7DAPI_masseEauPort&headerFilterStrategy=%23CXF_PAYLOAD_HEADER_FILTER&in=%24%7Bin.header.id%29&properties.id=cSOAP_1&serviceName=%7Bhttp%3A%2F%2Fwww.talend.org%2Fservice%2F%7DAPI_masseEau&wsdlURL=%2FUsers%2Fmathieuperdrieau%2FDesktop%2FTOS_ESB-20180411_1414-V7.0.1%2FStudio%2Fworkspace%2FSANDRE_TEST%2Fservices%2FAPI_masseEau_0.1.wsdl due to: There are 1 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown parameters=[{in=${in.header.id)}]
	at org.apache.camel.impl.DefaultComponent.validateParameters(DefaultComponent.java:215)
	at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:139)
	at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:716)
	... 19 more

Job test2 terminé à 15:46 30/07/2018. [Code sortie=1]
Fifteen Stars

Re: Open Studio ESB - route

It has changed the endpoint that is trying to be reached. Do you have the endpoint ....

http://localhost:8091/services/API_masseEau

....configured anywhere? Have you created your own SOAP service? If so, this must be running. You can run it in your Studio if you have it configured. If you do not have this service configured, it will need to be configured before this route will run. 

 

I suspect that there will be quite a few little issues that will need to be resolved before this works from looking at the error. The best way to learn the ESB product is to go through these one error at a time :-)

Rilhia Solutions
Five Stars

Re: Open Studio ESB - route

Hello,

Yes, I developed my SOAP service with the studio.
I can run it, and it works perfectly

 

Capture d’écran 2018-07-31 à 09.08.20.png

Tags (1)
Fifteen Stars

Re: Open Studio ESB - route

Is it running while you try to run your route?

Rilhia Solutions
Five Stars

Re: Open Studio ESB - route

Yes, 

 

Do you want me to send you the file?
Tags (1)
Five Stars

Re: Open Studio ESB - route

I do not understand why the address of the web service takes a cxf attribute?
the cSOAP is of the cxf type? You have to install a jar, ....?

Fifteen Stars

Re: Open Studio ESB - route

It is using the Apache Camel CXF component. Take a look at this....

http://camel.apache.org/cxf.html

 

Apache Camel is the basis of the ESB product. Most (if not all) of the components are simply wrappers around Apache Camel components. Unfortunately I cannot try this out at the moment as I am not running the ESB product on the machine I am working on.

 

This may also give you a bit more of an insight into this....

http://people.apache.org/~dkulp/camel/cxf-example.html

 

What version of Talend are using? Are you using 7.01? If so, there *may* be a problem here. The endpoint being created does not look like what I would expect having read the documentation. @shong can you shed any light on this?

Rilhia Solutions