@ProtobufClass
public class Resp {
int code;
String msg;
Object data;
private Resp(int code, String msg, Object data) {
this.code = code;
this.msg = msg;
this.data = data;
}
public Resp() {
}
public static Resp success(Object data) {
return new Resp(0, "成功", data);
}
public static Resp success() {
return success(null);
}
}
19:12:40.318 [RequestMessage-8-5] ERROR CommonStdout - Invalid class [java.lang.String] no field use annotation @com.baidu.bjf.remoting.protobuf.annotation.Protobuf at class java.lang.String
java.lang.IllegalArgumentException: Invalid class [java.lang.String] no field use annotation @com.baidu.bjf.remoting.protobuf.annotation.Protobuf at class java.lang.String
at com.baidu.bjf.remoting.protobuf.utils.ProtobufProxyUtils.fetchFieldInfos(ProtobufProxyUtils.java:120)
at com.baidu.bjf.remoting.protobuf.code.AbstractCodeGenerator.<init>(AbstractCodeGenerator.java:75)
at com.baidu.bjf.remoting.protobuf.code.TemplateCodeGenerator.<init>(TemplateCodeGenerator.java:69)
at com.baidu.bjf.remoting.protobuf.ProtobufProxy.getCodeGenerator(ProtobufProxy.java:389)
at com.baidu.bjf.remoting.protobuf.ProtobufProxy.create(ProtobufProxy.java:155)
at com.baidu.bjf.remoting.protobuf.ProtobufProxy.create(ProtobufProxy.java:128)
at com.baidu.bjf.remoting.protobuf.code.CodedConstant.writeObject(CodedConstant.java:777)
at com.baidu.bjf.remoting.protobuf.code.CodedConstant.writeObject(CodedConstant.java:754)
at org.geek.chen.game.upgradation.common.rsp.Resp$$JProtoBufClass.doWriteTo(Resp$$JProtoBufClass.java:94)
at org.geek.chen.game.upgradation.common.rsp.Resp$$JProtoBufClass.encode(Resp$$JProtoBufClass.java:30)
at org.geek.chen.game.upgradation.common.rsp.Resp$$JProtoBufClass.encode(Resp$$JProtoBufClass.java:24)
at com.iohao.game.common.kit.ProtoKit.toBytes(ProtoKit.java:54)
at com.iohao.game.action.skeleton.core.codec.ProtoDataCodec.encode(ProtoDataCodec.java:36)
at com.iohao.game.action.skeleton.core.DataCodecKit.encode(DataCodecKit.java:50)
at com.iohao.game.action.skeleton.protocol.BarMessage.setData(BarMessage.java:80)
at com.iohao.game.action.skeleton.core.flow.interal.DefaultActionMethodResultWrap.wrap(DefaultActionMethodResultWrap.java:75)
at com.iohao.game.action.skeleton.core.DefaultActionCommandFlowExecute.execute(DefaultActionCommandFlowExecute.java:68)
at com.iohao.game.action.skeleton.core.ActionCommandHandler.handler(ActionCommandHandler.java:41)
at com.iohao.game.action.skeleton.core.BarSkeleton.handle(BarSkeleton.java:106)
at com.iohao.game.bolt.broker.core.common.processor.hook.DefaultRequestMessageClientProcessorHook.lambda$processLogic$0(DefaultRequestMessageClientProcessorHook.java:66)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
你的问题 | 使用场景
预期值
期望的预期值
实际值
实际值