You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/03/01 06:59:26 UTC

[GitHub] [dubbo] startjava opened a new issue #9729: 使用dubbo连接zookeeper集群时,消费者启动时出现节点已存在的异常。

startjava opened a new issue #9729:
URL: https://github.com/apache/dubbo/issues/9729


   提供者配置:
   ```
   # 应用名称
   spring:
     application:
       name: my-multi-registrycenter-provider
   
   # 配置dubbo
   dubbo:
     registries:
       provider1:
         address: zookeeper://192.168.0.103
         port: 2181
         provider2:
           address: zookeeper://192.168.0.140
           port: 2181
         provider3:
           address: zookeeper://192.168.0.62
           port: 2181
     scan:
       base-packages: com.ghy.www.my.multi.registrycenter.provider.service # 扫包
     application:
       logger: slf4j
   ```
   
   消费者配置:
   ```
   # 应用名称
   spring:
     application:
       name: my-multi-registrycenter-consumer
   
   server:
     port: 8085
   
   # 配置dubbo
   dubbo:
     registries:
       provider1:
         address: zookeeper://192.168.0.103
         port: 2181
       provider2:
         address: zookeeper://192.168.0.140
         port: 2181
       provider3:
         address: zookeeper://192.168.0.62
         port: 2181
     application:
       logger: slf4j
   ```
   
   服务提供者启动没有出现异常,而服务消费者启动出现异常。
   
   3台zookeeper服务器集群状态正常。
   
   [zk集群消费者启动报错.txt](https://github.com/apache/dubbo/files/8159413/zk.txt)
   
   
   


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] Jimy-Guo commented on issue #9729: 使用dubbo连接zookeeper集群时,消费者启动时出现节点已存在的异常。

Posted by GitBox <gi...@apache.org>.
Jimy-Guo commented on issue #9729:
URL: https://github.com/apache/dubbo/issues/9729#issuecomment-1064692775


   目前是这个版本的:
   spring-boot:2.3.5.RELEASE+org.apache.dubbo:dubbo:3.0.6+org.apache.dubbo:dubbo-spring-boot-starter:3.0.6
   @startjava 


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] startjava commented on issue #9729: 使用dubbo连接zookeeper集群时,消费者启动时出现节点已存在的异常。

Posted by GitBox <gi...@apache.org>.
startjava commented on issue #9729:
URL: https://github.com/apache/dubbo/issues/9729#issuecomment-1064693303


   官方进度我不知道,但官方回复说这个异常不会影响功能的使用,
   
   
   这个肯定是BUG了,看哪个版本FIX一下吧。
   
   
   
   
   ------------------&nbsp;原始邮件&nbsp;------------------
   发件人:                                                                                                                        "apache/dubbo"                                                                                    ***@***.***&gt;;
   发送时间:&nbsp;2022年3月11日(星期五) 上午9:55
   ***@***.***&gt;;
   ***@***.******@***.***&gt;;
   主题:&nbsp;Re: [apache/dubbo] 使用dubbo连接zookeeper集群时,消费者启动时出现节点已存在的异常。 (Issue #9729)
   
   
   
   
   
    
   我也有这个报错,请问现在到什么进度了呢:
    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
    
   —
   Reply to this email directly, view it on GitHub, or unsubscribe.
   Triage notifications on the go with GitHub Mobile for iOS or Android. 
   You are receiving this because you authored the thread.Message ID: ***@***.***&gt;


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] Jimy-Guo commented on issue #9729: 使用dubbo连接zookeeper集群时,消费者启动时出现节点已存在的异常。

Posted by GitBox <gi...@apache.org>.
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org