On Fri, Aug 10, 2018 at 7:17 AM Viji <vijim...@gmail.com> wrote: > > Hi, > > I have an error when running axis2 client with stub generated using Java 1.8 > and Axis2 1.7.8 > > org.apache.axis2.AxisFault > > at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) > at > org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:122) > at > org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:66) > at > org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:347) > at > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:414) > at > org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225) > at > org.apache.axis2.client.OperationClient.execute(OperationClient.java:150) > at > ch.e_dec.www.services.edecservice.v4.EdecServiceStub.goodsDeclarations(EdecServiceStub.java:484) > at edecwebtest.EdecTest.main(EdecTest.java:85) > Caused by: java.lang.NullPointerException > at > org.apache.axis2.builder.MIMEBuilder.processDocument(MIMEBuilder.java:72) > at > org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:203) > at > org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:144) > at > org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:107) > > > Can anyone help please ? > > > Regards, > Viji > > Seems similar to the problems you had a few weeks ago with the mime type, did you get that issue sorted out?
MIMEBuilder is having a problem here, my guess is the mime type is null so the the builder reference is null. However the attachments reference may be null too. Are you able to debug what is null here and that you are sending a valid mime type? The 'type' below could be null and as a side affect the other Objects could be null. 72 return builder.processDocument(attachments.getRootPartInputStream(false), 73 type, msgContext);