Projects tigase _server server-core Issues #784
NPE in MonitorComponent at addTimerTask (#784)
Closed
wojciech.kapcia@tigase.net opened 8 years ago
Due Date
2017-03-26
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)
Andrzej Wójcik (Tigase) commented 8 years ago

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

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
RedmineID
5086
Version
tigase-server-8.0.0
Spent time
2h 30m
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#784
Please wait...
Page is in error, reload to recover