Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 08427E8D4 for ; Sun, 16 Dec 2012 18:40:14 +0000 (UTC) Received: (qmail 56607 invoked by uid 500); 16 Dec 2012 18:40:13 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 56552 invoked by uid 500); 16 Dec 2012 18:40:13 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 56483 invoked by uid 99); 16 Dec 2012 18:40:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Dec 2012 18:40:13 +0000 Date: Sun, 16 Dec 2012 18:40:13 +0000 (UTC) From: "Oleg Kalnichevski (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HTTPCLIENT-1279) NullPointerException (apparently) when authenticating MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HTTPCLIENT-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oleg Kalnichevski updated HTTPCLIENT-1279: ------------------------------------------ Fix Version/s: 4.2.3 Sebastiano, In the future when reporting a bug that causes an exception, please always make sure to include a stack trace of the exception. Oleg > NullPointerException (apparently) when authenticating > ----------------------------------------------------- > > Key: HTTPCLIENT-1279 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1279 > Project: HttpComponents HttpClient > Issue Type: Bug > Components: HttpClient > Affects Versions: 4.2.2 > Reporter: Sebastiano Vigna > Fix For: 4.2.3 > > > Run the following class. This is likely to be a badly configured server, but DefaultHttpClient should not in any case throw a NPE. > import org.apache.http.client.ResponseHandler; > import org.apache.http.client.HttpClient; > import org.apache.http.client.methods.HttpGet; > import org.apache.http.impl.client.BasicResponseHandler; > import org.apache.http.impl.client.DefaultHttpClient; > public class Bug { > public final static void main(String[] args) throws Exception { > HttpClient httpclient = new DefaultHttpClient(); > HttpGet httpget = new HttpGet("http://www.gruppotirrenia.it/robots.txt"); > httpclient.execute(httpget); > } > } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org