C20171008S commented on issue #12209:
URL: https://github.com/apache/dubbo/issues/12209#issuecomment-1533979340
> 服务端那边的日志有吗
public class Provider {
private static String zookeeperHost =
System.getProperty("zookeeper.address", "127.0.0.1");
public static void main(String[] args) throws Exception {
ServiceConfig<UserService> service = new ServiceConfig<>();
ApplicationConfig application = new
ApplicationConfig("dubbo-provider");
application.setQosEnable(false);
service.setApplication(application);
service.setRegistry(new RegistryConfig("zookeeper://" +
zookeeperHost + ":2181"));
service.setInterface(UserService.class);
service.setRef(new UserServiceImpl());
service.export();
System.out.println("Dubbo provider started");
new CountDownLatch(1).await();
}
public static class UserServiceImpl implements UserService {
@Override
public String exec(Map<String, Object> params) {
return "success";
}
@Override
public void deleteBy(Long[] ids) {
System.out.println(JSON.toJSONString(ids));
}
}
interface UserService {
/**
* 按照条件执行
*
* @param params
* @return
*/
String exec(Map<String, Object> params);
/**
* 删除
*
* @param ids
*/
void deleteBy(Long[] ids);
}
}
[traceId: ] 2023-05-04 09:22:31 [NettyServerWorker-3-1] WARN
org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation - [DUBBO] Decode
rpc invocation failed: array not support input TYPED_ANY -110 [1], offset 1/10,
dubbo version: 3.2.0, current host: 10.88.107.34, error code: 4-20. This may be
caused by , go to https://dubbo.apache.org/faq/4/20 to find instructions.
com.alibaba.fastjson2.JSONException: array not support input TYPED_ANY -110
[1], offset 1/10
at
com.alibaba.fastjson2.JSONReaderJSONB.startArray(JSONReaderJSONB.java:1265)
at
com.alibaba.fastjson2.reader.ObjectReaderImplInt64Array.readJSONBObject(ObjectReaderImplInt64Array.java:92)
at com.alibaba.fastjson2.JSONB.parseObject(JSONB.java:535)
at
org.apache.dubbo.common.serialize.fastjson2.FastJson2ObjectInput.readObject(FastJson2ObjectInput.java:118)
at
org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation.drawArgs(DecodeableRpcInvocation.java:261)
at
org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation.decode(DecodeableRpcInvocation.java:162)
at
org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation.decode(DecodeableRpcInvocation.java:102)
at
org.apache.dubbo.rpc.protocol.dubbo.DubboCodec.decodeBody(DubboCodec.java:173)
at
org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:138)
at
org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:92)
at
org.apache.dubbo.rpc.protocol.dubbo.DubboCountCodec.decode(DubboCountCodec.java:60)
at
org.apache.dubbo.remoting.transport.netty4.NettyCodecAdapter$InternalDecoder.decode(NettyCodecAdapter.java:103)
at
io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:529)
at
io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:468)
at
io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:290)
at
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
at
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at
io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at
io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
at
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440)
at
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at
io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
at
io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)
at
io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788)
at
io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724)
at
io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)
at
io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
at
io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at
io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:1623)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]