Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

空指针异常 #62

Open
sky007z opened this issue Sep 9, 2024 · 5 comments
Open

空指针异常 #62

sky007z opened this issue Sep 9, 2024 · 5 comments

Comments

@sky007z
Copy link

sky007z commented Sep 9, 2024

BrokerTraffic clusterTraffic = new BrokerTraffic();
    for (BrokerGroup brokerGroup : brokerGroupList) {
        BrokerTraffic brokerTraffic = brokerGroup.getMaster().getBrokerTraffic();
        if (brokerTraffic == null) {
            continue;
        }
        clusterTraffic.add(brokerTraffic);
    }

查询集群拓扑时brokerGroup.getMaster()为null导致空指针,这个一般什么原因会导致Master为空

@gaoyf
Copy link
Collaborator

gaoyf commented Sep 11, 2024

你用的版本是多少?

@sky007z
Copy link
Author

sky007z commented Sep 21, 2024

5.1.2-SNAPSHOT ,用的这个版本,本地运行。

@gaoyf
Copy link
Collaborator

gaoyf commented Sep 23, 2024

可以按照wiki部署集群试试:https://github.com/sohutv/mqcloud/wiki/%E5%88%9B%E5%BB%BA%E9%9B%86%E7%BE%A4

@sky007z
Copy link
Author

sky007z commented Oct 9, 2024

好的,在请教个问题 ,生产者和 消费者必须使用mqcloud提供的,使用mq原生jar能否实现监控

@gaoyf
Copy link
Collaborator

gaoyf commented Oct 10, 2024

原生jar也支持,只是某些监控可能没有了,比如生产异常等

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants