Fwd: exception in plsql - Mailing list pgsql-bugs

From Ravi
Subject Fwd: exception in plsql
Date
Msg-id bf8f49251002220603m6ab7091boedf75028a80fd5d9@mail.gmail.com
Whole thread Raw
In response to Re: exception in plsql  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Responses Re: Fwd: exception in plsql  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List pgsql-bugs
---------- Forwarded message ----------
From: Ravi <nm.ravi2005@gmail.com>
Date: Mon, Feb 22, 2010 at 7:31 PM
Subject: Re: [BUGS] exception in plsql
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>


when I tried to use the toArray method to extract exception raised saying

org.postgresql.util.PSQLException: Cannot cast an instance of
[Ljava.lang.Object; to type Types.ARRAY

-Ravi


On Mon, Feb 22, 2010 at 6:46 PM, Kevin Grittner <Kevin.Grittner@wicourts.gov
> wrote:

> beulah prasanthi  wrote:
>
> > org.postgresql.util.PSQLException: Cannot cast an instance of
> > java.util.ArrayList to type Types.ARRAY*
>
> An ArrayList is not an array -- it is a List implementation which
> uses an array, internally.  What happens if you use the toArray
> method to extract an array from the List and pass that in?
>
> -Kevin
>
> --
> Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-bugs
>



--
Ravi.T
BayLogic Technologies India Pvt. Ltd.
Vizag.



--
Ravi.T
BayLogic Technologies India Pvt. Ltd.
Vizag.

pgsql-bugs by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: exception in plsql
Next
From: Tim Bunce
Date:
Subject: Re: BUG #5334: Version 2.22 of Perl Safe module breaks UTF8 PostgreSQL 8.4