DO NOT REPLY [Bug 32646] - Serious: Exception retrieving password for username

2005-03-23 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=32646.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32646


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2005-03-23 17:54 ---
I've separated out the commit and the close in
DataSourceRealm#close(Connection).  Maybe that will help.  I've also looked over
the DataSourceRealm.java code, and it clearly looks like everywhere open is
called, if the connection returned is not null, it's closed in a finally block
as it should be.  Please try 5.5.9 when it comes out (probably this weekend) or
building from HEAD if you don't feel like waiting until the weekend to try it 
out.

I haven't looked at JDBCRealm.  As Remy suggested previously, DataSourceRealm is
better and recommended.

Finally: if you still get this behavior with 5.5.9, and reopen this issue,
please let us know what JDK you're using.  Also what DB version and driver, and
if the behavior is reproducible with other DBs or drivers.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 32646] - Serious: Exception retrieving password for username

2005-02-25 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=32646.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32646





--- Additional Comments From [EMAIL PROTECTED]  2005-02-25 10:51 ---
(In reply to comment #3)
 Maybe this helps:
 connectionURL=jdbc:mysql://projekt1:3306/elmar?autoReconnect=true

I had tried it on Tomcat 5.5.8 and it did not work. Thanks!



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 32646] - Serious: Exception retrieving password for username

2005-02-12 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=32646.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32646





--- Additional Comments From [EMAIL PROTECTED]  2005-02-12 11:21 ---
Maybe this helps:

connectionURL=jdbc:mysql://projekt1:3306/elmar?autoReconnect=true


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 32646] - Serious: Exception retrieving password for username

2005-01-12 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=32646.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32646





--- Additional Comments From [EMAIL PROTECTED]  2005-01-12 20:52 ---
I have the same issue with 5.5.5. After restart realm login works for a while
then it stops working and logs the same message.

Now I migrated to datasource realm, and it seems login works now, but only if I
setup DBCP to recover abandoned connections. Specifically, this happened:

First I setup the datasource using the default parameters recommended in the
tomcat-5.5-doc/jndi-datasource-examples-howto.html document, but with
maxActive=3 maxIdle=1. In thic case the first login was sucessful, the
second (if I remember well) was failed. The log entry was this:
SEVERE: Exception performing authentication
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot get a connection, pool
exhausted...
Caused by: java.util.NoSuchElementException: Timeout waiting for idle object

Next I switched on abandoned resource removal (using removeAbandoned=true
removeAbandonedTimeout=5 logAbandoned=true).
In this case the following appears in the log after each (successful) login
attempts:
DBCP object created 2005-01-12 20:37:09 by the following code was never closed:
java.lang.Exception
at
org.apache.tomcat.dbcp.dbcp.AbandonedTrace.setStackTrace(AbandonedTrace.java:157)
at
org.apache.tomcat.dbcp.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool.java:76)
at
org.apache.tomcat.dbcp.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:95)
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
at 
org.apache.catalina.realm.DataSourceRealm.open(DataSourceRealm.java:407)
at 
org.apache.catalina.realm.DataSourceRealm.getRoles(DataSourceRealm.java:538)
at 
org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceRealm.java:360)
at 
org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceRealm.java:284)
at
org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthenticator.java:181)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:446)


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 32646] - Serious: Exception retrieving password for username

2005-01-06 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=32646.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32646





--- Additional Comments From [EMAIL PROTECTED]  2005-01-06 12:35 ---
I've just added logging of the exception to get more details. This code section
doesn't access the session, so I don't see why it would fail.

I recommend migrating to the datasource realm, BTW.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]