You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2020/06/09 12:46:00 UTC

[jira] [Commented] (CAMEL-15168) Spring route cannot resolve named processor any more

    [ https://issues.apache.org/jira/browse/CAMEL-15168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17129234#comment-17129234 ] 

Claus Ibsen commented on CAMEL-15168:
-------------------------------------

Use ref:xxx in the uri if its an endpoint, or if its a processor, then use <process ref="xxx">

> Spring route cannot resolve named processor any more
> ----------------------------------------------------
>
>                 Key: CAMEL-15168
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15168
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-spring
>    Affects Versions: 3.3.0
>            Reporter: Thomas Diesler
>            Priority: Major
>             Fix For: 3.4.0
>
>
> A route [like this|https://github.com/wildfly-extras/wildfly-camel/blob/master/itests/standalone/basic/src/test/resources/spring/ws/springws-camel-context.xml#L67]
> {code}
>         <!-- consumer route (providing the actual web service) -->
>         <route>
>             <from uri="spring-ws:soapaction:http://www.stockquotes.edu/GetQuote?endpointMapping=#endpointMapping"/>
>             <to uri="responseProcessor"/>
>         </route>
> {code}
> fails to start in camel-3.3.0 with ...
> {code}
> Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create route route8 at: >>> To[responseProcessor] <<< in route: Route(route8)[From[spring-ws:soapaction:http://www.stockquot... because of No endpoint could be found for: #responseProcessor, please check your classpath contains the needed Camel component jar.
> 	at org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:393)
> 	at org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:117)
> 	at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:374)
> 	at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:348)
> 	at org.apache.camel.impl.engine.AbstractCamelContext.doInit(AbstractCamelContext.java:2617)
> 	at org.apache.camel.support.service.BaseService.init(BaseService.java:83)
> 	at org.apache.camel.impl.engine.AbstractCamelContext.init(AbstractCamelContext.java:2450)
> 	at org.apache.camel.support.service.BaseService.start(BaseService.java:111)
> 	at org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2467)
> 	at org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:121)
> 	at org.wildfly.extension.camel.service.CamelContextActivationService$1.run(CamelContextActivationService.java:63)
> 	at org.wildfly.camel.proxy.ProxyUtils$1.invoke(ProxyUtils.java:51)
> 	at com.sun.proxy.$Proxy59.run(Unknown Source)
> 	at org.wildfly.camel.proxy.ProxyUtils.invokeProxied(ProxyUtils.java:55)
> 	at org.wildfly.extension.camel.service.CamelContextActivationService.start(CamelContextActivationService.java:60)
> 	... 8 more
> Caused by: org.apache.camel.NoSuchEndpointException: No endpoint could be found for: responseProcessor, please check your classpath contains the needed Camel component jar.
> 	at org.apache.camel.impl.engine.AbstractCamelContext.doGetEndpoint(AbstractCamelContext.java:829)
> 	at org.apache.camel.impl.engine.AbstractCamelContext.getEndpoint(AbstractCamelContext.java:766)
> 	at org.apache.camel.support.CamelContextHelper.resolveEndpoint(CamelContextHelper.java:122)
> 	at org.apache.camel.reifier.SendReifier.resolveEndpoint(SendReifier.java:43)
> 	at org.apache.camel.reifier.SendReifier.createProcessor(SendReifier.java:36)
> 	at org.apache.camel.reifier.ProcessorReifier.makeProcessor(ProcessorReifier.java:766)
> 	at org.apache.camel.reifier.ProcessorReifier.addRoutes(ProcessorReifier.java:511)
> 	at org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:391)
> 	... 22 more
> {code}
> The migration guide doesn't mention required changes in this area AFAICS.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)