Uploaded image for project: 'SwitchYard'
  1. SwitchYard
  2. SWITCHYARD-2915

Camel Enrich route not marshalled properly with camel 2.17.0

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate Issue
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.1.0
    • Component/s: component-camel
    • Labels:
      None

      Description

      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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  igarashitm tomohisa igarashi
                  Reporter:
                  igarashitm tomohisa igarashi
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: