Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1105

NotSerializableException: InfinispanCache$CacheEntry

    Details

    • Steps to Reproduce:
      Hide

      Create a basic RestEasy project with local server-side caching and Inifinispan configured.
      Use the Infinispan specified in the description.
      Perform a basic GET request for a resource that has the @Cache annotation applied.
      Request will result in an HTTP Status 500 with the specified exception being thrown.

      Show
      Create a basic RestEasy project with local server-side caching and Inifinispan configured. Use the Infinispan specified in the description. Perform a basic GET request for a resource that has the @Cache annotation applied. Request will result in an HTTP Status 500 with the specified exception being thrown.

      Description

      Caching implementation with Infinispan appears to be broken when configured with a persistent cache. The Infinispan configuration below results in the following exception:

      org.infinispan.marshall.NotSerializableException: org.jboss.resteasy.plugins.cache.server.InfinispanCache$CacheEntry

      infinispan.xml:

      <infinispan
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="urn:infinispan:config:5.1 http://www.infinispan.org/schemas/infinispan-config-5.1.xsd"
      xmlns="urn:infinispan:config:5.1">
      <namedCache name="MyCache">
      <eviction strategy="LIRS" maxEntries="100" />
      <loaders passivation="false" shared="false" preload="true">
      <loader class="org.infinispan.loaders.file.FileCacheStore" fetchPersistentState="true"
      ignoreModifications="false" purgeOnStartup="false">
      <properties>
      <property name="location" value="C:/temp/test-rest/"/>
      </properties>
      </loader>
      </loaders>
      </namedCache>
      </infinispan>

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                ron_sigal Ronald Sigal
                Reporter:
                glenn.keith Glenn Keith
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: