Project

General

Profile

NPE in StatisticsProvider$StatisticsCache

Gabriel Rossetti
Added over 3 years ago

Hi all,

On 7.0.2 I deactivated the stats plugin by adding -http://jabber.org/protocol/stats to --sm-plugins in my init.properties file. Sometimes I get this when the server starts up:

2015-06-30 11:47:16.111 [stats-cache]      StatisticsProvider$StatisticsCache$1.run()  WARNING: Problem retrieving statistics:
java.lang.NullPointerException
        at tigase.server.AbstractMessageReceiver.getStatistics(AbstractMessageReceiver.java:889)
        at tigase.server.MessageRouter.getStatistics(MessageRouter.java:545)
        at tigase.stats.StatisticsCollector.getComponentStats(StatisticsCollector.java:391)
        at tigase.stats.StatisticsCollector.getAllStats(StatisticsCollector.java:354)
        at tigase.stats.StatisticsProvider$StatisticsCache.update(StatisticsProvider.java:781)
        at tigase.stats.StatisticsProvider$StatisticsCache.access$3500(StatisticsProvider.java:637)
        at tigase.stats.StatisticsProvider$StatisticsCache$1.run(StatisticsProvider.java:736)
        at java.util.TimerThread.mainLoop(Timer.java:555)
        at java.util.TimerThread.run(Timer.java:505)

I don't understand why this code is called with the statistics being turned off.

Thanks,

Gabriel


Replies (3)

Added by Wojciech Kapcia TigaseTeam over 3 years ago

Actually this isn't handled by the plugin but by (default) "stats" component:

message-router/components/registrators/stats.class[S]=tigase.stats.StatisticsCollector
message-router/components/registrators/stats.active[B]=true

Added by Gabriel Rossetti over 3 years ago

Ah, ok, thank you.

Added by Gabriel Rossetti over 3 years ago

Deleted msg (by me)

    (1-3/3)