Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-2200

No component found with sc heme: file at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:442)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.1.0
    • None
    • None
    • Test made on ServiceMix 4.1-SNAPSHOT

    Description

      The following error is generated :

      karaf@root> Exception in thread "SpringOsgiExtenderThread-4" org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: file://d:/te
      mp/data/reportincident/?move=d%3A%2Ftemp%2Fbackup%2F%24%7Bdate%3Anow%3AyyyyMMdd%7D%2F%24%7Bfile%3Aname.noext%7D.bak due to: No component found with sc
      heme: file
      at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:442)
      at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:46)
      at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:144)
      at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:106)
      at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:112)
      at org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:72)
      at org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:81)
      at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:575)
      at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:132)

      with a simple route :

      <beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:context="http://www.springframework.org/schema/context"
      xmlns:osgi="http://www.springframework.org/schema/osgi"
      xmlns:osgix="http://www.springframework.org/schema/osgi-compendium"
      xmlns:camel="http://camel.apache.org/schema/spring"
      xsi:schemaLocation="
      http://www.springframework.org/schema/beans
      http://www.springframework.org/schema/beans/spring-beans.xsd
      http://www.springframework.org/schema/context
      http://www.springframework.org/schema/context/spring-context.xsd
      http://www.springframework.org/schema/osgi
      http://www.springframework.org/schema/osgi/spring-osgi.xsd
      http://camel.apache.org/schema/osgi
      http://camel.apache.org/schema/osgi/camel-osgi.xsd
      http://camel.apache.org/schema/spring
      http://camel.apache.org/schema/spring/camel-spring.xsd
      http://www.springframework.org/schema/osgi-compendium
      http://www.springframework.org/schema/osgi-compendium/spring-osgi-compendium.xsd">

      <camel:camelContext trace="true" xmlns="http://camel.apache.org/schema/osgi">

      <camel:route>
      <camel:from uri="file://d:/temp/data/reportincident/?move=d:/temp/backup/${date:now:yyyyMMdd}/${file:name.noext}.bak"/>
      <camel:setHeader headerName="origin">
      <camel:constant>file</camel:constant>
      </camel:setHeader>
      <camel:to uri="log:org.apache.camel.reportincident?level=DEBUG" />
      </camel:route>

      </camel:camelContext>
      </beans>

      Attachments

        1. reportincident.zip
          19 kB
          Moulliard Charles

        Activity

          People

            njiang Willem Jiang
            cmoulliard Moulliard Charles
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: