You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by lmuser <pa...@lmco.com> on 2012/06/01 21:49:27 UTC

xstream unmarshalling suddenly stopped working

I am using servicemix 4.4.1.  I have the following data format in my
blueprint:
		<dataFormats>
			<xstream id="xstream" encoding="">
				<camel:aliases>
					<camel:alias class="my.class"
						name="MyClass" />
				</camel:aliases>
			</xstream>
		</dataFormats>

I was able to use this to unmarshall an xml message received on a jms topic. 
Suddenly, starting yesterday, this stopped working and I have the following
error in my servicemix log file;

(DefaultMessageListenerContainer.java:947)[137:org.springframework.jms:3.0.6.RELEASE]
	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:662)[:1.6.0_26]
Caused by: javax.xml.stream.FactoryConfigurationError: Provider
com.ctc.wstx.stax.WstxInputFactory not found
	at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:50)[:]
	at
org.apache.camel.converter.jaxp.StaxConverter.getInputFactory(StaxConverter.java:148)
	at
org.apache.camel.converter.jaxp.StaxConverter.createXMLStreamReader(StaxConverter.java:92)
	at
org.apache.camel.dataformat.xstream.XStreamDataFormat.createHierarchicalStreamReader(XStreamDataFormat.java:107)
	at
org.apache.camel.dataformat.xstream.AbstractXStreamWrapper.unmarshal(AbstractXStreamWrapper.java:209)
	at
org.apache.camel.processor.UnmarshalProcessor.process(UnmarshalProcessor.java:57)
	at
org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:50)

The code that handles the receiving object has not changed and neither has
the component that is sending the xml.

How can I resolve this error?  Please help

Thank you

--
View this message in context: http://camel.465427.n5.nabble.com/xstream-unmarshalling-suddenly-stopped-working-tp5713824.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: xstream unmarshalling suddenly stopped working

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Have you dont any changes on SMX since this started to happend? eg
installed a new application, refresh some bundles etc.
Anyway have you tried restarting ServiceMix?


On Fri, Jun 1, 2012 at 9:49 PM, lmuser <pa...@lmco.com> wrote:
> I am using servicemix 4.4.1.  I have the following data format in my
> blueprint:
>                <dataFormats>
>                        <xstream id="xstream" encoding="">
>                                <camel:aliases>
>                                        <camel:alias class="my.class"
>                                                name="MyClass" />
>                                </camel:aliases>
>                        </xstream>
>                </dataFormats>
>
> I was able to use this to unmarshall an xml message received on a jms topic.
> Suddenly, starting yesterday, this stopped working and I have the following
> error in my servicemix log file;
>
> (DefaultMessageListenerContainer.java:947)[137:org.springframework.jms:3.0.6.RELEASE]
>        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:662)[:1.6.0_26]
> Caused by: javax.xml.stream.FactoryConfigurationError: Provider
> com.ctc.wstx.stax.WstxInputFactory not found
>        at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:50)[:]
>        at
> org.apache.camel.converter.jaxp.StaxConverter.getInputFactory(StaxConverter.java:148)
>        at
> org.apache.camel.converter.jaxp.StaxConverter.createXMLStreamReader(StaxConverter.java:92)
>        at
> org.apache.camel.dataformat.xstream.XStreamDataFormat.createHierarchicalStreamReader(XStreamDataFormat.java:107)
>        at
> org.apache.camel.dataformat.xstream.AbstractXStreamWrapper.unmarshal(AbstractXStreamWrapper.java:209)
>        at
> org.apache.camel.processor.UnmarshalProcessor.process(UnmarshalProcessor.java:57)
>        at
> org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:50)
>
> The code that handles the receiving object has not changed and neither has
> the component that is sending the xml.
>
> How can I resolve this error?  Please help
>
> Thank you
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/xstream-unmarshalling-suddenly-stopped-working-tp5713824.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen