Mantis - Resin
Viewing Issue Advanced Details
5962 major random 11-12-15 13:39 11-13-15 12:29
snicolai  
ferg  
normal  
closed 4.0.46  
fixed  
none    
none 4.0.47  
0005962: IllegalMonitorStateException saving sessions
We get these messages occasionally under load.


[15-11-12 13:03:45.852] {resin-port-8080-372} SessionImpl[aaa1NL6xnVc3u6FXGv8dv,/edge]: can't serialize session
                       java.lang.IllegalMonitorStateException
                           at java.util.concurrent.locks.ReentrantReadWriteLock$Sync.tryRelease(ReentrantReadWriteLock.java:374)
                           at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueuedSynchronizer.java:1260)
                           at java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.unlock(ReentrantReadWriteLock.java:1131)
                           at com.caucho.db.table.TableRowAllocator.allocateRow(TableRowAllocator.java:131)
                           at com.caucho.db.table.Table.insert(Table.java:983)
                           at com.caucho.db.sql.InsertQuery.execute(InsertQuery.java:116)
                           at com.caucho.db.jdbc.PreparedStatementImpl.execute(PreparedStatementImpl.java:367)
                           at com.caucho.db.jdbc.PreparedStatementImpl.executeUpdate(PreparedStatementImpl.java:337)
                           at com.caucho.server.distcache.DataStore.insert(DataStore.java:458)
                           at com.caucho.server.distcache.DataStore.save(DataStore.java:434)
                           at com.caucho.server.distcache.CacheDataBackingImpl.saveData(CacheDataBackingImpl.java:346)
                           at com.caucho.server.distcache.LocalDataManager.writeData(LocalDataManager.java:404)
                           at com.caucho.server.distcache.DistCacheEntry.putStream(DistCacheEntry.java:419)
                           at com.caucho.server.distcache.DistCacheEntry.put(DistCacheEntry.java:352)
                           at com.caucho.server.distcache.CacheImpl.put(CacheImpl.java:488)
                           at com.caucho.server.session.SessionImpl.save(SessionImpl.java:957)
                           at com.caucho.server.session.SessionImpl.saveAfterRequest(SessionImpl.java:914)
                           at com.caucho.server.session.SessionImpl.finishRequest(SessionImpl.java:653)
                           at com.caucho.server.http.AbstractCauchoRequest.finishRequest(AbstractCauchoRequest.java:1080)
                           at com.caucho.server.http.HttpServletRequestImpl.finishRequest(HttpServletRequestImpl.java:1728)
                           at com.caucho.server.http.AbstractHttpRequest.finishRequest(AbstractHttpRequest.java:1870)
                           at com.caucho.server.http.HttpRequest.finishRequest(HttpRequest.java:1495)
                           at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:870)
                           at com.caucho.network.listen.TcpSocketLink.dispatchRequest(TcpSocketLink.java:1349)
                           at com.caucho.network.listen.TcpSocketLink.handleRequest(TcpSocketLink.java:1305)
                           at com.caucho.network.listen.TcpSocketLink.handleRequestsImpl(TcpSocketLink.java:1289)
                           at com.caucho.network.listen.TcpSocketLink.handleRequests(TcpSocketLink.java:1197)
                           at com.caucho.network.listen.TcpSocketLink.handleAcceptTaskImpl(TcpSocketLink.java:993)
                           at com.caucho.network.listen.ConnectionTask.runThread(ConnectionTask.java:117)
                           at com.caucho.network.listen.ConnectionTask.run(ConnectionTask.java:93)
                           at com.caucho.network.listen.SocketLinkThreadLauncher.handleTasks(SocketLinkThreadLauncher.java:169)
                           at com.caucho.network.listen.TcpSocketAcceptThread.run(TcpSocketAcceptThread.java:61)
                           at com.caucho.env.thread2.ResinThread2.runTasks(ResinThread2.java:173)
                           at com.caucho.env.thread2.ResinThread2.run(ResinThread2.java:118)
                       
EXN: java.lang.IllegalMonitorStateException
java.lang.IllegalMonitorStateException
    at java.util.concurrent.locks.ReentrantReadWriteLock$Sync.tryRelease(ReentrantReadWriteLock.java:374)
    at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueuedSynchronizer.java:1260)
    at java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.unlock(ReentrantReadWriteLock.java:1131)
    at com.caucho.db.sql.QueryContext.unlock(QueryContext.java:633)
    at com.caucho.db.sql.IdentityIndexExpr.nextBlock(IdentityIndexExpr.java:141)
    at com.caucho.db.sql.Query.nextBlock(Query.java:789)
    at com.caucho.db.sql.Query.nextTuple(Query.java:763)
    at com.caucho.db.sql.DeleteQuery.execute(DeleteQuery.java:83)
    at com.caucho.db.jdbc.PreparedStatementImpl.execute(PreparedStatementImpl.java:367)
    at com.caucho.db.jdbc.PreparedStatementImpl.executeUpdate(PreparedStatementImpl.java:337)
    at com.caucho.server.distcache.DataStore.remove(DataStore.java:515)
    at com.caucho.server.distcache.DataRemoveActor.runTask(DataRemoveActor.java:85)
    at com.caucho.env.thread2.AbstractTaskWorker2.run(AbstractTaskWorker2.java:247)
    at com.caucho.env.thread2.ResinThread2.runTasks(ResinThread2.java:173)
    at com.caucho.env.thread2.ResinThread2.run(ResinThread2.java:118)
WarningService: java.lang.IllegalMonitorStateException
[15-11-12 13:03:46.633] {DataRemoveActor[app-0]-17} WarningService: java.lang.IllegalMonitorStateException
[15-11-12 13:03:46.634] {DataRemoveActor[app-0]-17} java.lang.IllegalMonitorStateException
                           at java.util.concurrent.locks.ReentrantReadWriteLock$Sync.tryRelease(ReentrantReadWriteLock.java:374)
                           at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueuedSynchronizer.java:1260)
                           at java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.unlock(ReentrantReadWriteLock.java:1131)
                           at com.caucho.db.sql.QueryContext.unlock(QueryContext.java:633)
                           at com.caucho.db.sql.IdentityIndexExpr.nextBlock(IdentityIndexExpr.java:141)
                           at com.caucho.db.sql.Query.nextBlock(Query.java:789)
                           at com.caucho.db.sql.Query.nextTuple(Query.java:763)
                           at com.caucho.db.sql.DeleteQuery.execute(DeleteQuery.java:83)
                           at com.caucho.db.jdbc.PreparedStatementImpl.execute(PreparedStatementImpl.java:367)
                           at com.caucho.db.jdbc.PreparedStatementImpl.executeUpdate(PreparedStatementImpl.java:337)
                           at com.caucho.server.distcache.DataStore.remove(DataStore.java:515)
                           at com.caucho.server.distcache.DataRemoveActor.runTask(DataRemoveActor.java:85)
                           at com.caucho.env.thread2.AbstractTaskWorker2.run(AbstractTaskWorker2.java:247)
                           at com.caucho.env.thread2.ResinThread2.runTasks(ResinThread2.java:173)
                           at com.caucho.env.thread2.ResinThread2.run(ResinThread2.java:118)
                       
EXN: java.lang.IllegalMonitorStateException
java.lang.IllegalMonitorStateException
    at java.util.concurrent.locks.ReentrantReadWriteLock$Sync.tryRelease(ReentrantReadWriteLock.java:374)
    at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueuedSynchronizer.java:1260)
    at java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.unlock(ReentrantReadWriteLock.java:1131)
    at com.caucho.db.sql.QueryContext.unlock(QueryContext.java:633)
    at com.caucho.db.sql.IdentityIndexExpr.nextBlock(IdentityIndexExpr.java:141)
    at com.caucho.db.sql.Query.nextBlock(Query.java:789)
    at com.caucho.db.sql.Query.nextTuple(Query.java:763)
    at com.caucho.db.sql.DeleteQuery.execute(DeleteQuery.java:83)
    at com.caucho.db.jdbc.PreparedStatementImpl.execute(PreparedStatementImpl.java:367)
    at com.caucho.db.jdbc.PreparedStatementImpl.executeUpdate(PreparedStatementImpl.java:337)
    at com.caucho.server.distcache.DataStore.remove(DataStore.java:515)
    at com.caucho.server.distcache.DataRemoveActor.runTask(DataRemoveActor.java:85)
    at com.caucho.env.thread2.AbstractTaskWorker2.run(AbstractTaskWorker2.java:247)
    at com.caucho.env.thread2.ResinThread2.runTasks(ResinThread2.java:173)
    at com.caucho.env.thread2.ResinThread2.run(ResinThread2.java:118)

There are no notes attached to this issue.