Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9C0A110322 for ; Fri, 20 Dec 2013 05:51:37 +0000 (UTC) Received: (qmail 74609 invoked by uid 500); 20 Dec 2013 05:51:32 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 74556 invoked by uid 500); 20 Dec 2013 05:51:26 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 74543 invoked by uid 99); 20 Dec 2013 05:51:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Dec 2013 05:51:23 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of david.tinker@gmail.com designates 209.85.217.173 as permitted sender) Received: from [209.85.217.173] (HELO mail-lb0-f173.google.com) (209.85.217.173) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Dec 2013 05:51:18 +0000 Received: by mail-lb0-f173.google.com with SMTP id z5so874379lbh.4 for ; Thu, 19 Dec 2013 21:50:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=yZgC5t5kGmFLMyXMUhT3IMKI/0enslz9OQHtZFlmFZ8=; b=GnbUpYSvkaEBr36nlm/+Cs9byeWexlBCaiswDQs85oAJ/JXj+sTRlHTT6ltAN+cGqP ifNGUUw0paicbiT2I+2jGzv1aiLE2e90X+9g/9/kNzCj5pqNCkTBdQZzJ+UGBbmzfVs5 pc6oaFHKF2liXkY0nx+C/S8QS1V4Gg0jMF90bc2Dz70PYUg12WhXmCfbVkmdcbUfE4y7 VQXqNdlFqvXEPjnrsjftkMKwHniaJzAUi/B/nbhQm+1Hauf5xhgVKNOOP+k6e7hUeTt3 1+E7qhMUk2A/YQu1BCgjHM80vksMAsy9j6RJKhXTsXSYWFbs/YNEHCUwPj8QwtW2d/Na dIqg== MIME-Version: 1.0 X-Received: by 10.152.9.9 with SMTP id v9mr291481laa.41.1387518658205; Thu, 19 Dec 2013 21:50:58 -0800 (PST) Received: by 10.114.57.169 with HTTP; Thu, 19 Dec 2013 21:50:57 -0800 (PST) In-Reply-To: References: Date: Fri, 20 Dec 2013 07:50:57 +0200 Message-ID: Subject: Re: Occasional NPE using DataStax Java driver From: David Tinker To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Done. https://datastax-oss.atlassian.net/browse/JAVA-231 On Thu, Dec 19, 2013 at 10:42 AM, Sylvain Lebresne wrote: > Mind opening a ticket on https://datastax-oss.atlassian.net/browse/JAVA? > It's almost surely a bug. > > -- > Sylvain > > > On Thu, Dec 19, 2013 at 8:21 AM, David Tinker > wrote: >> >> We are using Cassandra 2.0.3-1 installed on Ubuntu 12.04 from the >> DataStax repo with the DataStax Java driver version 2.0.0-rc1. Every >> now and then we get the following exception: >> >> 2013-12-19 06:56:34,619 [sql-2-t15] ERROR core.RequestHandler - >> Unexpected error while querying /x.x.x.x >> java.lang.NullPointerException >> at >> com.datastax.driver.core.HostConnectionPool.waitForConnection(HostConnectionPool.java:203) >> at >> com.datastax.driver.core.HostConnectionPool.borrowConnection(HostConnectionPool.java:107) >> at com.datastax.driver.core.RequestHandler.query(RequestHandler.java:112) >> at >> com.datastax.driver.core.RequestHandler.sendRequest(RequestHandler.java:93) >> at com.datastax.driver.core.Session$Manager.execute(Session.java:513) >> at com.datastax.driver.core.Session$Manager.executeQuery(Session.java:549) >> at com.datastax.driver.core.Session.executeAsync(Session.java:172) >> >> This happens during a big data load process which will do up to 256 >> executeAsync's in parallel. >> >> Any ideas? Its not causing huge problems because the operation is just >> retried by our code but it would be nice to eliminate it. > > -- http://qdb.io/ Persistent Message Queues With Replay and #RabbitMQ Integration