Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 12024 invoked from network); 12 Aug 2004 01:33:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 12 Aug 2004 01:33:24 -0000 Received: (qmail 48203 invoked by uid 500); 12 Aug 2004 01:33:19 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 48123 invoked by uid 500); 12 Aug 2004 01:33:19 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 48113 invoked by uid 99); 12 Aug 2004 01:33:18 -0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=DNS_FROM_RFC_POST X-Spam-Check-By: apache.org Received: from [64.4.47.40] (HELO hotmail.com) (64.4.47.40) by apache.org (qpsmtpd/0.27.1) with ESMTP; Wed, 11 Aug 2004 18:33:15 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 11 Aug 2004 18:33:14 -0700 Received: from 211.63.175.160 by by9fd.bay9.hotmail.msn.com with HTTP; Thu, 12 Aug 2004 01:33:14 GMT X-Originating-IP: [211.63.175.160] X-Originating-Email: [gunsnroz@hotmail.com] X-Sender: gunsnroz@hotmail.com From: "Choi Jongjin" To: axis-dev@ws.apache.org Bcc: Subject: RE: Not able to run EchoAttachment example Date: Thu, 12 Aug 2004 10:33:14 +0900 Mime-Version: 1.0 Content-Type: text/plain; charset=ks_c_5601-1987; format=flowed Message-ID: X-OriginalArrivalTime: 12 Aug 2004 01:33:14.0507 (UTC) FILETIME=[561005B0:01C4800C] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi. I think that the appropriate place for this question is axis-user list instead of axis-dev list. Anyway, you may need to include activation.jar and mail.jar in your classpath. Then it will run correctly, I guess. Thanks. Jongjin/ >From: vijayk.garg@tcs.com >Reply-To: axis-dev@ws.apache.org >To: axis-dev@ws.apache.org >Subject: Not able to run EchoAttachment example >Date: Wed, 11 Aug 2004 21:50:20 +0530 > >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) ><< InterScan_Disclaimer.txt >>