You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.NullPointerException: null
at io.prometheus.client.CollectorRegistry.collectorNames(CollectorRegistry.java:119) ~[simpleclient-0.14.1.jar:?]
at io.prometheus.client.CollectorRegistry.register(CollectorRegistry.java:50) ~[simpleclient-0.14.1.jar:?]
at io.prometheus.client.Collector.register(Collector.java:308) ~[simpleclient-0.14.1.jar:?]
at io.prometheus.client.Collector.register(Collector.java:301) ~[simpleclient-0.14.1.jar:?]
at org.apache.inlong.tubemq.server.master.stats.prometheus.MasterPromMetricService.start(MasterPromMetricService.java:52) ~[tubemq-server-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
at org.apache.inlong.tubemq.server.master.TMaster.(TMaster.java:219) ~[tubemq-server-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
at org.apache.inlong.tubemq.server.tools.MasterStartup.main(MasterStartup.java:44) ~[tubemq-server-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
What you expected to happen
Master start normally.
How to reproduce
File: inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/master/stats/prometheus/MasterPromMetricService.java
Caused by start() function, register() will use mfs which is returned from collect(). And when tubemq-master start, collect() will return null. Then NullPointerException happens.
gosonzhang
changed the title
[Bug][TubeMQ] Master start failed with NullPointerException
[TubeMQ] Master start failed with NullPointerException
Aug 16, 2022
healchow
changed the title
[TubeMQ] Master start failed with NullPointerException
[Bug][TubeMQ] Master start failed with NullPointerException
Aug 16, 2022
What happened
Master start failed with NullPointerException.
java.lang.NullPointerException: null
at io.prometheus.client.CollectorRegistry.collectorNames(CollectorRegistry.java:119) ~[simpleclient-0.14.1.jar:?]
at io.prometheus.client.CollectorRegistry.register(CollectorRegistry.java:50) ~[simpleclient-0.14.1.jar:?]
at io.prometheus.client.Collector.register(Collector.java:308) ~[simpleclient-0.14.1.jar:?]
at io.prometheus.client.Collector.register(Collector.java:301) ~[simpleclient-0.14.1.jar:?]
at org.apache.inlong.tubemq.server.master.stats.prometheus.MasterPromMetricService.start(MasterPromMetricService.java:52) ~[tubemq-server-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
at org.apache.inlong.tubemq.server.master.TMaster.(TMaster.java:219) ~[tubemq-server-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
at org.apache.inlong.tubemq.server.tools.MasterStartup.main(MasterStartup.java:44) ~[tubemq-server-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
What you expected to happen
Master start normally.
How to reproduce
File: inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/master/stats/prometheus/MasterPromMetricService.java
Caused by start() function, register() will use mfs which is returned from collect(). And when tubemq-master start, collect() will return null. Then NullPointerException happens.
Environment
No response
InLong version
master
InLong Component
InLong TubeMQ
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: