3 Replies Latest reply on Aug 4, 2015 4:27 AM by Tristan Tarrant

    Infinispan server - local cache - store-as-binary

    German Tejero Newbie

      I download and install Infinispan server 8.0.0.Beta2 (http://downloads.jboss.org/infinispan/8.0.0.Beta2/infinispan-server-8.0.0.Beta2-bin.zip).

      I configure a local cache in a container with HotRod and Rest EndPoints:

      ...

              <subsystem xmlns="urn:infinispan:server:core:8.0" default-cache-container="local">

                  <cache-container name="local" default-cache="default" statistics="true">

      ...

                      <local-cache name="persona" start="EAGER">

                          <compatibility enabled="true"/>

                          <store-as-binary enabled="true"/>

                      </local-cache>

      ...

              </subsystem>

      ...

              <subsystem xmlns="urn:infinispan:server:endpoint:8.0">

                  <hotrod-connector socket-binding="hotrod" cache-container="local">

                      <topology-state-transfer lazy-retrieval="false" lock-timeout="1000" replication-timeout="5000"/>

                  </hotrod-connector>

                  <rest-connector socket-binding="rest" cache-container="local" security-domain="other" auth-method="BASIC"/>

              </subsystem>

      ...

       

      When start the server, throw an exception:

       

      14:28:03,622 ERROR [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0055: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: WFLYCTL0085: Failed to parse configuration

          at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:131)

          at org.jboss.as.server.ServerService.boot(ServerService.java:350)

          at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:271)

          at java.lang.Thread.run(Thread.java:745)

      Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[148,21]

      Message: WFLYCTL0198: Unexpected element '{urn:infinispan:server:core:8.0}store-as-binary' encountered

          at org.jboss.as.controller.parsing.ParseUtils.unexpectedElement(ParseUtils.java:89)

          at org.jboss.as.clustering.infinispan.subsystem.InfinispanSubsystemXMLReader_8_0.parseCacheElement(InfinispanSubsystemXMLReader_8_0.java:681)

          at org.jboss.as.clustering.infinispan.subsystem.InfinispanSubsystemXMLReader_8_0.parseLocalCache(InfinispanSubsystemXMLReader_8_0.java:431)

          at org.jboss.as.clustering.infinispan.subsystem.InfinispanSubsystemXMLReader_8_0.parseContainer(InfinispanSubsystemXMLReader_8_0.java:160)

          at org.jboss.as.clustering.infinispan.subsystem.InfinispanSubsystemXMLReader_8_0.readElement(InfinispanSubsystemXMLReader_8_0.java:55)

          at org.jboss.as.clustering.infinispan.subsystem.InfinispanSubsystemXMLReader_8_0.readElement(InfinispanSubsystemXMLReader_8_0.java:34)

          at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)

          at org.jboss.staxmapper.XMLExtendedStreamReaderImpl.handleAny(XMLExtendedStreamReaderImpl.java:69)

          at org.jboss.as.server.parsing.StandaloneXml.parseServerProfile(StandaloneXml.java:1199)

          at org.jboss.as.server.parsing.StandaloneXml.readServerElement_1_4(StandaloneXml.java:457)

          at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:144)

          at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:106)

          at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)

          at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)

          at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:123)

          ... 3 more

       

      14:28:03,626 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.

       

      How I can set up a cache to store in binary format?


      Thanks!!