Projects tigase _server server-core Issues #981
tigase 8.0 cluster by using mongodb (#981)
w xy opened 7 years ago

there is a bug with starting.

MongoDualIPRepository.queryAllDB() WARNING: Problem getting elements from DB: java.lang.NullPointerException at tigase.xmpp.jid.BareJID.parseJID(BareJID.java:181) at tigase.xmpp.jid.BareJID.bareJIDInstance(BareJID.java:75) at tigase.mongodb.MongoDualIPRepository.queryAllDB(MongoDualIPRepository.java:63) 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.stats.StatisticsInvocationHandler.invoke(StatisticsInvocationHandler.java:77) at com.sun.proxy.$Proxy47.queryAllDB(Unknown Source) at tigase.server.xmppclient.SeeOtherHostDualIP$DualIPRepositoryWrapper.queryAllDB(SeeOtherHostDualIP.java:221) at tigase.server.xmppclient.SeeOtherHostDualIP.reloadRedirection(SeeOtherHostDualIP.java:187) at tigase.server.xmppclient.SeeOtherHostDualIP.initialize(SeeOtherHostDualIP.java:173) at tigase.kernel.core.Kernel.initBean(Kernel.java:139) at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1270) at tigase.kernel.core.Kernel.injectDependency(Kernel.java:878) at tigase.kernel.core.Kernel$DelayedDependenciesInjection.inject(Kernel.java:1550) at tigase.kernel.core.Kernel.finishDependecyDelayedInjection(Kernel.java:576) at tigase.kernel.core.Kernel.initBean(Kernel.java:131) at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1270) at tigase.kernel.core.Kernel.injectIfRequired(Kernel.java:1045) at tigase.kernel.core.Kernel.getInstance(Kernel.java:311) at tigase.server.Bootstrap.start(Bootstrap.java:170) at tigase.server.XMPPServer.start(XMPPServer.java:185) at tigase.server.XMPPServer.main(XMPPServer.java:139)

the class:MongoDualIPRepository -> method:queryAllDB -> boy :

Document dto = (Document)var2.next(); ** String user_jid = (String)dto.get("hostname");** String node_jid = (String)dto.get("secondary");

the class:ClConMongoRepository ->method:reload -> body:

Document dto = (Document)var2.next(); ClConMongoRepository.ClusterRepoItem item = this.getItemInstance(); item.setHostname((String)dto.get("_id")); item.setSecondaryHostname((String)dto.get("secondary")); item.setPassword((String)dto.get("password")); item.setLastUpdate(((Date)dto.get("updated")).getTime()); item.setPort((Integer)dto.get("port")); item.setCpuUsage((Double)dto.get("cpu_usage")); item.setMemUsage((Double)dto.get("mem_usage"));

and the table tig_cluster_nodes , these column:

_id,secondary,password,updated,port,cpu_usage,mem_usage。

the hostname could not be found in the table, so throwing NPE.

QQ20181101-143837@2x.png QQ20181101-182935@2x.png

  • Andrzej Wójcik (Tigase) commented 7 years ago

    I've fixed cause of this issue and now it should work for you without any issues. Please check next snapshot build to confirm that fix works for you.

  • Wojciech Kapcia (Tigase) commented 6 years ago

    Closed due to inactivity (fixed and tested by Tigase Team)

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