Description
When I try the Abdera paraser 1.1.3-RC1 with the Karaf 2.2.4 and Camel 2.9.0-RC2-SNAPSHOT, I got the below error
2011-10-28 15:48:21,856 | WARN | r.gov/cap/us.php | UnitOfWorkProcessor | el.processor.UnitOfWorkProcessor 114 | 62 - org.apache.camel.camel-core - 2.9.0.RC2-SNAPSHOT | Caught unhandled exception while processing ExchangeId: ID-WillemMacBookPro-53435-1319788096112-0-1 javax.xml.stream.FactoryConfigurationError: Requested factory com.ctc.wstx.stax.WstxOutputFactory cannot be located. Classloader =BundleDelegatingClassLoader for [null (camel-context.xml)] at javax.xml.stream.FactoryLocator.loadFactory(FactoryLocator.java:120)[60:org.apache.servicemix.specs.stax-api-1.0:1.8.0] at javax.xml.stream.FactoryLocator.locate(FactoryLocator.java:109)[60:org.apache.servicemix.specs.stax-api-1.0:1.8.0] at javax.xml.stream.FactoryLocator.locate(FactoryLocator.java:54)[60:org.apache.servicemix.specs.stax-api-1.0:1.8.0] at javax.xml.stream.XMLOutputFactory.newInstance(XMLOutputFactory.java:29)[60:org.apache.servicemix.specs.stax-api-1.0:1.8.0] at org.apache.axiom.om.util.StAXUtils$8.run(StAXUtils.java:633)[75:org.apache.ws.commons.axiom.axiom-api:1.2.12] at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_26] at org.apache.axiom.om.util.StAXUtils.newXMLOutputFactory(StAXUtils.java:623)[75:org.apache.ws.commons.axiom.axiom-api:1.2.12] at org.apache.axiom.om.util.StAXUtils.getXMLOutputFactory_perClassLoader(StAXUtils.java:687)[75:org.apache.ws.commons.axiom.axiom-api:1.2.12] at org.apache.axiom.om.util.StAXUtils.getXMLOutputFactory(StAXUtils.java:326)[75:org.apache.ws.commons.axiom.axiom-api:1.2.12] at org.apache.axiom.om.util.StAXUtils.getXMLOutputFactory(StAXUtils.java:291)[75:org.apache.ws.commons.axiom.axiom-api:1.2.12] at org.apache.axiom.om.util.StAXUtils.createXMLStreamWriter(StAXUtils.java:414)[75:org.apache.ws.commons.axiom.axiom-api:1.2.12] at org.apache.axiom.om.util.StAXUtils.createXMLStreamWriter(StAXUtils.java:409)[75:org.apache.ws.commons.axiom.axiom-api:1.2.12] at org.apache.axiom.om.impl.llom.OMElementImpl.toString(OMElementImpl.java:995) at org.apache.camel.impl.converter.ToStringTypeConverter.convertTo(ToStringTypeConverter.java:60)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at org.apache.camel.impl.converter.ToStringTypeConverter.convertTo(ToStringTypeConverter.java:67)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at org.apache.camel.impl.converter.BaseTypeConverterRegistry.doConvertTo(BaseTypeConverterRegistry.java:190)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at org.apache.camel.impl.converter.BaseTypeConverterRegistry.convertTo(BaseTypeConverterRegistry.java:103)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at org.apache.camel.impl.converter.BaseTypeConverterRegistry.convertTo(BaseTypeConverterRegistry.java:92)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at org.apache.camel.core.osgi.OsgiTypeConverter.convertTo(OsgiTypeConverter.java:98) at org.apache.camel.util.MessageHelper.extractBodyForLogging(MessageHelper.java:233)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at org.apache.camel.util.MessageHelper.extractBodyForLogging(MessageHelper.java:176)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at org.apache.camel.util.MessageHelper.extractBodyForLogging(MessageHelper.java:143)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at org.apache.camel.impl.DefaultMessage.toString(DefaultMessage.java:47)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at java.lang.String.valueOf(String.java:2826)[:1.6.0_26] at java.lang.StringBuilder.append(StringBuilder.java:115)[:1.6.0_26] at org.apache.camel.impl.DefaultExchange.toString(DefaultExchange.java:80)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at java.lang.String.valueOf(String.java:2826)[:1.6.0_26] at java.lang.StringBuilder.append(StringBuilder.java:115)[:1.6.0_26] at org.apache.camel.RuntimeExchangeException.createMessage(RuntimeExchangeException.java:49)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at org.apache.camel.RuntimeExchangeException.<init>(RuntimeExchangeException.java:34)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at org.apache.camel.CamelExecutionException.<init>(CamelExecutionException.java:35)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at org.apache.camel.util.ObjectHelper.wrapCamelExecutionException(ObjectHelper.java:1195)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at org.apache.camel.impl.DefaultExchange.setException(DefaultExchange.java:282)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:315)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:110)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:71)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:92)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:321)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:212)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at org.apache.camel.processor.interceptor.DefaultChannel.process(DefaultChannel.java:304)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:102)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:71)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:86)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at org.apache.camel.component.feed.FeedEntryPollingConsumer.poll(FeedEntryPollingConsumer.java:61)[81:org.apache.camel.camel-atom:2.9.0.RC2-SNAPSHOT] at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:136)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:91)[62:org.apache.camel.camel-core:2.9.0.RC2-SNAPSHOT] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_26] at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)[:1.6.0_26] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)[:1.6.0_26] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)[:1.6.0_26] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)[:1.6.0_26] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)[:1.6.0_26] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_26] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_26] at java.lang.Thread.run(Thread.java:680)[:1.6.0_26]
This error is gone if I install the stax implementation.
As there are lots other bundle have the dependencies on the stax API, it could be convince if the Abdera-Parser uses the stax api from OSGi container.
I sugest that we don't embed the stax api and stax implementation in the Abdera-Parser.