camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Unit Test Error in camel-core
Date Tue, 27 Oct 2009 08:04:28 GMT
Hi

Is this still a problem?

Blame it on sun and their pesky adding all kind of XML stuff into the
JDK core. ;)

Our CI servers is not tracking trunk at the moment due to a pending release.

On Sat, Oct 24, 2009 at 3:26 PM, Christian Schneider
<chris@die-schneider.net> wrote:
> Hi all,
>
> I am getting the following Unit test error in camel-core. Any idea what
> happens there?
> My environment is JDK 1.6 Update 14 on Windows Vista.
>
> Greetings
>
> Christian
>
> -------------------------------------------------------------------------------
> Test set: org.apache.camel.component.bean.BeanProxyTest
> -------------------------------------------------------------------------------
> Tests run: 9, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.601 sec
> <<< FAILURE!
> testBeanProxyFailureNullBody(org.apache.camel.component.bean.BeanProxyTest)
>  Time elapsed: 0.263 sec  <<< ERROR!
> org.apache.camel.builder.xml.InvalidXPathExpression: Invalid xpath:
> /order/@type = 'book'. Reason: javax.xml.xpath.XPathExpressionException
>   at
> org.apache.camel.builder.xml.XPathBuilder.doInEvaluateAs(XPathBuilder.java:502)
>   at
> org.apache.camel.builder.xml.XPathBuilder.evaluateAs(XPathBuilder.java:460)
>   at
> org.apache.camel.builder.xml.XPathBuilder.matches(XPathBuilder.java:121)
>   at
> org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:48)
>   at
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
>   at
> org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:53)
>   at
> org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:82)
>   at
> org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:85)
>   at
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
>   at
> org.apache.camel.processor.RedeliveryErrorHandler.processExchange(RedeliveryErrorHandler.java:232)
>   at
> org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:162)
>   at
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:91)
>   at
> org.apache.camel.processor.DefaultErrorHandler.process(DefaultErrorHandler.java:49)
>   at
> org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:201)
>   at
> org.apache.camel.processor.UnitOfWorkProcessor.processNext(UnitOfWorkProcessor.java:54)
>   at
> org.apache.camel.processor.DelegateProcessor.process(DelegateProcessor.java:48)
>   at
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
>   at
> org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:45)
>   at
> org.apache.camel.component.bean.CamelInvocationHandler.invoke(CamelInvocationHandler.java:65)
>   at $Proxy7.submitOrderStringReturnString(Unknown Source)
>   at
> org.apache.camel.component.bean.BeanProxyTest.testBeanProxyFailureNullBody(BeanProxyTest.java:88)
> Caused by: javax.xml.xpath.XPathExpressionException
>   at
> com.sun.org.apache.xpath.internal.jaxp.XPathExpressionImpl.evaluate(XPathExpressionImpl.java:193)
>   at
> org.apache.camel.builder.xml.XPathBuilder.doInEvaluateAs(XPathBuilder.java:488)
>   ... 46 more
> Caused by: javax.xml.transform.TransformerException: Unable to evaluate
> expression using this context
>   at com.sun.org.apache.xpath.internal.XPath.execute(XPath.java:363)
>   at
> com.sun.org.apache.xpath.internal.jaxp.XPathExpressionImpl.eval(XPathExpressionImpl.java:122)
>   at
> com.sun.org.apache.xpath.internal.jaxp.XPathExpressionImpl.eval(XPathExpressionImpl.java:98)
>   at
> com.sun.org.apache.xpath.internal.jaxp.XPathExpressionImpl.evaluate(XPathExpressionImpl.java:180)
>   ... 47 more
> Caused by: java.lang.RuntimeException: Unable to evaluate expression using
> this context
>   at
> com.sun.org.apache.xpath.internal.axes.NodeSequence.setRoot(NodeSequence.java:212)
>   at
> com.sun.org.apache.xpath.internal.axes.LocPathIterator.execute(LocPathIterator.java:210)
>   at
> com.sun.org.apache.xpath.internal.Expression.execute(Expression.java:153)
>   at
> com.sun.org.apache.xpath.internal.operations.Operation.execute(Operation.java:107)
>   at com.sun.org.apache.xpath.internal.XPath.execute(XPath.java:335)
>   ... 50 more
>
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Mime
View raw message