Return-Path: Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 30851 invoked from network); 19 Feb 2003 20:19:13 -0000 Received: from unknown (HELO nuserver.nuviewinc) (64.221.45.140) by daedalus.apache.org with SMTP; 19 Feb 2003 20:19:13 -0000 Received: from CYBERCRUISER ([10.0.0.28]) by nuserver.nuviewinc with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id 1MMNVKA0; Wed, 19 Feb 2003 15:29:34 -0500 From: "srinath narasimhan" To: "Jakarta Commons Users List" , Subject: RE: [dbcp] re. UnsupportedOperationException in getConnection -- WorkAround Date: Wed, 19 Feb 2003 15:19:11 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I got this working. But I had to download the latest development build of dbcp and it also required commons-lang package. These both are development versions. Hopefully there will be a stable release soon. See http://archives.apache.org/eyebrowse/ReadMsg?listName=commons-user@jakarta.a pache.org&msgId=552869 -----Original Message----- From: Kevin.Hooke@indus.com [mailto:Kevin.Hooke@indus.com] Sent: Tuesday, November 26, 2002 17:09 To: commons-user@jakarta.apache.org Cc: srinath@nuviewinc.com Subject: [dbcp] re. UnsupportedOperationException in getConnection Hi Srinath - I am seeing this same error using dbcp on tomcat4.0.1 with Oracle jdbc drivers. I can look up the DataSource from jndi ok, and I can get a connection from the pool using getConnection() - this all works fine for me also, but getConnection(userid, password) gives the same error you are seeing. java.lang.UnsupportedOperationException at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.ja va:125) I've tried dbcp 1.0 and 1.0.1 - same thing. Did you resolve the issue? If so what did you do to fix it? Has anyone else seen this? Am I missing something obvious? Is it not valid to request a connection from the pool using specific userid and password (this works for a DataSource on other servers, eg WLS6) Thanks, Kevin Hooke >From: srinath narasimhan >Subject: [dbcp] UnSupportedOperationException in getConnection >Date: Tue, 19 Nov 2002 17:30:03 -0500 >Content-Type: text/plain; > charset="us-ascii" >Hi > >I am trying to use dbcp with tomcat for MSSQLServer JDBC driver. I >am >following the procedure as suggested in the JNDI how to >documentation of >tomcat. It works fine when I use the getConnection() function, but >when I >try to use getConnection(username,password) I get a >UnsupportedOperationException. I have a few questions >1. Is this feature not supported ? >2. Is there another way of doing this ? >3. If this feature is not supported right now, is it proposed to be >supported in the future ? >Any suggestions/ideas would be of help. >Thanks >Srinath. **************************************** This email message and all attachments transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. Please DO NOT forward this email outside of the recipient's Company unless expressly authorized to do so herein. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. Any views expressed in this email message are those of the individual sender except where the sender specifically states them to be the views of Indus International, Inc. **************************************** -- To unsubscribe, e-mail: For additional commands, e-mail: