You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Eric Ma <er...@db.com> on 2009/11/02 22:26:02 UTC
CXF Aegis data binding timeout
Using CXF 2.1.3, simple front end with Aegis databinding, 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
INFO: 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 databind
step. Can someone shed light how to increase the timeout or get around of
problem? In my Google search I have seen indications that upgrade
xmlSchema.jar from 1.4.2 to 1.4.3+ will help. Does anyone have experience
about it?
Thanks,
Eric
--
View this message in context: http://old.nabble.com/CXF-Aegis-data-binding-timeout-tp26157844p26157844.html
Sent from the cxf-user mailing list archive at Nabble.com.