Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UMQtZ-0007a3-6w for pgsql-general@arkaria.postgresql.org; Sun, 31 Mar 2013 22:38:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UMQtY-0000HZ-MV for pgsql-general@arkaria.postgresql.org; Sun, 31 Mar 2013 22:38:36 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UMQtX-0000HT-9A for pgsql-general@postgresql.org; Sun, 31 Mar 2013 22:38:35 +0000 Received: from fep13.mx.upcmail.net ([62.179.121.33]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UMQtT-00052r-Ol for pgsql-general@postgresql.org; Sun, 31 Mar 2013 22:38:34 +0000 Received: from edge04.upcmail.net ([192.168.13.239]) by viefep13-int.chello.at (InterMail vM.8.01.05.05 201-2260-151-110-20120111) with ESMTP id <20130331223829.YVIM25332.viefep13-int.chello.at@edge04.upcmail.net>; Mon, 1 Apr 2013 00:38:29 +0200 Received: from margarita.erven.at ([80.108.195.78]) by edge04.upcmail.net with edge id JNeU1l01L1hxjuw04NeUrb; Mon, 01 Apr 2013 00:38:28 +0200 X-SourceIP: 80.108.195.78 Received: from [192.168.27.166] (unknown [192.168.27.166]) by margarita.erven.at (Postfix) with ESMTPSA id 69F923058F3; Mon, 1 Apr 2013 00:38:26 +0200 (CEST) Message-ID: <5158BAE4.7080701@erven.at> Date: Mon, 01 Apr 2013 00:38:28 +0200 From: Hannes Erven User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 MIME-Version: 1.0 To: pgsql-general@postgresql.org CC: juampick@gmail.com Subject: Re: Fwd: JDBC Array double precision [] error References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org Hi Juan Pablo, > double[] array = (double[]) rs1.getArray("histograma").getArray(); > java.lang.ClassCastException: [Ljava.lang.Double; cannot be cast to [D The error message already tells you the solution: use Double, not double. Like this: Double[] array = (Double[]) rs1.getArray("histograma").getArray(); Best regards, -hannes -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general