You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Zach Calvert (JIRA)" <ji...@apache.org> on 2013/10/31 16:59:17 UTC
[jira] [Commented] (CAMEL-6920) Component Resolution for CXFBean
Triggers a Race Condition
[ https://issues.apache.org/jira/browse/CAMEL-6920?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13810367#comment-13810367 ]
Zach Calvert commented on CAMEL-6920:
-------------------------------------
Steps to reproduce:
Install Apache ServiceMix 4.5.3 "Full assembly" (http://servicemix.apache.org/downloads.html)
Unzip to Linux machine
Modify <smx untar root>/etc/org.apache.karaf.features.cfg
to be
{code}
featuresBoot=karaf-framework,config,activemq-broker,activemq-spring,saaj,cxf-specs,camel,activemq-camel,camel-cxf,camel-blueprint,war,jetty,camel-jetty
{code}
Not the addition of jetty and camel-jetty
Build attached source as part of the examples folder under <smx root>/examples/cxf
Deliver cxf-cxfbean-broken jar into <smx root>/deploy
Start ServiceMix (<smx root>/bin/start)
watch logs at <sxm root>/data/log/servicemix.log
Expected behavior:
Port 8585 will open up and listen for requests.
Actual behavior:
No start, error in logs
{code}
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: cxfbean://failureProof due to: No component found with scheme: cxfbean
at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:495)[101:org.apache.camel.camel-core:2.10.7]
at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:50)[101:org.apache.camel.camel-core:2.10.7]
at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:187)[101:org.apache.camel.camel-core:2.10.7]
at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:108)[101:org.apache.camel.camel-core:2.10.7]
at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:114)[101:org.apache.camel.camel-core:2.10.7]
at org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java:61)[101:org.apache.camel.camel-core:2.10.7]
at org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:55)[101:org.apache.camel.camel-core:2.10.7]
at org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:461)[101:org.apache.camel.camel-core:2.10.7]
at org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:179)[101:org.apache.camel.camel-core:2.10.7]
at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:876)[101:org.apache.camel.camel-core:2.10.7]
... 20 more
{code}
Issue can be resolved by waiting around 3 minutes after actual startup and refresh (forcing a reload) the jar via
{code}
touch ./deploy/cxf-cxfbean-broken-4.5.3.jar
{code}
8585 will start listening after forcing the reload via touch and you may then run http://localhost:8585/test or http://<server host>:8585/test
You will receive a plain/text response of "Hello world" once the issue is resolved.
> Component Resolution for CXFBean Triggers a Race Condition
> ----------------------------------------------------------
>
> Key: CAMEL-6920
> URL: https://issues.apache.org/jira/browse/CAMEL-6920
> Project: Camel
> Issue Type: Bug
> Components: camel-cxf
> Affects Versions: 2.10.7
> Environment: Apache ServiceMix 4.5.3
> Linux centora 2.6.18-308.8.2.el5 #1 SMP Tue Jun 12 09:57:26 EDT 2012 i686 i686 i386 GNU/Linux
> Reporter: Zach Calvert
>
> Making use of the cxfbean camel component triggers a race condition in ServiceMix startup.
> Logs received:
> {code}
> Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: cxfbean://failureProof due to: No component found with scheme: cxfbean
> at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:495)[101:org.apache.camel.camel-core:2.10.7]
> at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:50)[101:org.apache.camel.camel-core:2.10.7]
> at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:187)[101:org.apache.camel.camel-core:2.10.7]
> at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:108)[101:org.apache.camel.camel-core:2.10.7]
> at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:114)[101:org.apache.camel.camel-core:2.10.7]
> at org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java:61)[101:org.apache.camel.camel-core:2.10.7]
> at org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:55)[101:org.apache.camel.camel-core:2.10.7]
> at org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:461)[101:org.apache.camel.camel-core:2.10.7]
> at org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:179)[101:org.apache.camel.camel-core:2.10.7]
> at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:876)[101:org.apache.camel.camel-core:2.10.7]
> ... 20 more
> {code}
> Will attach example code to trigger error and steps to reproduce in Apache ServiceMix 4.5.3.
--
This message was sent by Atlassian JIRA
(v6.1#6144)