There's a bug in 1.2 release. Reproduced on cache running in replicated mode when IsolationLevel=NONE
cache.put() causes exception: | Caused by: java.lang.RuntimeException: getLockStrategy: LockStrategy selection not recognized. selection: NONE | at org.jboss.cache.lock.LockStrategyFactory.getLockStrategy(LockStrategyFactory.java:51) | at org.jboss.cache.lock.IdentityLock.<init>(IdentityLock.java:75) | at org.jboss.cache.Node.init(Node.java:100) | at org.jboss.cache.Node.init(Node.java:96) | at org.jboss.cache.Node.<init>(Node.java:79) | at org.jboss.cache.Node.createChild(Node.java:227) | at org.jboss.cache.interceptors.CreateIfNotExistsInterceptor.createNode(CreateIfNotExistsInterceptor.java:65) | at org.jboss.cache.interceptors.CreateIfNotExistsInterceptor.invoke(CreateIfNotExistsInterceptor.java:43) | at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:40) | at org.jboss.cache.interceptors.ReplicationInterceptor.invoke(ReplicationInterceptor.java:51) | at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:3078) | To fix it replace in LockStrategyFactory | | public static LockStrategy getLockStrategy(IsolationLevel lockingLevel) | { | //if(log_.isTraceEnabled()) { | // log_.trace("LockStrategy is: " + lockingLevel); | //} | if (lockingLevel == null || lockingLevel_ == IsolationLevel.NONE) | return new LockStrategyNone(); | if (lockingLevel == IsolationLevel.REPEATABLE_READ) | return new LockStrategyRepeatableRead(); | if (lockingLevel == IsolationLevel.SERIALIZABLE) | return new LockStrategySerializable(); | if (lockingLevel == IsolationLevel.READ_COMMITTED) | return new LockStrategyReadCommitted(); | if (lockingLevel == IsolationLevel.READ_UNCOMMITTED) | return new LockStrategyReadUncommitted(); | throw new RuntimeException("getLockStrategy: LockStrategy selection not recognized." + | " selection: " + lockingLevel); | } | | lockingLevel_ == IsolationLevel.NONE with lockingLevel == IsolationLevel.NONE View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3862965#3862965 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3862965 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development