[infinispan-issues] [JBoss JIRA] (ISPN-1653) CacheLoader with BdbjeCacheStore throws NotSerializableException: org.infinispan.marshall.MarshalledValue

Hüdaverdi Cakir (Commented) (JIRA) jira-events at lists.jboss.org
Thu Jan 5 04:08:09 EST 2012


    [ https://issues.jboss.org/browse/ISPN-1653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12653977#comment-12653977 ] 

Hüdaverdi Cakir commented on ISPN-1653:
---------------------------------------

Thanks Galder for the feedback!

In fact, I've tried both, storeAsBinary true and false, did not help, too. So it's not really a valid workaround for CR2.

For Lucene index use case, storeAsBinary is disabled.
I've defined {code}<storeAsBinary enabled="true"/>{code} in the default section. For Lucene caches, I've overwritten/disabled it (see config). But as I said, it does not help.

It's true, I've squeezed both use cases, L2C and Lucene, into one config and I'm using both. I was thinking of splitting them into two configs but was afraid of having two CacheManagers and thus two JGroups clusters. Isn't that the case?
Also here: https://docs.jboss.org/author/pages/viewpage.action?pageId=5832838
It sounds like having two CacheManagers makes sense mainly when two different network characteristics needed, which is not the case for my use case.

Please, correct me if I'm wrong. I'd prefer to split them into two separate configs, actually.

Thx!
                
> CacheLoader with BdbjeCacheStore throws NotSerializableException: org.infinispan.marshall.MarshalledValue
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: ISPN-1653
>                 URL: https://issues.jboss.org/browse/ISPN-1653
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Loaders and Stores
>    Affects Versions: 5.1.0.CR2
>         Environment: Jetty 7.5.4, JDK 1.6.0
>            Reporter: Hüdaverdi Cakir
>            Assignee: Galder Zamarreño
>              Labels: Bdbje, Berkeley, Lucene
>             Fix For: 5.1.0.CR3
>
>         Attachments: infinispan-config.xml, infinispan.log
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the infinispan-issues mailing list