MTOM+Aegis Databinding Problem
------------------------------
Key: CXF-1953
URL: https://issues.apache.org/jira/browse/CXF-1953
Project: CXF
Issue Type: Bug
Components: Aegis Databinding
Affects Versions: 2.1.4
Environment: cxf 2.1.4, aegis databinding
Reporter: Andrew Kalyuzhny
When I try to use MTOM to transport large array of data from client to server,
I get following exception. I use cxf 2.1.4 and aegis databinding (can't check
on 2.1.3 because of https://issues.apache.org/jira/browse/CXF-1770. I found
this bug fixed only in 2.1.4 version).
java.lang.NullPointerException
at
org.apache.cxf.aegis.type.mtom.AbstractXOPType.writeObject(AbstractXOPType.java:178)
at
org.apache.cxf.aegis.type.basic.Base64Type.writeObject(Base64Type.java:119)
at
org.apache.cxf.aegis.databinding.XMLStreamDataWriter.write(XMLStreamDataWriter.java:92)
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:226)
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 $Proxy34.writeData(Unknown Source)
There is client initialization code:
AegisDatabinding databinding = new AegisDatabinding();
databinding.setMtomEnabled(true);
ClientProxyFactoryBean factory = new ClientProxyFactoryBean();
factory.setDataBinding(databinding);
factory.setAddress(serviceURL);
factory.setServiceClass(AdminService.class);
List<Interceptor> interceptors = new ArrayList<Interceptor>();
interceptors.add(new ClientOutInterceptor());
factory.setOutInterceptors(interceptors);
service = (AdminService) factory.create();
Thanks
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.