You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by vi...@tcs.com on 2004/08/11 18:20:20 UTC
Not able to run EchoAttachment example
Hi,
I am trying to run
D:\axis-1_1\samples\attachments>java samples.attachments.EchoAttachment
leaveempty.txt
and gets the message:
java.lang.NullPointerException
java.lang.NullPointerException
at org.apache.axis.Message.createAttachmentPart(Message.java:620)
at
javax.xml.soap.SOAPMessage.createAttachmentPart(SOAPMessage.java:243)
at
samples.attachments.EchoAttachment.echoUsingSAAJ(EchoAttachment.java:
528)
at
samples.attachments.EchoAttachment.main(EchoAttachment.java:365)
--------------------------------------------------------------------------------------------------------
I tried to debug and I do not see any problem as parameters are having
right value in the program
argFile : D:\axis-1_1\samples\attachments\leaveempty.txt
doTheDIME : false
System.out.println(dataHandler.getOutputStream()); =
java.io.FileOutputStream@11e0c13
--------------------------------------------------------
The failure point is this...
javax.xml.soap.AttachmentPart attachment =
soapMessage.createAttachmentPart(dataHandler);
I would appreciate if some body can help me with this.
(Vijay Kumar)