Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
JsonValueSerializerWrapper does not support decoding via TypeRef
Description
Community member anilb reports on the Couchbase Forums:
Looks starting from version 3.1.5 of the client the , when a customer json serializer is provided, the sdk is wrapping the serializer in JsonValueSerializerWrapper, and this did not have an implementation for the method that take a TypeRef object as input. This causing the above error.
<T> T deserialize(TypeRef<T> target, byte[] input)
Community member anilb reports on the Couchbase Forums:
Looks starting from version 3.1.5 of the client the , when a customer json serializer is provided, the sdk is wrapping the serializer in JsonValueSerializerWrapper, and this did not have an implementation for the method that take a TypeRef object as input. This causing the above error.
<T> T deserialize(TypeRef<T> target, byte[] input)
the initialization code in ClusterEnvironment
private ClusterEnvironment(ClusterEnvironment.Builder builder) {
super(builder);
*this.jsonSerializer = (JsonSerializer)(builder.jsonSerializer != null ? new JsonValueSerializerWrapper(builder.jsonSerializer) : this.newDefaultSerializer(builder.cryptoManager));*
this.transcoder = (Transcoder)CbObjects.defaultIfNull(builder.transcoder, () -> {
return JsonTranscoder.create(this.jsonSerializer);
});
this.cryptoManager = Optional.ofNullable(builder.cryptoManager);
}