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>