Skip site navigation (1) Skip section navigation (2)

Re: problem in connetting using reflection

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Giuseppe Sacco <giuseppe(at)eppesuigoccas(dot)homedns(dot)org>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: problem in connetting using reflection
Date: 2004-04-11 13:05:59
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc
Giuseppe Sacco wrote:

> So I tried to use the java reflection to inspect the
> org.postgresql.jdbc3.Jdbc3ConnectionPool class (or other classes) and
> call all required methods.
> The problem is that, when I use this way (a source is attached) I always
> get the error:

> that is, in english, "The ``user'' property is missing while it is
> mandatory."
> Of course the 'setUser()' method is called but it doesn't work.
> Do you have any idea about this problem?

We use exactly the same technique (set properties by reflection on the 
DataSource) and it works fine, so the concept is ok; the problem lies in 
your implementation.

Perhaps you are setting the username to an empty string?


In response to

pgsql-jdbc by date

Next:From: Michael PrivatDate: 2004-04-11 14:57:56
Subject: bytea size limit?
Previous:From: Giuseppe SaccoDate: 2004-04-11 07:50:29
Subject: Re: problem in connetting using reflection

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group