I have error when mtom run client in axis2 sample ( MTOM ).
Error :
Exception in thread "main" org.apache.axis2.AxisFault
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.j
ava:90)
at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAx
isOperation.java:353)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperatio
n.java:416)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisO
peration.java:228)
at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at
org.apache.ws.axis2.mtomsample.MTOMSampleMTOMSampleSOAP11Port_httpStub.attac
hment(Unknown Source)
at sample.mtom.client.Client.transferFile(Unknown Source)
at sample.mtom.client.Client.main(Unknown Source)
Caused by: java.lang.NullPointerException
at
org.apache.axiom.attachments.Attachments.getSOAPPartContentType(Attachments.
java:438)
at
org.apache.axis2.builder.MIMEBuilder.processDocument(MIMEBuilder.java:40)
at
org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUti
ls.java:164)
at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.j
ava:112)
at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.j
ava:88)
what is problem ?