Closed dyachkovD closed 5 years ago
It looks like a serialization issue, check this:
Serialized class com.example.client.controller.MainController$1 must implement java.io.Serializable
@beiwei30 No, com.example.client.controller.MainController$1 is simple closure. If i use XML configuration, works fine. The @Argument
annotation seems to be ignored. Need reopen this issue.
[x] I have searched the issues of this repository and believe that this is not a duplicate.
[x] I have checked the FAQ of this repository and believe that this is not a duplicate.
Environment
Dubbo version: 2.7.1
Operating System version: Fedora 29
Java version: SE 11 (18.9)
Steps to reproduce this issue
Expected Result
No exceptions thrown
Actual Result
Throws IllegalStateException
Caused by: org.apache.dubbo.rpc.RpcException: Failed to invoke remote method: addMessageListener, provider: dubbo://127.0.0.1:20880/com.example.api.service.MessagingService?application=dubbo-spring-boot-starter&default.generic=false&default.lazy=false&default.sticky=false&dubbo=2.0.2&generic=false&interface=com.example.api.service.MessagingService&lazy=false&methods=addMessageListener&pid=5389®ister.ip=192.168.1.103&revision=0.0.1-SNAPSHOT&side=consumer&sticky=false×tamp=1563276164135, cause: io.netty.handler.codec.EncoderException: java.lang.IllegalStateException: Serialized class com.example.client.controller.MainController$1 must implement java.io.Serializable io.netty.handler.codec.EncoderException: java.lang.IllegalStateException: Serialized class com.example.client.controller.MainController$1 must implement java.io.Serializable