Skip to content

dubbo 2.7.9 无法注册到zk上去 #7238

@jeesk

Description

@jeesk

Environment

  • Dubbo dubbo 2.7.9
  • Operating System version: window 10
  • java version "1.8.0_191"

Steps to reproduce this issue

  1. zookeeper 版本 3.6.2-bin (https://mirrors.tuna.tsinghua.edu.cn/apache/zookeeper/zookeeper-3.6.2/apache-zookeeper-3.6.2-bin.tar.gz)
    zk 配置
initLimit=10
syncLimit=5
dataDir=C:\\openSource\\apache-zookeeper-3.6.2-bin\\data
dataLogDir=C:\\openSource\\apache-zookeeper-3.6.2-bin\\log
clientPort=2181
audit.enable=true
admin.serverPort=9991

  1. 当我运行dubbo-demo-annotation-provider 的org.apache.dubbo.demo.provider.Application#main 时候, 打印日志如下, 并没有报错
Connected to the target VM, address: '127.0.0.1:53362', transport: 'socket'
[22/02/21 22:23:29:481 CST] main  INFO logger.LoggerFactory: using logger: org.apache.dubbo.common.logger.log4j.Log4jLoggerAdapter
  1. 运行 dubbo-demo-annotation-consumer 的 org.apache.dubbo.demo.consumer.Application#main, 报错
Exception in thread "main" java.lang.NullPointerException
	at org.apache.dubbo.demo.consumer.comp.DemoServiceComponent.sayHello(DemoServiceComponent.java:40)
	at org.apache.dubbo.demo.consumer.Application.main(Application.java:37)

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

期待的结果是调用 sayHello

Just put your stack trace here!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions