I am using CXF 2.1.3, with simple front end and Aegis data binding, all
configured through Spring. When I make rapid fire SOAP requests from
within Eclipse to test the end-point, from time-to-time I get the
following exception:
org.apache.cxf.phase.PhaseInterceptorChain doIntercept NFO: Interceptor
has thrown exception, unwinding now
java.lang.RuntimeException: org.apache.cxf.aegis.DatabindingException:
Couldn't write to stream.
at
org.apache.cxf.aegis.databinding.XMLStreamDataWriter.write(XMLStreamDataWriter.java:95)
at
org.apache.cxf.aegis.databinding.XMLStreamDataWriter.write(XMLStreamDataWriter.java:43)
at
org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.java:113)
at
org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutInterceptor.java:68)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:466)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:299)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:251)
at
org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
at org.apache.cxf.frontend.ClientProxy.invoke(ClientProxy.java:68)
at $Proxy32.completeInitialization(Unknown Source)
...
Caused by: org.apache.cxf.aegis.DatabindingException: Couldn't write to
stream.
at
org.apache.cxf.aegis.xml.stax.AttributeWriter.<init>(AttributeWriter.java:48)
at
org.apache.cxf.aegis.xml.stax.ElementWriter.getAttributeWriter(ElementWriter.java:183)
at
org.apache.cxf.aegis.xml.AbstractMessageWriter.writeXsiNil(AbstractMessageWriter.java:60)
at
org.apache.cxf.aegis.type.basic.BeanType.writeObjectInternal(BeanType.java:360)
at
org.apache.cxf.aegis.type.basic.BeanType.writeObject(BeanType.java:292)
at
org.apache.cxf.aegis.type.basic.ArrayType.writeValue(ArrayType.java:267)
at
org.apache.cxf.aegis.type.collection.CollectionType.writeObject(CollectionType.java:108)
at
org.apache.cxf.aegis.type.basic.BeanType.writeElement(BeanType.java:376)
at
org.apache.cxf.aegis.type.basic.BeanType.writeObjectInternal(BeanType.java:355)
at
org.apache.cxf.aegis.type.basic.BeanType.writeObject(BeanType.java:292)
at
org.apache.cxf.aegis.databinding.XMLStreamDataWriter.write(XMLStreamDataWriter.java:92)
... 13 more
Exception in thread "main" java.lang.RuntimeException:
org.apache.cxf.aegis.DatabindingException: Couldn't write to stream.
at
org.apache.cxf.aegis.databinding.XMLStreamDataWriter.write(XMLStreamDataWriter.java:95)
at
org.apache.cxf.aegis.databinding.XMLStreamDataWriter.write(XMLStreamDataWriter.java:43)
at
org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.java:113)
at
org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutInterceptor.java:68)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:466)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:299)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:251)
at
org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
at org.apache.cxf.frontend.ClientProxy.invoke(ClientProxy.java:68)
at $Proxy32.completeInitialization(Unknown Source)
There appears to be a hard limit of 20 seconds timeout in the Aegis data
binding step. Can someone shed light how to increase the timeout or get
around of problem? In my Google search I have seen indications that
upgrading xmlSchema.jar from 1.4.2 to 1.4.3+ will help. Does anyone have
experience about it?
Thanks,
Eric
---
This communication may contain confidential and/or privileged information.
If you are not the intended recipient (or have received this communication
in error) please notify the sender immediately and destroy this
communication. Any unauthorized copying, disclosure or distribution of the
material in this communication is strictly forbidden.
Deutsche Bank does not render legal or tax advice, and the information
contained in this communication should not be regarded as such.