title: Error- Ehcache key 1 recovered fromorg.ehcache.spi.resilience.StoreAccessException
body: <p>I am trying to use EHCache3 with Spring Boot Application.
  So i have done below configurations for same.</p>
  <p><strong>EhcacheConfig--&gt;</strong></p>
  <pre><code>
  @Configuration
  @EnableCaching
  @EnableAutoConfiguration(exclude = {DataSourceAutoConfiguration.class})
  public class EhcacheConfig {
  
      @Bean
      CacheManager getCacheManager() {
  
          CachingProvider provider = Caching.getCachingProvider();
          CacheManager cacheManager = provider.getCacheManager();
  
          CacheConfigurationBuilder&lt;Integer, WorklistListResponse&gt; configurationBuilder =
                  CacheConfigurationBuilder.newCacheConfigurationBuilder(
                                  Integer.class,
                                  WorklistListResponse.class,
                                  ResourcePoolsBuilder.heap(1000).offheap(25, MemoryUnit.MB))
                          .withExpiry(ExpiryPolicyBuilder.timeToLiveExpiration(Duration.ofMinutes(2)));
          CacheEventListenerConfigurationBuilder asynchronousListener = CacheEventListenerConfigurationBuilder
                  .newEventListenerConfiguration(new CacheEventLogger()
                          , EventType.CREATED, EventType.EXPIRED).unordered().asynchronous();
          //create caches we need
          cacheManager.createCache(&quot;WorkListCache&quot;,
                  Eh107Configuration.fromEhcacheCacheConfiguration(configurationBuilder.add(asynchronousListener)));
  
          return cacheManager;
      }
  }
  </code></pre>
  <p><strong>Call Cache from service class--&gt;</strong></p>
  <pre><code> @Override
      @Cacheable(cacheNames=&quot;WorkListCache&quot;,key = &quot;#filterRequest.currentPage&quot;)
      public WorklistListResponse getFilterWorklists(FilterRequest filterRequest) {
          log.info(&quot;From Service Layer Call...&quot;);
  </code></pre>
  <p><strong>Expected cache object generated with Swagger Code Gen--&gt;</strong></p>
  <pre><code>/**
   * WorklistListResponse
   */
  @javax.annotation.Generated(value = &quot;org.openapitools.codegen.languages.SpringCodegen&quot;, date = &quot;2021-11-12T15:55:02.856537800+05:30[Asia/Calcutta]&quot;)
  
  public class WorklistListResponse  implements Serializable {
    private static final long serialVersionUID = 1L;
  
    @JsonProperty(&quot;worklist&quot;)
    @Valid
    private List&lt;WorklistResponse&gt; worklist = null;
  
    @JsonProperty(&quot;totalRecordsCount&quot;)
    private Integer totalRecordsCount;
  </code></pre>
  <p>However after this configuration , I am getting below error--</p>
  <pre><code>2021-11-15 12:08:34,596 [INFO ][task-management][TraceId:4c4129367aa6ee47][WorklistServiceImpl.getFilterWorklists:179] - From Service Layer Call...
  2021-11-15 12:08:34,666 [INFO ][task-management][TraceId:4c4129367aa6ee47][AbstractResilienceStrategy.recovered:116] - Ehcache key 1 recovered fromorg.ehcache.spi.resilience.StoreAccessException: org.ehcache.spi.serialization.SerializerException: java.io.NotSerializableException: java.util.ArrayList$SubList
      at org.ehcache.core.exceptions.StorePassThroughException.handleException(StorePassThroughException.java:78)
      at org.ehcache.impl.internal.store.offheap.AbstractOffHeapStore.computeWithRetry(AbstractOffHeapStore.java:1042)
      at org.ehcache.impl.internal.store.offheap.AbstractOffHeapStore.put(AbstractOffHeapStore.java:247)
  </code></pre>
  <p>Can anyone help me to understand the issue here ?</p>
  <p>Thank you</p>