Hi Team,
I am using ProtoStreamMarshaller to put my data into remote infinispan cache.
While putting custom object, data is getting stored in remote infinispan cache and also marshaller classes have been created for those custom object.
But while putting hashmap into remote cache I am getting below error.
"No marshaller registered for object of Java type java.util.HashMap".
Also it is not poosible to create marshaller for hashmap.
Below are my code spnippet.
@AutoProtoSchemaBuilder(
dependsOn = {
CommonTypes.class,
CommonContainerTypes.class
},
includeClasses = {
UserSession.class
},
schemaFileName = "cache.proto",
schemaFilePath = "proto/")
public interface CacheInitalizer extends SerializationContextInitializer {
}
So while putting usersession into remote cache its value contains HashMap Object.
In that case it is failing.