no. because it may take very long on my pc. I will try to check. On Mon, Jun 11, 2018 at 12:17 PM Andrea Cosentino <ancosen1...@yahoo.com.invalid> wrote:
> Did you try a full rebuild? > > -- > Andrea Cosentino > ---------------------------------- > Apache Camel PMC Chair > Apache Karaf Committer > Apache Servicemix PMC Member > Email: ancosen1...@yahoo.com > Twitter: @oscerd2 > Github: oscerd > > > > > > > On Monday, June 11, 2018, 11:15:17 AM GMT+2, Onder SEZGIN < > ond...@apache.org> wrote: > > > > > > Hi Guys, > > I've recently implemented CAMEL-6840 and new xml element is introduced as a > result of it. > I am trying to create a unit test for it under camel-spring to see if the > new element is fine in XML DSL. > and i have this simple xml route. > > <camelContext xmlns="http://camel.apache.org/schema/spring"> > <errorHandler id="dlc" deadLetterUri="mock:dead" > type="DeadLetterChannel"/> > <route errorHandlerRef="dlc"> > <from uri="seda:a"/> > <throttle timePeriodMillis="1000"> > <correlationExpression> > <constant>1</constant> > </correlationExpression> > <header>max</header> > <to uri="log:result"/> > <to uri="mock:result"/> > </throttle> > </route> > > Even though the build of camel-spring is ok and i can see right definitions > in camel-spring.xsd, i can not run the unit test because of an error as > below. > > My guess is somewhat unit test can not recognize camel-spring.xsd but not > sure. > Any idea? > > Caused by: org.xml.sax.SAXParseException; lineNumber: 34; columnNumber: 32; > cvc-complex-type.2.4.a: Invalid content was found starting with element > 'correlationExpression'. One of > '{"http://camel.apache.org/schema/spring":description, > "http://camel.apache.org/schema/spring":expressionDefinition, " > http://camel.apache.org/schema/spring":constant, " > http://camel.apache.org/schema/spring":el, " > http://camel.apache.org/schema/spring":exchangeProperty, " > http://camel.apache.org/schema/spring":groovy, " > http://camel.apache.org/schema/spring":header, " > http://camel.apache.org/schema/spring":jxpath, " > http://camel.apache.org/schema/spring":javaScript, " > http://camel.apache.org/schema/spring":jsonpath, " > http://camel.apache.org/schema/spring":language, " > http://camel.apache.org/schema/spring":method, " > http://camel.apache.org/schema/spring":mvel, " > http://camel.apache.org/schema/spring":ognl, " > http://camel.apache.org/schema/spring":php, " > http://camel.apache.org/schema/spring":python, " > http://camel.apache.org/schema/spring":ref, " > http://camel.apache.org/schema/spring":ruby, " > http://camel.apache.org/schema/spring":simple, " > http://camel.apache.org/schema/spring":spel, " > http://camel.apache.org/schema/spring":sql, " > http://camel.apache.org/schema/spring":terser, " > http://camel.apache.org/schema/spring":tokenize, " > http://camel.apache.org/schema/spring":xtokenize, " > http://camel.apache.org/schema/spring":xpath, " > http://camel.apache.org/schema/spring":xquery}' is expected. >