From dev-return-53171-apmail-cocoon-dev-archive=cocoon.apache.org@cocoon.apache.org Tue Dec 16 04:02:18 2003 Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 57986 invoked from network); 16 Dec 2003 04:02:18 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 16 Dec 2003 04:02:18 -0000 Received: (qmail 12357 invoked by uid 500); 16 Dec 2003 04:01:56 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 12302 invoked by uid 500); 16 Dec 2003 04:01:55 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 12289 invoked from network); 16 Dec 2003 04:01:54 -0000 Received: from unknown (HELO ags01.agsoftware.dnsalias.com) (216.6.48.60) by daedalus.apache.org with SMTP; 16 Dec 2003 04:01:54 -0000 Received: from ags01.agsoftware.dnsalias.com (ags01.agsoftware.dnsalias.com [127.0.0.1]) by ags01.agsoftware.dnsalias.com (8.12.10/8.12.8) with ESMTP id hBG44p3J007574 for ; Mon, 15 Dec 2003 22:04:51 -0600 Received: (from apache@localhost) by ags01.agsoftware.dnsalias.com (8.12.10/8.12.10/Submit) id hBG44pB9007572; Mon, 15 Dec 2003 22:04:51 -0600 X-Authentication-Warning: ags01.agsoftware.dnsalias.com: apache set sender to agallardo@agsoftware.dnsalias.com using -f Received: from 10.0.0.5 (SquirrelMail authenticated user agallardo) by ags01.agsoftware.dnsalias.com with HTTP; Mon, 15 Dec 2003 22:04:51 -0600 (CST) Message-ID: <39703.10.0.0.5.1071547491.squirrel@ags01.agsoftware.dnsalias.com> In-Reply-To: <3FDDAFFD.6010103@verizon.net> References: <38171.10.0.0.5.1071477343.squirrel@ags01.agsoftware.dnsalias.com> <3FDDAFFD.6010103@verizon.net> Date: Mon, 15 Dec 2003 22:04:51 -0600 (CST) Subject: Re: ClassCastException for Postgres datasource in Generator From: "Antonio Gallardo" To: dev@cocoon.apache.org User-Agent: SquirrelMail/1.4.0-1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 X-Priority: 3 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Thanks Vadim! You are right. I mixed it with constrains returned in PostgreSQL driver: $2 Best Regards, Antonio Gallardo Vadim Gritsenko dijo: > Antonio Gallardo wrote: > >>Harald Wehr dijo: >> >> >>>Thanks for your fast answer. I tested your hints but that didn't help. >>>Nevertheless there is an interesting debug output. If I call >>>conn.getClass().getName() to the connection I get from the pool, the >>>output is: >>>------------ >>>$Proxy4 >>>------------ >>> >>>while the connection from the manual building gives: >>>------------ >>>org.postgresql.jdbc3.Jdbc3Connection >>>------------ >>> >>>Do you have any hints on that? >>> >>> >> >>It is normal. Every conection has a name in this case it is $Proxy4. >> > > Antonio, > > From the context of Bertrand's email, "$Proxy4" is output of > getClass().getName(), so it never can be a connection name, it is > *class* name. Classnames such is these are given to the proxies, which > are dynamically generated by the excalibur. > > Now, I don't know why ClassCastException is happening, but I seen those, > and usually it can be fixed by either extending component class from > Component, or by using ServiceManager. > > So, to answer Harald's question, he should use Serviceable instead of > Composable, and may be file a bug against avalon excalibur component > manager (Carsten? any info on this?) > > Vadim > > >