I'm running the same configuration as you, except Oracle instead of Postgresql. I'm using Jetspeed pretty much "out of the box", with minimal custom code (none of which explicitly interacts with the database).
I will play around with increasing the defaultMaxConnections value, and switching from TorqueDataSourceFactory to Jdbc2PoolDataSourceFactory. Maybe this will at least reduce the frequency of these horrible exceptions. On another note... is there an easy way to have the site display a "friendly" error message, rather than this daunting Horrible Exception? Thanks, Gence > -----Original Message----- > From: Michael Rothrock [mailto:[EMAIL PROTECTED] > Sent: Monday, August 18, 2003 7:56 PM > To: Jetspeed Users List > Subject: Re: datasourcefactory issue > > > I have a similar issue running > jetspeed/tomcat/postgresql/linux. The error > appears to result from too many connections to the db, and is > solved by > restarting tomcat. This indicates (to me, anyway) that something in > jetspeed is grabbing but not releasing db connections. > > I haven't had time to look into it, so I wasn't sure if it > was my code or a > bug somewhere else. In the meantime, the easy fix is a cron job that > restarts it nightly ;) . > > -- Michael > > On 8/18/03 3:44 PM, "Carlos Orrego" <[EMAIL PROTECTED]> wrote: > > > i am getting the same error, erratically but once every 2 > weeks. Re-starting > > tomcat reolves the problem. I have not been able to > > identify the reason for this error, and there seems to be > no error messages > > logged. > > > > any help wouldbe greatly appreciated. > > > > I am running win2k so i was kind of blaming on it, i am > goign to port my > > jetspeed to linux and see what happens there > > > > carlos > > > > -----Original Message----- > > From: Gence Soysal [mailto:[EMAIL PROTECTED] > > Sent: Monday, August 18, 2003 4:28 PM > > To: [EMAIL PROTECTED] > > Subject: datasourcefactory issue > > > > > > Hi all, > > we've been using Jetspeed to run a production-level portal > site and recently > > have been getting > > the following error occurring randomly (about once or twice > a day). The > > resolution is to restart > > Tomcat: > > > > Horrible Exception: > org.apache.jetspeed.services.security.LoginException: > > Failed to get anonymous user: > > org.apache.jetspeed.services.security.UserException: Failed > to retrieve user > > 'anon': Connection object was null. This could be due > > to a misconfiguration of the DataSourceFactory. Check the logs and > > Torque.properties to better determine the cause. > > at > > > org.apache.jetspeed.services.security.turbine.TurbineAuthentic > ation.getAnonymo > > usUser(TurbineAuthentication.java:222) > > > > > > I've read on the web that this can occur with an improperly > configured > > Torque.properties file. > > However, I've followed every advice on how to configure > that file, and the > > problem is not > > automatically reproducable. Has anyone else experienced > this and have any idea > > why it might > > be occurring long after successfully running for an entire day? > > > > Cheers, > > > > Gence > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
