Uploaded image for project: 'FUSE Mediation Router'
  1. FUSE Mediation Router
  2. MR-664

When ID's are unique across the camel context and not the route.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • None
    • None
    • None

    Description

      We receive the following error:

      Caused by: org.xml.sax.SAXParseException: cvc-id.2: There are multiple occurrences of ID value 'when1'.
      

      when we have two routes in one context that have the same when id:

      [1]  Sample route:
      
      <route autoStartup="true" inheritErrorHandler="true" id="XXXFiles" xmlns:ns2="http://camel.apache.org/schema/web" xmlns="http://camel.apache.org/schema/spring">
         <from uri="activemq:queue:Consumer.Camel1.VirtualTopic.XXXFiles"/>
         <choice inheritErrorHandler="true" id="choice10">
             <when inheritErrorHandler="true" id="when1">   <======= ***** ID=when1
                 <xpath>
                                     //*:Notifications/*:URDInterval
                             </xpath>
                 <to uri="activemq:topic:VirtualTopic.xpath.inbound.realtime.Interval?jmsMessageType=Text" inheritErrorHandler="true"/>
             </when>
         </choice>
      </route>
      
      <route autoStartup="true" inheritErrorHandler="true" id="YYYFiles" xmlns:ns2="http://camel.apache.org/schema/web" xmlns="http://camel.apache.org/schema/spring">
         <from uri="activemq:queue:Consumer.Camel1.VirtualTopic.YYY.MarketFiles"/>
         <choice inheritErrorHandler="true">
             <when inheritErrorHandler="true" id="when1">   <======= ***** ID=when1
                 <xpath>
                                     //*:Dispatch
                             </xpath>
                 <to uri="activemq:topic:VirtualTopic.xpath.yyy.inbound.realtime.marketdata.Dispatch?jmsMessageType=Text" inheritErrorHandler="true"/>
             </when>
         </choice>
      </route>
      

      Attachments

        Activity

          People

            cibsen@redhat.com Claus Ibsen
            rhn-support-sjavurek Susan Javurek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: