dubbo调⽤服务出现如下异常
log4j:WARN No appenders could be found for logger (t.support.ClassPathXmlApplicationContext).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See /log4j/1.2/faq.html#noconfig for more info.
Exception in thread "main" com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method IFtpHdfsFileTransfer in the di.io.manager.IFTPtoHDFSDubboService. Tried 3 times of the providers [172.28.3.40:21000] (1/1) from java.lang.IllegalStateException: Serialized di.io.manager.FTPtoHDFSReturn must implement java.io.Serializable
at com.alibaba.caucho.hessian.DefaultSerializer(SerializerFactory.java:261)
at com.alibaba.caucho.hessian.Serializer(SerializerFactory.java:233)
at com.alibaba.caucho.hessian.io.Hessian2Output.writeObject(Hessian2Output.java:406)
at com.alibaba.dubbomon.serialize.support.hessian.Hessian2ObjectOutput.writeObject(Hessian2ObjectOutput.java:92)
at com.alibaba.dubbo.rpc.protocol.deResponseData(DubboCodec.java:200)
at com.deResponse(ExchangeCodec.java:273)
at com.de(ExchangeCodec.java:77)
at com.alibaba.dubbo.rpc.protocol.de(DubboCountCodec.java:41)
at com.ansportty.de(NettyCodecAdapter.java:82)
at org.OneToOneEncoder.doEncode(OneToOneEncoder.java:66)
at org.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:59)
at org.jbossty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:591)
at org.jbossty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendDownstream(DefaultChannelPipeline.java:784)
at org.jbossty.channel.SimpleChannelHandler.writeRequested(SimpleChannelHandler.java:292)
at com.ansportty.NettyHandler.writeRequested(NettyHandler.java:99)
at org.jbossty.channel.SimpleChannelHandler.handleDownstream(SimpleChannelHandler.java:254)
at org.jbossty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:591)
at org.jbossty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:582)
at org.jbossty.channel.Channels.write(Channels.java:704)
at org.jbossty.channel.Channels.write(Channels.java:671)
at org.jbossty.channel.AbstractChannel.write(AbstractChannel.java:248)
at com.ansportty.NettyChannel.send(NettyChannel.java:98)
at com.ansport.AbstractPeer.send(AbstractPeer.java:51)
at com.hange.support.ived(HeaderExchangeHandler.java:171)
at com.ived(DecodeHandler.java:52)
at com.ansport.dispather.ChannelEventRunnable.run(ChannelEventRunnable.java:82)
at urrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at urrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
at com.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:101)
at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:226)
java dubbo
at com.alibaba.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:72)
at com.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:52)
at com.alibaba.dubbomon.bytecode.proxy0.IFtpHdfsFileTransfer(proxy0.java)
di.io.manager.Consumer.main(Consumer.java:20)
Caused by: com.ing.RemotingException: Failed to send response: Response [id=2, version=2.0.0, status=20, event=false, error=null, result=RpcResult [di.io.manager.FTPtoHDFSReturn@46c79a0c, except java.lang.IllegalStateException: Serialized di.io.manager.FTPtoHDFSReturn must implement java.io.Serializable
at com.alibaba.caucho.hessian.DefaultSerializer(SerializerFactory.java:261)
at com.alibaba.caucho.hessian.Serializer(SerializerFactory.java:233)
at com.alibaba.caucho.hessian.io.Hessian2Output.writeObject(Hessian2Output.java:406)
at com.alibaba.dubbomon.serialize.support.hessian.Hessian2ObjectOutput.writeObject(Hessian2ObjectOutput.java:92)
at com.alibaba.dubbo.rpc.protocol.deResponseData(DubboCodec.java:200)
at com.deResponse(ExchangeCodec.java:273)
at com.de(ExchangeCodec.java:77)
at com.alibaba.dubbo.rpc.protocol.de(DubboCountCodec.java:41)
at com.ansportty.de(NettyCodecAdapter.java:82)
at org.OneToOneEncoder.doEncode(OneToOneEncoder.java:66)
at org.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:59)
at org.jbossty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:591)
at org.jbossty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendDownstream(DefaultChannelPipeline.java:784)
at org.jbossty.channel.SimpleChannelHandler.writeRequested(SimpleChannelHandler.java:292)
at com.ansportty.NettyHandler.writeRequested(NettyHandler.java:99)
at org.jbossty.channel.SimpleChannelHandler.handleDownstream(SimpleChannelHandler.java:254)
at org.jbossty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:591)
at org.jbossty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:582)
at org.jbossty.channel.Channels.write(Channels.java:704)
at org.jbossty.channel.Channels.write(Channels.java:671)
at org.jbossty.channel.AbstractChannel.write(AbstractChannel.java:248)
at com.ansportty.NettyChannel.send(NettyChannel.java:98)
at com.ansport.AbstractPeer.send(AbstractPeer.java:51)
at com.hange.support.ived(HeaderExchangeHandler.java:171)
at com.ived(DecodeHandler.java:52)
at com.ansport.dispather.ChannelEventRunnable.run(ChannelEventRunnable.java:82)
at urrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at urrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
at com.hange.urnFromResponse(DefaultFuture.java:190)
at com.hange.(DefaultFuture.java:110)
at com.hange.(DefaultFuture.java:84)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboInvoker.doInvoke(DubboInvoker.java:96)
at com.alibaba.dubbo.rpc.protocol.AbstractInvoker.invoke(AbstractInvoker.java:144)
at com.alibaba.dubbo.rpc.listener.ListenerInvokerWrapper.invoke(ListenerInvokerWrapper.java:74)
at com.alibaba.dubbo.rpc.protocol.dubbo.filter.FutureFilter.invoke(FutureFilter.java:53)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)
at com.itor.support.MonitorFilter.invoke(MonitorFilter.java:75)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)
at com.alibaba.dubbo.rpc.filter.ConsumerContextFilter.invoke(ConsumerContextFilter.java:48)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)
at com.alibaba.dubbo.rpc.protocol.InvokerWrapper.invoke(InvokerWrapper.java:53)
at com.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:77)
... 5 more
解决⽅案:
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论