[BUGS] DBCP borrowObject failed

2003-06-27 Thread Azam .
hi all
 
I don't know if this is the right list to ask this question or not but however I'm using postgres and tomcat4.1.24, I got this error 
 
DBCP borrowObject failed: Something unusual has occured to cause the driver to fail. Please report this exception: Exception: java.sql.SQLException: FATAL 1:  Sorry, too many clients already
Stack Trace:
java.sql.SQLException: FATAL 1:  Sorry, too many clients already
 at org.postgresql.Connection.openConnection(Connection.java:274) at org.postgresql.Driver.connect(Driver.java:149) at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:83) at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:184) at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(Unknown Source) at org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool.java:117) at org.apache.commons.dbcp.PoolingDataSource.getConnection(P
 
and after I restarted tomcat It was corrected,Is there anything wrong?This is the content of my postmaster.opts 
/usr/bin/postmaster '-i' '-N' '64' '-B' '256'
 
Thanks in advance
azam
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

[BUGS] LibPQ Error.

2005-11-30 Thread Muhamamd Irfan Azam
-- Forwarded message --From: Muhamamd Irfan Azam <[EMAIL PROTECTED]>Date: Nov 30, 2005 2:48 PM
Subject: LibPQ Error.To: pgsql-hackers@postgresql.org
Hi,
 
I have built the libpq from $Postgres/src/interfaces/libpq on the windows plateform for 8.1.0. To build i had to comment a function call ShGetFolderPath from the fe-connect.c file, i gave its dependency shfolder.lib
 but it was not working so i commented that function call. Doing that i got two libs and a dll. 
I used the dll but it is crashing in the PQconnectdb function, which itself is crashing due to a function PQconnectPoll function, which is trying to memcpy in a NULL pointer.
Any body kindly tell me why that function is crashing, becuase the same client is working with the libpq ported with the binaries for windows.

 
Note: I built the libpq for 8.0.4 using the same method and tested that, it is working properly.
Best Regards,