[jboss-jira] [JBoss JIRA] (AS7-3447) IllegalStateException when Query Cache is enabled

Scott Marlow (JIRA) jira-events at lists.jboss.org
Wed Jan 25 09:39:48 EST 2012


     [ https://issues.jboss.org/browse/AS7-3447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Marlow updated AS7-3447:
------------------------------

    Component/s: Clustering


Our current AS7 configuration for the Hibernate cache:
{quote}
            <cache-container name="hibernate" default-cache="local-query">
                <transport lock-timeout="60000"/>
                <invalidation-cache name="entity" mode="SYNC">
                    <transaction mode="NON_XA"/>
                    <eviction strategy="LRU" max-entries="10000"/>
                    <expiration max-idle="100000"/>
                </invalidation-cache>
                <local-cache name="local-query">
                    <transaction mode="NON_XA"/>
                    <eviction strategy="LRU" max-entries="10000"/>
                    <expiration max-idle="100000"/>
                </local-cache>
                <replicated-cache name="timestamps" mode="ASYNC">
                    <transaction mode="NON_XA"/>
                    <eviction strategy="NONE"/>
                </replicated-cache>
            </cache-container>
{quote}

                
> IllegalStateException when Query Cache is enabled
> -------------------------------------------------
>
>                 Key: AS7-3447
>                 URL: https://issues.jboss.org/browse/AS7-3447
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: Clustering, JPA / Hibernate
>    Affects Versions: 7.1.0.CR1b
>            Reporter: Zbyněk Roubalík
>            Assignee: Scott Marlow
>             Fix For: 7.1.0.Final
>
>
> I've updated AS7 sources from master branch, then enabled Query cache in [SecondLevelCacheTestCase|https://github.com/jbossas/jboss-as/blob/master/testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/jpa/hibernate/SecondLevelCacheTestCase.java] (put <property name="hibernate.cache.use_query_cache" value="true"/> in persistence.xml) and then got IllegalStateException. This tests passes but the exception can be found in server.log:
> ERROR [org.infinispan.interceptors.InvocationContextInterceptor] (pool-4-thread-1) ISPN000136: Execution error: java.lang.IllegalStateException: Transaction TransactionImple < ac, BasicAction: 0:ffff7f000001:cbbd222:4f1f2b9a:8 status: ActionStatus.COMMITTED > is not in a valid state to be invoking cache operations on.
> server output: http://pastebin.com/xMZEuMp1
> When Query cache is disabled, everything is OK.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the jboss-jira mailing list