Details
-
Bug
-
Resolution: Done
-
Blocker
-
3.1.3.Final
-
None
Description
enter folder, run:
mvn install
mvn exec:java -Djava.net.preferIPv4Stack=true
pres 'l' and enter
My program is trying to create new workspace, and then there's a execption like that:
java.lang.IllegalStateException: This is a tx cache!
at org.infinispan.context.TransactionalInvocationContextContainer.createInvocationContext(TransactionalInvocationContextContainer.java:80)
at org.infinispan.context.TransactionalInvocationContextContainer.createInvocationContext(TransactionalInvocationContextContainer.java:75)
at org.infinispan.CacheImpl.getInvocationContextForWrite(CacheImpl.java:418)
at org.infinispan.CacheImpl.lock(CacheImpl.java:502)
at org.infinispan.DecoratedCache.lock(DecoratedCache.java:134)
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.RepositoryCache.refreshWorkspaces(RepositoryCache.java:408)
at org.modeshape.jcr.cache.RepositoryCache.createWorkspace(RepositoryCache.java:707)
at org.modeshape.jcr.JcrWorkspace.createWorkspace(JcrWorkspace.java:662)
at org.modeshape.example.filesystem.ModeShapeExample.createWorkspaceIfNotExists(ModeShapeExample.java:129)
at org.modeshape.example.filesystem.ModeShapeExample.main(ModeShapeExample.java:70)
and configuration is for sure good - Randall Hauch wrote it himself.
If you comment:
createWorkspaceIfNotExists(repository,"1142");
session = repository.login("1142");
and put:
session = repository.login("default");
everything works great