4 Replies Latest reply on Oct 11, 2011 2:34 AM by dan.berindei

    FileCacheStore throws java.lang.IllegalMonitorStateException

    penumbraposts

      Is it possible that a thread issue was introduced into 5.1.0 Alpha FileCacheStore?. 

       

      Using the same app and deployment scenario, I do *not see the exception with Infinispan 5.0.1 Final:

       

      The scenario is:

      - Fire up TorqueBox 2.x (JBoss AS 7.0.2 Final with JRuby 1.6.4 support)

      - Start a webapp that initializes Infinispan and adds several "beer" properties to Infinispan

      - Wait about 30 seconds

      - IllegalMonitorStateException is thrown in FileCacheStore (default-FileCacheStore-1 thread)

      - Wait about 30 seconds

      - IllegalMonitorStateException is thrown in FileCacheStore (default-FileCacheStore-2 thread)

      - and so on

       

      My issue _might_ be related to a resolved JIRA ISPN-1418, as a stack trace shows the exception involves core/src/main/java/org/infinispan/loaders/file/FileCacheStore.java line 244 (purgeInternal ?)

       

      Stack trace here https://gist.github.com/1272662

       

      My system:

      - Linux 64bit (uname -r 3.0.0-12-generic)

      - Java OpenJDK version "1.7.0_147-icedtea"

      - JBoss AS 7.0.2.Final "Arc" with -Xms and -Xmx=2048m

      - Running a single instance of JBoss AS using ./standalone.sh

      - Infinispan 5.1.0 Alpha

      - Single computer using localhost

       

      Web App was developed by Lance, TorqueBox Developer who has written an Infinispan adapter for JRuby

      https://github.com/lance/beer

       

      Thanks for the excellent product, and for taking my question

      --penumbra