Mantis - Resin
Viewing Issue Advanced Details
5523 minor sometimes 09-09-13 03:06 09-23-13 11:09
finallygo  
ferg  
normal  
closed 4.0.31  
fixed  
none    
none 4.0.36  
0005523: I get a error when i send a request with JSESSIONID
when i send a request like this:

curl -b "JSESSIONID=aaaV3NPsMn2LY51111asdfas" "http://hongliuliao.kf0309.3g.qq.com/open/s" [^]
I will get the error like :

java.lang.IllegalStateException: block Block[Table[mnode:2],10002] is not
an index code=0

java.lang.IllegalStateException: block Block[Table[mnode:2],10002] is not
an index code=0
    at com.caucho.db.block.Block.validateIsIndex(Block.java:152)
    at com.caucho.db.index.BTree.validateIndex(BTree.java:1727)
    at com.caucho.db.index.BTree.lookup(BTree.java:197)
    at com.caucho.db.index.BTree.lookup(BTree.java:212)
    at com.caucho.db.index.BTree.lookup(BTree.java:168)
    at com.caucho.db.sql.IndexExpr.evalIndex(IndexExpr.java:152)
    at com.caucho.db.sql.IndexExpr.initRow(IndexExpr.java:104)
    at com.caucho.db.sql.Query$TailInitRow.initBlockRow(Query.java:952)
    at com.caucho.db.sql.Query.start(Query.java:727)
    at com.caucho.db.sql.SelectQuery.execute(SelectQuery.java:209)
    at com.caucho.db.sql.SelectQuery.execute(SelectQuery.java:171)
    at com.caucho.db.jdbc.PreparedStatementImpl.execute(PreparedStatementImpl.java:357)
    at com.caucho.db.jdbc.PreparedStatementImpl.executeQuery(PreparedStatementImpl.java:325)
    at com.caucho.server.distcache.MnodeStore.load(MnodeStore.java:535)
    at com.caucho.server.distcache.CacheDataBackingImpl.loadLocalEntryValue(CacheDataBackingImpl.java:108)
    at com.caucho.server.distcache.DistCacheEntry.loadLocalMnodeValue(DistCacheEntry.java:1189)
    at com.caucho.server.distcache.DistCacheEntry.loadMnodeValue(DistCacheEntry.java:798)
    at com.caucho.server.distcache.DistCacheEntry.loadMnodeValue(DistCacheEntry.java:163)
    at com.caucho.server.distcache.CacheImpl.getExtCacheEntry(CacheImpl.java:338)
    at com.caucho.server.session.SessionImpl.load(SessionImpl.java:685)
    at com.caucho.server.session.SessionManager.createSession(SessionManager.java:1375)
    at com.caucho.server.http.AbstractCauchoRequest.createSession(AbstractCauchoRequest.java:688)
    at com.caucho.server.http.AbstractCauchoRequest.getSession(AbstractCauchoRequest.java:630)
    at com.caucho.server.http.AbstractCauchoRequest.finishRequest(AbstractCauchoRequest.java:1042)

Notes
(0006324)
ferg   
09-23-13 11:09   
This is not related to JSESSIONID. It's a corruption of the session database store. More recent versions have improved the database store recovery.

You may need to restart Resin, or if that it insufficient, remove the resin-data directory.