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

Camel Enrich route not marshalled properly after 2.15.2->2.16.1 update

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jboss-fuse-6.3
    • jboss-fuse-6.3
    • SwitchYard
    • None
    • Sprint 5 - towards ER2

      CamelImplementationTest has a test that has does the following :

      <enrich uri="switchyard://EnrichService?operationName=doNothing"/>

      https://github.com/jboss-fuse/switchyard/blob/2.x.redhat-6-3-x-patch/components/camel/component/src/test/resources/org/switchyard/component/camel/deploy/impl-route.xml#L19

      For some reason, this isn't being unmarshalled properly. If you set a debug breakpoint in org.switchyard.component.camel.RouteFactory.loadRoute(String), you'll notice that the resulting obj from binder.unmarshal looks like this :

      Routes: [Route(CamelTestRoute)[[From[switchyard://OrderService]] -> [Log[ItemId [${body}]], Enrich[null], To[switchyard://WarehouseService?operationName=hasItem], Log[Title Name [${body}]], Log[Properties [{{user.name}}, {{prop.domain}}, {{prop.composite}}, {{prop.component}}]]]]]

      The Enrich[null] should contain the SwitchYard endpoint uri - the null is causing the error below.

      Tests in error:
      sendOneWayMessageThroughCamelToTestAttachment(org.switchyard.component.camel.deploy.CamelImplementationTest)
      sendOneWayMessageThroughCamelToSwitchYardService(org.switchyard.component.camel.deploy.CamelImplementationTest)

      Tests run: 43, Failures: 0, Errors: 2, Skipped: 1

            tcunning@redhat.com Thomas Cunningham
            tcunning@redhat.com Thomas Cunningham
            Stefan Veres Stefan Veres
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: