Jimy-Guo commented on issue #9729:
URL: https://github.com/apache/dubbo/issues/9729#issuecomment-1064692328


   我也有这个报错,请问现在到什么进度了呢:
   2022-03-01 14:55:08.712  WARN 13048 --- [andler-thread-3] 
o.a.d.r.zookeeper.ZookeeperRegistry      :  [DUBBO] Failed to save registry 
cache file, will retry, cause: null, dubbo version: 3.0.5, current host: 
192.168.56.1
   
   java.nio.channels.OverlappingFileLockException: null
        at sun.nio.ch.SharedFileLockTable.checkList(FileLockTable.java:255) 
~[na:1.8.0_321]
        at sun.nio.ch.SharedFileLockTable.add(FileLockTable.java:152) 
~[na:1.8.0_321]
        at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:1107) 
~[na:1.8.0_321]
        at java.nio.channels.FileChannel.tryLock(FileChannel.java:1155) 
~[na:1.8.0_321]
        at 
org.apache.dubbo.registry.support.AbstractRegistry.doSaveProperties(AbstractRegistry.java:187)
 ~[dubbo-3.0.5.jar:3.0.5]
        at 
org.apache.dubbo.registry.support.AbstractRegistry$SaveProperties.run(AbstractRegistry.java:555)
 [dubbo-3.0.5.jar:3.0.5]
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
[na:1.8.0_321]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
[na:1.8.0_321]
        at java.lang.Thread.run(Thread.java:750) [na:1.8.0_321]
   我的程序也是启动正常,不过一旦调用dubbo服务就会报错:
   Caused by: org.apache.dubbo.remoting.RemotingException: 
io.netty.handler.codec.EncoderException: java.lang.NoSuchMethodError: 
org.apache.dubbo.common.serialize.hessian2.Hessian2SerializerFactory.getClassFactory()Lcom/alibaba/com/caucho/hessian/io/ClassFactory;
   io.netty.handler.codec.EncoderException: java.lang.NoSuchMethodError: 
org.apache.dubbo.common.serialize.hessian2.Hessian2SerializerFactory.getClassFactory()Lcom/alibaba/com/caucho/hessian/io/ClassFactory;
   at 
io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:125)
   at 
io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:717)
   at 
io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:709)
   at 
io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:792)
   at 
io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:702)
   at io.netty.handler.timeout.IdleStateHandler.write(IdleStateHandler.java:304)
   at 
io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:717)
   at 
io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:709)
   at 
io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:792)
   at 
io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:702)
   at io.netty.channel.ChannelDuplexHandler.write(ChannelDuplexHandler.java:115)
   at 
org.apache.dubbo.remoting.transport.netty4.NettyClientHandler.write(NettyClientHandler.java:88)
   at 
io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:717)
   at 
io.netty.channel.AbstractChannelHandlerContext.invokeWriteAndFlush(AbstractChannelHandlerContext.java:764)
   at 
io.netty.channel.AbstractChannelHandlerContext$WriteTask.run(AbstractChannelHandlerContext.java:1071)
   at 
io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
   at 
io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
   at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
   at 
io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
   at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
   at 
io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
   at java.lang.Thread.run(Thread.java:748)
   Caused by: java.lang.NoSuchMethodError: 
org.apache.dubbo.common.serialize.hessian2.Hessian2SerializerFactory.getClassFactory()Lcom/alibaba/com/caucho/hessian/io/ClassFactory;
   at 
org.apache.dubbo.common.serialize.hessian2.dubbo.DefaultHessian2FactoryInitializer.createSerializerFactory(DefaultHessian2FactoryInitializer.java:28)
   at 
org.apache.dubbo.common.serialize.hessian2.dubbo.AbstractHessian2FactoryInitializer.getSerializerFactory(AbstractHessian2FactoryInitializer.java:46)
   at 
org.apache.dubbo.common.serialize.hessian2.Hessian2ObjectOutput.(Hessian2ObjectOutput.java:37)
   at 
org.apache.dubbo.common.serialize.hessian2.Hessian2Serialization.serialize(Hessian2Serialization.java:51)
   at 
org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.encodeRequest(ExchangeCodec.java:253)
   at 
org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.encode(ExchangeCodec.java:71)
   at 
org.apache.dubbo.rpc.protocol.dubbo.DubboCountCodec.encode(DubboCountCodec.java:47)
   at 
org.apache.dubbo.remoting.transport.netty4.NettyCodecAdapter$InternalEncoder.encode(NettyCodecAdapter.java:69)
   at 
io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:107)
   ... 21 more
   
   at 
org.apache.dubbo.remoting.exchange.support.DefaultFuture.doReceived(DefaultFuture.java:214)
   at 
org.apache.dubbo.remoting.exchange.support.DefaultFuture.received(DefaultFuture.java:176)
   at 
org.apache.dubbo.remoting.exchange.support.DefaultFuture.received(DefaultFuture.java:164)
   at 
org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleResponse(HeaderExchangeHandler.java:60)
   at 
org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:181)
   at 
org.apache.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:51)
   at 
org.apache.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:57)
   at 
org.apache.dubbo.common.threadpool.ThreadlessExecutor$RunnableWrapper.run(ThreadlessExecutor.java:184)
   at 
org.apache.dubbo.common.threadpool.ThreadlessExecutor.waitAndDrain(ThreadlessExecutor.java:103)
   at org.apache.dubbo.rpc.AsyncRpcResult.get(AsyncRpcResult.java:193)
   ... 109 common frames omitted


-- 
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]

Reply via email to