tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Darren Govoni <dgov...@metadapt.com>
Subject JDBC Realm exception
Date Sun, 06 Mar 2005 15:19:40 GMT
Hi,
  I was able to get my JDBC basic authentication realm working fine. I
left my server running overnight (session would have timed out) and when
I tried to access my resource this morning I was getting this. I'm still
looking into it, but I can reproduce it and will post details soon.

This is a major show stopper for me. Any thoughts guys?

Thank you!!
Darren

PS. Uses MD5 password hashing. Like I said, it works but at some point
starts throwing this exception (I think after session expire).

------------

Mar 6, 2005 10:04:33 AM org.apache.catalina.realm.JDBCRealm getPassword
SEVERE: Exception retrieving password for "architect"
java.sql.SQLException: Connection.close() has already been called.
Invalid operation in this state.
        at com.mysql.jdbc.Connection.getMutex(Connection.java:2086)
        at com.mysql.jdbc.PreparedStatement.executeQuery
PreparedStatement.java:1508)
        at org.apache.catalina.realm.JDBCRealm.getPassword
(JDBCRealm.java:526)
        at org.apache.catalina.realm.JDBCRealm.authenticate
(JDBCRealm.java:399)
        at org.apache.catalina.realm.JDBCRealm.authenticate
(JDBCRealm.java:347)
        at
org.apache.catalina.authenticator.BasicAuthenticator.authenticate
(BasicAuthenticator.java:181)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke
(AuthenticatorBase.java:446)
        at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:825)
        at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
(PoolTcpEndpoint.java:526)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message