Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-1653

CacheLoader with BdbjeCacheStore throws NotSerializableException: org.infinispan.marshall.MarshalledValue

    XMLWordPrintable

Details

    • Workaround Exists
    • Hide

      Current workaround is disabling the persistent loaders for Lucene which means the full index must be re-created once whole cluster has to be restarted.

      Another workaround is to disable store as binary (or lazy deserialization) capabilities.

      Show
      Current workaround is disabling the persistent loaders for Lucene which means the full index must be re-created once whole cluster has to be restarted. Another workaround is to disable store as binary (or lazy deserialization) capabilities.

    Description

      Trying to setup a persistent CacheLoader for distributed Lucene index. Using Berkeley DB as backend.

      During startup following exception is thrown:
      Caused by: java.io.NotSerializableException: org.infinispan.marshall.MarshalledValue
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164) ~[na:1.6.0_29]
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330) ~[na:1.6.0_29]
      at com.sleepycat.bind.serial.SerialBinding.objectToEntry(SerialBinding.java:179) ~[je-5.0.34.jar:5.0.34]
      at com.sleepycat.collections.DataView.useKey(DataView.java:502) ~[je-5.0.34.jar:5.0.34]
      at com.sleepycat.collections.DataCursor.getSearchKey(DataCursor.java:551) ~[je-5.0.34.jar:5.0.34]
      at com.sleepycat.collections.StoredContainer.getValue(StoredContainer.java:301) ~[je-5.0.34.jar:5.0.34]
      at com.sleepycat.collections.StoredMap.get(StoredMap.java:240) ~[je-5.0.34.jar:5.0.34]
      at org.infinispan.loaders.bdbje.BdbjeCacheStore.load(BdbjeCacheStore.java:405) ~[infinispan-cachestore-bdbje.jar:5.1.0.CR2]
      ... 118 common frames omitted

      Also tried with replicated mode, fetchPersistentState=false, preload=false... no success.

      Attachments

        Issue Links

          Activity

            People

              rh-ee-galder Galder Zamarreño
              hcakir_jira Hüdaverdi Cakir (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: