[
https://issues.redhat.com/browse/ISPN-12584?page=com.atlassian.jira.plugi...
]
Dan Berindei commented on ISPN-12584:
-------------------------------------
[~ramon.gordillo] got it, now it all makes sense.
The documentation says a little about when marshalling is used, but it's not
formulated as a rule, only as advice, and it's not very clear that it applies to all
marshalling, not only to protostream:
https://infinispan.org/docs/stable/titles/developing/developing.html#mars...
I agree that for applications using Spring, where everything uses Java Serialization, and
users may want to store Spring objects without worrying about how they are marshalled,
JavaSerializationMarshaller should be the default.
OTOH I believe Protostream makes for a better default outside Spring (e.g. in Quarkus),
because it can be indexed/queried without unmarshalling, because it helps evolving the
data objects, and because it doesn't require reflection.
Protobuf serialization is being used in library mode with spring
starter
------------------------------------------------------------------------
Key: ISPN-12584
URL:
https://issues.redhat.com/browse/ISPN-12584
Project: Infinispan
Issue Type: Bug
Components: Marshalling
Affects Versions: 12.0.0.Dev07, 11.0.8.Final
Reporter: Ramon Gordillo Gutierrez
Assignee: Dan Berindei
Priority: Major
Fix For: 12.1.0.Final
With 11.0.8, I get the following exception when doing a put in a replicated-cache:
{noformat}
2020-12-18 07:21:43.232 WARN 1 --- [98f-md4d4-51498] org.infinispan.PERSISTENCE :
ISPN000559: Cannot marshall 'class com.redhat.Customer'
java.lang.IllegalArgumentException: No marshaller registered for Java type
com.redhat.Customer{noformat}
Same code is working right on a local-cache
I have tried also 12.0.0.Dev7 (with 11.0.6 spring starter), and the exception is similar
but slightly different:
{noformat}
2020-12-18 08:07:48.956 WARN 1 --- [nio-8080-exec-1] org.infinispan.PERSISTENCE:
ISPN000559: Cannot marshall 'class
org.infinispan.spring.common.provider.NullValue'
java.lang.IllegalArgumentException: No marshaller registered for Java type
org.infinispan.spring.common.provider.
{noformat}
--
This message was sent by Atlassian Jira
(v8.13.1#813001)