[ https://issues.apache.org/activemq/browse/SM-964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_39239 ]
Gert Vanthienen commented on SM-964: ------------------------------------ I noticed that this is the same exception as is mentioned in SM-960, so I tried to rerun that as well. This is the resulting error stack trace: {noformat} org.codehaus.xfire.fault.XFireFault: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Could not write to outgoing stream. at org.codehaus.xfire.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:83) at org.codehaus.xfire.service.binding.ServiceInvocationHandler.sendMessage(ServiceInvocationHandler.java:320) at org.codehaus.xfire.service.binding.ServiceInvocationHandler$1.run(ServiceInvocationHandler.java:86) at org.codehaus.xfire.service.binding.ServiceInvocationHandler.execute(ServiceInvocationHandler.java:134) at org.codehaus.xfire.service.binding.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:109) at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131) at org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64) at org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38) at org.apache.servicemix.jsr181.Jsr181ExchangeProcessor.process(Jsr181ExchangeProcessor.java:113) at org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538) at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490) at org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46) at org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:593) at org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:174) at org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:171) at org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) Caused by: org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Could not write to outgoing stream. at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:92) at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57) at org.apache.servicemix.jsr181.xfire.JbiProxyFactoryBean$1.invoke(JbiProxyFactoryBean.java:73) at $Proxy0.getInfoByCity(Unknown Source) at org.apache.servicemix.samples.citytime.CityTimeImpl.getCityTime(CityTimeImpl.java:34) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.xfire.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:59) ... 18 more Caused by: org.codehaus.xfire.fault.XFireFault: Could not write to outgoing stream. at org.codehaus.xfire.service.binding.DocumentBinding.writeMessage(DocumentBinding.java:67) at org.apache.servicemix.jsr181.xfire.JbiChannel.getContent(JbiChannel.java:173) at org.apache.servicemix.jsr181.xfire.JbiChannel.send(JbiChannel.java:122) at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26) at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131) at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79) at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114) at org.codehaus.xfire.client.Client.invoke(Client.java:336) at org.apache.servicemix.jsr181.xfire.JbiProxy$JAXWSJBIClient.invoke(JbiProxy.java:232) at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77) ... 27 more Caused by: javax.xml.stream.XMLStreamException: Trying to write a namespace declaration when there is no open start element. at com.ctc.wstx.sw.BaseStreamWriter.throwOutputError(BaseStreamWriter.java:1473) at com.ctc.wstx.sw.SimpleNsStreamWriter.writeNamespace(SimpleNsStreamWriter.java:128) at org.codehaus.xfire.util.NamespaceHelper.getUniquePrefix(NamespaceHelper.java:139) at org.codehaus.xfire.service.binding.DocumentBinding.writeMessage(DocumentBinding.java:65) ... 36 more {noformat} > Upgrade to XFire 1.2.6 > ---------------------- > > Key: SM-964 > URL: https://issues.apache.org/activemq/browse/SM-964 > Project: ServiceMix > Issue Type: Improvement > Components: servicemix-jsr181 > Affects Versions: 3.1 > Reporter: Gert Vanthienen > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.