After spending some time tinkering with the settings, the way to get it to work is to enable write-behind on the file-store, else the dreaded SchematicEntryLiteral expected to be marshallable would occur:
<cache-container name="modeshape" default-cache="dshell"> <transport lock-timeout="60000"/> <distributed-cache name="dshell" mode="ASYNC" batching="false"> <transaction mode="NON_XA" locking="PESSIMISTIC"/> <file-store relative-to="jboss.server.data.dir" path="modeshape/store/dshell" passivation="false" purge="false"> <write-behind/> </file-store> </distributed-cache> </cache-container>
1 of 1 people found this helpful
Clement Pang wrote:
Upon start-up, we see the exception from the bug: Object of type class org.infinispan.schematic.internal.SchematicEntryLiteral expected to be marshallable
For AS 7.1.1.Final users using synchronous distribution: this issue is should not pose a problem.
For AS 7.1.1.Final users using asynchronous distribution: I think that Clement's solution of using write-behind is the only way to get this to work. (I've updated MODE-1769 with a comment reflecting this.)
For AS7.2 users: this should be fixed, and you should not have to enable write-behind when using asynchronous distribution.
For those not using AS7 at all: the fix in ModeShape 3.1.1.Final appears to work, but we also recommend you override ModeShape's BOM and upgrade to the latest Infinispan 5.2.x version (which has fixed the problem). See our documentation for details.