Projects tigase _server server-core Issues #943
SeeOtherHostDulaIP repository NPE (#943)
wojciech.kapcia@tigase.net opened 7 years ago

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)
wojciech.kapcia@tigase.net commented 7 years ago

just for the record: cluster_nodes table exists…

wojciech.kapcia@tigase.net commented 7 years ago

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

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