Mantis - Resin
Viewing Issue Advanced Details
3851 minor always 01-18-10 12:39 03-05-10 11:14
alex  
ferg  
normal  
closed 4.0.3  
fixed  
none    
none 4.0.5  
0003851: IllegalStateException on session load
rep by: Mattias Jiderhamn

Last week we saw a whole bunch of these exceptions. Removing
resin_data_default.db and resin_mnode_default.db and restarting Resin
removed the problem, but possibly there is something there that needs
attention.

java.lang.IllegalStateException
    at com.caucho.db.sql.QueryContext.unlock(QueryContext.java:546)
    at com.caucho.db.sql.QueryContext.close(QueryContext.java:591)
    at com.caucho.db.sql.UpdateQuery.execute(UpdateQuery.java:117)
    at com.caucho.db.jdbc.PreparedStatementImpl.execute(PreparedStatementImpl.java:344)
    at com.caucho.db.jdbc.PreparedStatementImpl.executeUpdate(PreparedStatementImpl.java:311)
    at com.caucho.server.distcache.MnodeStore.updateUpdateTime(MnodeStore.java:607)
    at com.caucho.server.distcache.AbstractDataCacheManager.saveLocalUpdateTime(AbstractDataCacheManager.java:690)
    at com.caucho.server.distcache.AbstractDataCacheManager.saveUpdateTime(AbstractDataCacheManager.java:628)
    at com.caucho.server.distcache.AbstractDataCacheManager.updateIdleTime(AbstractDataCacheManager.java:503)
    at com.caucho.server.distcache.AbstractDataCacheManager.getMnodeValue(AbstractDataCacheManager.java:250)
    at com.caucho.server.distcache.ProCacheEntry.getMnodeValue(ProCacheEntry.java:106)
    at com.caucho.distcache.AbstractCache.getExtCacheEntry(AbstractCache.java:452)
    at com.caucho.server.session.SessionImpl.load(SessionImpl.java:562)
    at com.caucho.server.session.SessionManager.createSession(SessionManager.java:1282)
    at com.caucho.server.connection.AbstractCauchoRequest.createSession(AbstractCauchoRequest.java:248)
    at com.caucho.server.connection.AbstractCauchoRequest.getSession(AbstractCauchoRequest.java:191)
    at ...

Notes
(0004388)
ferg   
01-19-10 09:53   
Thanks. We can check that out during the 4.0.4 stress testing.

Deleting the *.db shouldn't make a difference; it's the restart of Resin that would break that lock. (In other words, if the restart doesn't help, but the *.db does, please let us know, because that's not behavior we'd expect.)
(0004455)
ferg   
03-05-10 11:14   
db-stress/0400