You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No encoder for class java.nio.HeapByteBuffer error occurs when the application tries to insert the access_token to the mariadb 10.6
version used: 'org.mariadb:r2dbc-mariadb:1.1.3'
Additional information
at the below code, codec.canEncode(value) returns false. I think the problem is ByteBufferCode check the instance type using ByteBuf.class.isAssignableFrom.
FYI, in dev.miku:r2dbc-mysql:0.8.2.RELEASE, they use instanceof ByteBuffer.
// Codec.codecByClass
...
publicstaticCodec<?> codecByClass(Class<?> value, intindex) {
for (Codec<?> codec : Codecs.LIST) {
if (codec.canEncode(value)) {
returncodec;
}
}
thrownewIllegalArgumentException(
String.format("No encoder for class %s (parameter at index %s) ", value.getName(), index));
}
}
No encoder for class java.nio.HeapByteBuffer
No encoder for class java.nio.HeapByteBuffer
error occurs when the application tries to insert the access_token to the mariadb 10.6Additional information
at the below code,
codec.canEncode(value)
returnsfalse
. I think the problem isByteBufferCode
check the instance type usingByteBuf.class.isAssignableFrom
.FYI, in
dev.miku:r2dbc-mysql:0.8.2.RELEASE
, they useinstanceof ByteBuffer
.log
The text was updated successfully, but these errors were encountered: