Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-15310

camel-velocity component regression: dynamically specifying a template via header does not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Major Major
    • None
    • fuse-6.3-R17-GA
    • Camel
    • None
    • False
    • False
    • % %
    • Undefined

      Camel-velocity component allows dynamically specifying a template through a header. But it does no longer work in Fuse 6.3 R17. For instance:

      from("direct:in")
      .setHeader("CamelVelocityTemplate")
      .constant("Hi this is a velocity template that can do templating ${body}")
      .to("velocity:dummy"); 

      In Fuse 6.3 R17, it throws an error:

      java.io.FileNotFoundException: Cannot find resource: dummy in classpath for URI: dummy
      	at org.apache.camel.util.ResourceHelper.resolveMandatoryResourceAsInputStream(ResourceHelper.java:149)[232:org.apache.camel.camel-core:2.17.0.redhat-630475]
      	at org.apache.camel.component.ResourceEndpoint.loadResource(ResourceEndpoint.java:104)[232:org.apache.camel.camel-core:2.17.0.redhat-630475]
      ... 

              jondruse@redhat.com Jiri Ondrusek
              rhn-support-qluo Joe Luo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: