Project

General

Profile

Bug #5086

NPE in MonitorComponent at addTimerTask

Added by Wojciech Kapcia TigaseTeam almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
Due date:
2017-03-27
% Done:

100%

Estimated time:
Database:
n/a
Applicable version:
git/master
Source Code Disclaimer:

Description

Loading component: monitor :: componentInfo{Title=Tigase XMPP Server, Version=7.2.0-SNAPSHOT-b4709/feab3cde (2017-03-15/00:08:18), Class=tigase.monitor.MonitorComponent}
java.lang.NullPointerException
        at tigase.server.AbstractMessageReceiver.addTimerTask(AbstractMessageReceiver.java:469)
        at tigase.monitor.MonitorComponent$1.addTimerTask(MonitorComponent.java:26)
        at tigase.monitor.tasks.AbstractConfigurableTimerTask.enable(AbstractConfigurableTimerTask.java:43)
        at tigase.monitor.tasks.SampleTask.enable(SampleTask.java:25)
        at tigase.monitor.tasks.AbstractConfigurableTask.setEnabled(AbstractConfigurableTask.java:51)
        at tigase.monitor.tasks.AbstractConfigurableTask.setNewConfiguration(AbstractConfigurableTask.java:60)
        at tigase.monitor.tasks.AbstractConfigurableTimerTask.setNewConfiguration(AbstractConfigurableTimerTask.java:73)
        at tigase.monitor.tasks.SampleTask.setNewConfiguration(SampleTask.java:61)
        at tigase.monitor.TasksScriptRegistrar.initTaskFromTaskConfig(TasksScriptRegistrar.java:68)
        at tigase.monitor.TasksScriptRegistrar.load(TasksScriptRegistrar.java:87)
        at tigase.monitor.MonitorComponent.initialize(MonitorComponent.java:80)
        at tigase.kernel.core.Kernel.initBean(Kernel.java:155)
        at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:578)
        at tigase.kernel.core.Kernel.initBean(Kernel.java:150)
        at tigase.kernel.core.Kernel.getInstance(Kernel.java:384)
        at tigase.server.Bootstrap.start(Bootstrap.java:108)
        at tigase.server.XMPPServer.start(XMPPServer.java:138)
        at tigase.server.XMPPServer.main(XMPPServer.java:119)

Associated revisions

Revision 65371685 (diff)
Added by Andrzej Wójcik IoT 1 CloudTigaseTeam almost 2 years ago

#5086: delayed loading of monitor component tasks after component is started as tasks require access to scheduled executor

History

#1 Updated by Andrzej Wójcik IoT 1 CloudTigaseTeam almost 2 years ago

  • Status changed from New to In QA
  • Assignee changed from Andrzej Wójcik to Wojciech Kapcia

I've fixed this NPE by delaying loading of monitor tasks after component is started.

#2 Updated by Wojciech Kapcia TigaseTeam almost 2 years ago

  • Due date set to 2017-03-27
  • Status changed from In QA to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF