Project

General

Profile

Bug #7434

SeeOtherHostDulaIP repository NPE

Added by Wojciech Kapcia TigaseTeam 10 months ago. Updated 10 months ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
Due date:
% Done:

100%

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

Description

Enabling SeeOtherHostDualIP with:

c2s {
    seeOtherHost (active: true, class: tigase.server.xmppclient.SeeOtherHostDualIP) {}
}

causes following exception:

tigase.server.xmppclient.SeeOtherHostDualIP$DualIPRepositoryWrapper$DualIPRepositoryWrapperConfigBean) unloading bean default
RootCause:
   -> java.lang.reflect.InvocationTargetException
      [sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)]
      -> java.lang.RuntimeException: Repository initialization failed
         [tigase.server.xmppclient.SeeOtherHostDualIPSQLRepository.setDataSource(SeeOtherHostDualIPSQLRepository.java:63)]
         -> java.sql.SQLException: Nodes redirection table doesn't exits!
            [tigase.server.xmppclient.SeeOtherHostDualIPSQLRepository.checkDB(SeeOtherHostDualIPSQLRepository.java:105)]
2018-04-25 20:58:43.798 [main]             Kernel.injectDependencies()             WARNING:  Could not initialize bean default (class: class tigase.server.xmppclient.SeeOtherHostDualIP$DualIPRepositoryWrapper$DualIPRepositoryWrapperConfigBean), skipping injection of this bean
RootCause:
   -> java.lang.RuntimeException: Repository initialization failed
      [tigase.server.xmppclient.SeeOtherHostDualIPSQLRepository.setDataSource(SeeOtherHostDualIPSQLRepository.java:63)]
      -> java.sql.SQLException: Nodes redirection table doesn't exits!
         [tigase.server.xmppclient.SeeOtherHostDualIPSQLRepository.checkDB(SeeOtherHostDualIPSQLRepository.java:105)]
2018-04-25 20:58:43.802 [main]             SeeOtherHostDualIP.reloadRedirection()  SEVERE:   Reloading redirection items failed: 
java.lang.NullPointerException
    at tigase.server.xmppclient.SeeOtherHostDualIP$DualIPRepositoryWrapper.queryAllDB(SeeOtherHostDualIP.java:214)
    at tigase.server.xmppclient.SeeOtherHostDualIP.reloadRedirection(SeeOtherHostDualIP.java:180)
    at tigase.server.xmppclient.SeeOtherHostDualIP.initialize(SeeOtherHostDualIP.java:166)
    at tigase.kernel.core.Kernel.initBean(Kernel.java:139)
    at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1212)
    at tigase.kernel.core.Kernel.injectDependency(Kernel.java:820)
    at tigase.kernel.core.Kernel$DelayedDependenciesInjection.inject(Kernel.java:1485)
    at tigase.kernel.core.Kernel.finishDependecyDelayedInjection(Kernel.java:536)
    at tigase.kernel.core.Kernel.initBean(Kernel.java:131)
    at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1212)
    at tigase.kernel.core.Kernel.injectIfRequired(Kernel.java:987)
    at tigase.kernel.core.Kernel.getInstance(Kernel.java:310)
    at tigase.server.Bootstrap.start(Bootstrap.java:170)
    at tigase.server.XMPPServer.start(XMPPServer.java:185)
    at tigase.server.XMPPServer.main(XMPPServer.java:139)
2018-04-25 20:58:43.804 [main]             SeeOtherHostDualIP.reloadRedirection()  SEVERE:   Reloading redirection items failed: 
java.lang.NullPointerException
    at tigase.server.xmppclient.SeeOtherHostDualIP$DualIPRepositoryWrapper.queryAllDB(SeeOtherHostDualIP.java:214)
    at tigase.server.xmppclient.SeeOtherHostDualIP.reloadRedirection(SeeOtherHostDualIP.java:180)
    at tigase.server.xmppclient.SeeOtherHostDualIP.setNodes(SeeOtherHostDualIP.java:142)
    at tigase.server.xmppclient.ClientConnectionManager.setSee_other_host_strategy(ClientConnectionManager.java:551)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at tigase.kernel.BeanUtils.setValue(BeanUtils.java:175)
    at tigase.kernel.core.Kernel.inject(Kernel.java:1187)
    at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1270)
    at tigase.kernel.core.Kernel.injectDependency(Kernel.java:820)
    at tigase.kernel.core.Kernel$DelayedDependenciesInjection.inject(Kernel.java:1485)
    at tigase.kernel.core.Kernel.finishDependecyDelayedInjection(Kernel.java:536)
    at tigase.kernel.core.Kernel.initBean(Kernel.java:131)
    at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1212)
    at tigase.kernel.core.Kernel.injectIfRequired(Kernel.java:987)
    at tigase.kernel.core.Kernel.getInstance(Kernel.java:310)
    at tigase.server.Bootstrap.start(Bootstrap.java:170)
    at tigase.server.XMPPServer.start(XMPPServer.java:185)
    at tigase.server.XMPPServer.main(XMPPServer.java:139)
2018-04-25 20:58:43.806 [main]             SeeOtherHostDualIP.reloadRedirection()  SEVERE:   Reloading redirection items failed: 
java.lang.NullPointerException
    at tigase.server.xmppclient.SeeOtherHostDualIP$DualIPRepositoryWrapper.queryAllDB(SeeOtherHostDualIP.java:214)
    at tigase.server.xmppclient.SeeOtherHostDualIP.reloadRedirection(SeeOtherHostDualIP.java:180)
    at tigase.server.xmppclient.SeeOtherHostDualIP.setNodes(SeeOtherHostDualIP.java:142)
    at tigase.server.xmppclient.ClientConnectionManager.setSee_other_host_strategy(ClientConnectionManager.java:551)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at tigase.kernel.BeanUtils.setValue(BeanUtils.java:175)
    at tigase.kernel.core.Kernel.inject(Kernel.java:1187)
    at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1270)
    at tigase.kernel.core.Kernel.initBean(Kernel.java:134)
    at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1212)
    at tigase.kernel.core.Kernel.injectIfRequired(Kernel.java:987)
    at tigase.kernel.core.Kernel.getInstance(Kernel.java:310)
    at tigase.server.Bootstrap.start(Bootstrap.java:170)
    at tigase.server.XMPPServer.start(XMPPServer.java:185)
    at tigase.server.XMPPServer.main(XMPPServer.java:139)

Associated revisions

Revision 956eb58b (diff)
Added by Wojciech Kapcia TigaseTeam 10 months ago

#7434 adjust cluster nodes table name in dualIP see-other-host implementation

Revision bf1e9f01 (diff)
Added by Wojciech Kapcia TigaseTeam 10 months ago

#7434 better exception error

History

#2 Updated by Wojciech Kapcia TigaseTeam 10 months ago

just for the record: cluster_nodes table exists…

#3 Updated by Wojciech Kapcia TigaseTeam 10 months ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100

Well, cluster_nodes was renamed do tig_cluster_nodes… Adjusted table name used by SeeOtherHostDualIP.

Also available in: Atom PDF