-
Notifications
You must be signed in to change notification settings - Fork 279
Open
Description
Hi, Since Spring Framework 5.3 supports Kotlinx.serialization, I am actively using it in my project. (Reference Link)
I tested it by applying Kotlinx.Serialization, but it didn't work.
@Serializable
data class UserDto (
val id: Long,
val name: String,
val roleCode: String
)"exception" : {
"name" : "java.lang.IllegalArgumentException",
"message" : "Non-serializable object",
"stackTrace" : {
"at" : [
"net.rubyeye.xmemcached.transcoders.BaseSerializingTranscoder.serialize(BaseSerializingTranscoder.java:93)",
"net.rubyeye.xmemcached.transcoders.SerializingTranscoder.encode(SerializingTranscoder.java:199)",
"net.rubyeye.xmemcached.command.text.TextStoreCommand.encodeValue(TextStoreCommand.java:185)",
"net.rubyeye.xmemcached.command.text.TextStoreCommand.encode(TextStoreCommand.java:145)",
"net.rubyeye.xmemcached.impl.MemcachedTCPSession.wrapMessage(MemcachedTCPSession.java:174)",
"com.google.code.yanf4j.core.impl.AbstractSession.write(AbstractSession.java:370)",
"net.rubyeye.xmemcached.impl.MemcachedConnector.send(MemcachedConnector.java:504)",
"net.rubyeye.xmemcached.XMemcachedClient.sendCommand(XMemcachedClient.java:318)",
"net.rubyeye.xmemcached.XMemcachedClient.sendStoreCommand(XMemcachedClient.java:2343)",
"net.rubyeye.xmemcached.XMemcachedClient.set(XMemcachedClient.java:1252)",
"net.rubyeye.xmemcached.XMemcachedClient.set(XMemcachedClient.java:1306)",
"net.rubyeye.xmemcached.XMemcachedClient.set(XMemcachedClient.java:1295)",
"io.sixhours.memcached.cache.XMemcachedClient.set(XMemcachedClient.java:61)",
"io.sixhours.memcached.cache.MemcachedCache.put(MemcachedCache.java:108)",
As a result of debugging, it was confirmed that SerializingTranscoder is the Default Transcoder of the module.
Is there any other way to apply Kotlin serialization? I would be grateful if you could guide me.
Please also check out review of Kotlin serialization support.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels