Monday, February 10, 2014

Camel error - No component found with scheme: stream

During Camel startup I found following exception:

2014-02-10 09:18:51 - Context initialization failed
org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException: Failed to create route route1 at: >>> To[stream:out] <<< in route: Route(route1)[[From[file:src/data?noop=true]] -> [ConvertBod... because of Failed to resolve endpoint: stream://out due to: No component found with scheme: stream

The problem is in missing dependency to library that contains stream:out endpoint. In maven it should look like:

<dependency>
 <groupId>org.apache.camel</groupId>
 <artifactId>camel-stream</artifactId>
 <version>${camel-version}</version>
</dependency>

Value of camel-version should be same as camel-core version.

No comments:

Post a Comment