Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 34543 invoked from network); 7 Feb 2006 02:09:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Feb 2006 02:09:24 -0000 Received: (qmail 63342 invoked by uid 500); 7 Feb 2006 02:09:20 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 63326 invoked by uid 500); 7 Feb 2006 02:09:20 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 63315 invoked by uid 99); 7 Feb 2006 02:09:20 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Feb 2006 18:09:20 -0800 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,MSGID_FROM_MTA_HEADER,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of rys@hotmail.com designates 64.4.61.47 as permitted sender) Received: from [64.4.61.47] (HELO hotmail.com) (64.4.61.47) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Feb 2006 18:09:19 -0800 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 6 Feb 2006 18:08:58 -0800 Message-ID: Received: from 64.4.61.200 by by102fd.bay102.hotmail.msn.com with HTTP; Tue, 07 Feb 2006 02:08:58 GMT X-Originating-IP: [130.102.71.38] X-Originating-Email: [rys@hotmail.com] X-Sender: rys@hotmail.com From: "Rakesh Shukla" To: commons-user@jakarta.apache.org Subject: [Net] NNTPClient: How to use retrieveArticle and retrieveArticleBody methods? Date: Tue, 07 Feb 2006 02:08:58 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 07 Feb 2006 02:08:58.0983 (UTC) FILETIME=[74FD1770:01C62B8B] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, I am able to post an article using following (example) code. Writer writer = client.postArticle(); if (writer != null) { SimpleNNTPHeader header=new SimpleNNTPHeader ("foobar@foo.com","Just testing"); Header.addNewsgroup("alt.test"); writer.write(header.toString()); writer.write("This is just a test"); writer.close(); client.completePendingCommand(); } When I use any of the retrieveArticle and retrieveArticleBody methods the system just hangs. Please let me know how to use these methods properly. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org