pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Raghavendra MB <mb.ragu@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Class Cast Exception for DataSource
Date: Thu, 22 Feb 2007 11:50:01 +0530
Message-ID: <aa36b6870702212220j7ecae30alb114e71f54e2aca3@mail.gmail.com> (raw)

Hi,

I am using Postgres 8.2 version database and *postgresql-8.2-504.jdbc3.jar*
driver.

Snippet of code:


*String postgresDataSource = **"org.postgresql.Driver"**;*

**

*Class dataSourceClass = Class.forName(postgresDataSource);*

*dataSource = (DataSource) dataSourceClass.newInstance();*

**

*I am getting *ClassCast exception when i try to run the code in my java
application.

Please resolve this problem.



regards

Raghu

view thread (2+ messages)  latest in thread

Message-ID: <aa36b6870702212220j7ecae30alb114e71f54e2aca3@mail.gmail.com>
Permalink:  ../aa36b6870702212220j7ecae30alb114e71f54e2aca3@mail.gmail.com/
Also on:    postgresql.org/message-id/aa36b6870702212220j7ecae30alb114e71f54e2aca3@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: mb.ragu@gmail.com
  Subject: Re: Class Cast Exception for DataSource
  In-Reply-To: <aa36b6870702212220j7ecae30alb114e71f54e2aca3@mail.gmail.com>
  References: <aa36b6870702212220j7ecae30alb114e71f54e2aca3@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox