Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1862

"java.lang.IllegalStateException: This is a tx cache!" when using federation

    XMLWordPrintable

Details

    Description

      When configuring filesystem federation, this error appears and cannot be avoided by changing configuration.

      See attached for the ModeShape repository configuration and the ISPN cache configuration files. The stacktrace was:

      Caused by: 
      java.lang.IllegalStateException: This is a tx cache!
        at org.infinispan.context.TransactionalInvocationContextContainer.createInvocationContext(TransactionalInvocationContextContainer.java:112)
      	at org.infinispan.context.TransactionalInvocationContextContainer.createInvocationContext(TransactionalInvocationContextContainer.java:107)
      	at org.infinispan.CacheImpl.getInvocationContextForWrite(CacheImpl.java:442)
      	at org.infinispan.CacheImpl.lock(CacheImpl.java:538)
      	at org.infinispan.DecoratedCache.lock(DecoratedCache.java:135)
      	at org.infinispan.schematic.internal.SchematicEntryProxy.getDeltaValueForWrite(SchematicEntryProxy.java:173)
      	at org.infinispan.schematic.internal.SchematicEntryProxy.editDocumentContent(SchematicEntryProxy.java:287)
      	at org.modeshape.jcr.cache.document.WritableSessionCache.createProjection(WritableSessionCache.java:1361)
      	at org.modeshape.jcr.ModeShapeFederationManager.createProjection(ModeShapeFederationManager.java:55)
      	at org.modeshape.jcr.Connectors.createPreconfiguredProjections(Connectors.java:140)
      	at org.modeshape.jcr.Connectors.initialize(Connectors.java:122)
      	at org.modeshape.jcr.JcrRepository$RunningState.postInitialize(JcrRepository.java:1268)
      	at org.modeshape.jcr.JcrRepository.doStart(JcrRepository.java:364)
      	at org.modeshape.jcr.JcrRepository.start(JcrRepository.java:285)
      	at org.modeshape.jcr.JcrRepositoryFactory.getRepositoryFromConfigFile(JcrRepositoryFactory.java:368)
      	at org.modeshape.jcr.JcrRepositoryFactory.getRepository(JcrRepositoryFactory.java:220)
      	at org.modeshape.jcr.JcrRepositoryFactory.getRepository(JcrRepositoryFactory.java:205)
      	at ...
      

      Attachments

        Issue Links

          Activity

            People

              rhauch Randall Hauch (Inactive)
              ajs6f_jira A Soroka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: