Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 60025 invoked from network); 1 Dec 2004 22:32:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Dec 2004 22:32:48 -0000 Received: (qmail 82027 invoked by uid 500); 1 Dec 2004 22:32:21 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 81997 invoked by uid 500); 1 Dec 2004 22:32:20 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 81982 invoked by uid 99); 1 Dec 2004 22:32:20 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of jak-tomcat-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from main.gmane.org (HELO main.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 01 Dec 2004 14:32:19 -0800 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CZd1E-0000z3-00 for ; Wed, 01 Dec 2004 23:32:16 +0100 Received: from adsl-68-120-146-125.dsl.snfc21.pacbell.net ([68.120.146.125]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 Dec 2004 23:32:16 +0100 Received: from shankarunni by adsl-68-120-146-125.dsl.snfc21.pacbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 Dec 2004 23:32:16 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: tomcat-user@jakarta.apache.org From: Shankar Unni Subject: Re: [dbcp] Call Oracle stored procedure via DBCP? Date: Wed, 01 Dec 2004 14:32:05 -0800 Lines: 12 Message-ID: References: <004901c4d77c$e9cdc630$1501010a@ksv> Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: adsl-68-120-146-125.dsl.snfc21.pacbell.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041103 Thunderbird/0.9 Mnenhy/0.6.0.101 X-Accept-Language: en-us, en In-Reply-To: <004901c4d77c$e9cdc630$1501010a@ksv> Sender: news X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Sergey Karpov wrote: > During a call of stored procedure through DBCP there is a mistake of > reduction of type: > > java.lang.ClassCastException That's because you're assuming that dbcp returns you a naked vendor JDBC Connection object. It doesn't - it returns you a pooled connection wrapper with forwarding methods. Ditto for CallableStatements. If you really needed to get the underlying object, you'd have to look at the JavaDoc for DBCP. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org