The camel-saxon quickstart is failing on Java 1.8 because one of the files in Saxon isn't compatible with 1.8. The error below looks the same as the one here :
https://saxonica.plan.io/issues/1944
------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.switchyard.quickstarts.camel.saxon.CamelServiceTest log4j:WARN No appenders could be found for logger (org.jboss.logging). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. Jan 19, 2015 12:58:37 PM org.apache.deltaspike.core.util.ProjectStageProducer initProjectStage INFO: Computed the following DeltaSpike ProjectStage: Production Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 6.072 sec <<< FAILURE! testXQueryRouting(org.switchyard.quickstarts.camel.saxon.CamelServiceTest) Time elapsed: 0.496 sec <<< ERROR! org.switchyard.test.InvocationFaultException at org.switchyard.test.Invoker.sendInOnly(Invoker.java:290) at org.switchyard.quickstarts.camel.saxon.CamelServiceTest.testXQueryRouting(CamelServiceTest.java:57) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.switchyard.test.SwitchYardRunner.run(SwitchYardRunner.java:85) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75) Caused by: org.switchyard.HandlerException: org.apache.camel.RuntimeExpressionException: Cannot create xpath expression at org.switchyard.component.camel.switchyard.SwitchYardConsumer.handleMessage(SwitchYardConsumer.java:115) at org.switchyard.handlers.ProviderHandler$1.run(ProviderHandler.java:60) at org.switchyard.handlers.ProviderHandler$1.run(ProviderHandler.java:58) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:549) at org.switchyard.security.provider.DefaultSecurityProvider.runAs(DefaultSecurityProvider.java:169) at org.switchyard.handlers.ProviderHandler.handleMessage(ProviderHandler.java:65) at org.switchyard.bus.camel.processors.HandlerProcessor.process(HandlerProcessor.java:61) at org.apache.camel.processor.DelegateSyncProcessor.process(DelegateSyncProcessor.java:63) at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72) at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:91) at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:91) at org.switchyard.bus.camel.audit.FaultProcessor.process(FaultProcessor.java:45) at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:91) at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191) at org.apache.camel.processor.Pipeline.process(Pipeline.java:118) at org.apache.camel.processor.Pipeline.process(Pipeline.java:80) at org.apache.camel.processor.TryProcessor.process(TryProcessor.java:111) at org.apache.camel.processor.TryProcessor.process(TryProcessor.java:82) at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72) at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:91) at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:91) at org.switchyard.bus.camel.audit.FaultProcessor.process(FaultProcessor.java:45) at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:91) at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191) at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191) at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:51) at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191) at org.apache.camel.processor.UnitOfWorkProducer.process(UnitOfWorkProducer.java:74) at org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:375) at org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:343) at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:233) at org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:343) at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:168) at org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:119) at org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:105) at org.switchyard.bus.camel.ExchangeDispatcher.dispatch(ExchangeDispatcher.java:87) at org.switchyard.bus.camel.CamelExchange.sendInternal(CamelExchange.java:238) at org.switchyard.bus.camel.CamelExchange.send(CamelExchange.java:175) at org.switchyard.test.Invoker.sendInOnly(Invoker.java:287) ... 31 more Caused by: org.apache.camel.RuntimeExpressionException: Cannot create xpath expression at org.apache.camel.builder.xml.XPathBuilder.evaluateAs(XPathBuilder.java:765) at org.apache.camel.builder.xml.XPathBuilder.evaluate(XPathBuilder.java:744) at org.apache.camel.builder.xml.XPathBuilder.evaluate(XPathBuilder.java:167) at org.apache.camel.processor.SetBodyProcessor.process(SetBodyProcessor.java:46) at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72) at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:398) at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191) at org.apache.camel.processor.Pipeline.process(Pipeline.java:118) at org.apache.camel.processor.Pipeline.process(Pipeline.java:80) at org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:111) at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72) at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:398) at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191) at org.apache.camel.processor.Pipeline.process(Pipeline.java:118) at org.apache.camel.processor.Pipeline.process(Pipeline.java:80) at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191) at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:105) at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:87) at org.switchyard.component.camel.switchyard.SwitchYardConsumer.invokeCamelProcessor(SwitchYardConsumer.java:182) at org.switchyard.component.camel.switchyard.SwitchYardConsumer.handleMessage(SwitchYardConsumer.java:96) ... 70 more Caused by: org.apache.camel.RuntimeExpressionException: Error starting XPathBuilder at org.apache.camel.builder.xml.XPathBuilder.createXPathExpression(XPathBuilder.java:933) at org.apache.camel.builder.xml.XPathBuilder.evaluateAs(XPathBuilder.java:761) ... 89 more Caused by: java.lang.RuntimeException: XPathFactory#newInstance() failed to create an XPathFactory for the default object model: http://java.sun.com/jaxp/xpath/dom with the XPathFactoryConfigurationException: javax.xml.xpath.XPathFactoryConfigurationException: java.util.ServiceConfigurationError: javax.xml.xpath.XPathFactory: jar:file:/Users/tcunning/.m2/repository/net/sf/saxon/Saxon-HE/9.5.1-2/Saxon-HE-9.5.1-2.jar!/META-INF/services/javax.xml.xpath.XPathFactory:2: Illegal configuration-file syntax at javax.xml.xpath.XPathFactory.newInstance(XPathFactory.java:102) at org.apache.camel.builder.xml.XPathBuilder.createDefaultXPathFactory(XPathBuilder.java:1223) at org.apache.camel.builder.xml.XPathBuilder.createXPathFactory(XPathBuilder.java:1201) at org.apache.camel.builder.xml.XPathBuilder.doStart(XPathBuilder.java:1157) at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) at org.apache.camel.builder.xml.XPathBuilder.createXPathExpression(XPathBuilder.java:931) ... 90 more
Results :
Tests in error: testXQueryRouting(org.switchyard.quickstarts.camel.saxon
|