Projects tigase _server server-core Issues #899
XMPP Server crash on startup (#899)
Closed
Daniel Wisnewski opened 7 years ago

Tested new version built on October 31, b5052. Upon startup, server experiences the following error and cannot startup:

2017-11-01 07:49:00.628 [main]             DSLBeanConfigurator.dumpConfiguration()  WARNING: Dumping full server configuration to: etc/config-dump.properties
2017-11-01 07:49:00.650 [main]             ThreadExceptionHandler.uncaughtException()  SEVERE: Uncaught thread: "main" exception
java.lang.NoClassDefFoundError: tigase/xmpp/BareJID
	at java.lang.Class.getDeclaredMethods0(Native Method)
	at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
	at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
	at java.lang.Class.getMethod0(Class.java:3018)
	at java.lang.Class.getMethod(Class.java:1784)
	at tigase.kernel.BeanUtils.prepareGetterMethod(BeanUtils.java:117)
	at tigase.kernel.BeanUtils.getValue(BeanUtils.java:77)
	at tigase.kernel.beans.config.AbstractBeanConfigurator.grabCurrentConfig(AbstractBeanConfigurator.java:580)
	at tigase.component.DSLBeanConfigurator.dumpConfigFromSubBeans(DSLBeanConfigurator.java:282)
	at tigase.component.DSLBeanConfigurator.dumpConfiguration(DSLBeanConfigurator.java:252)
	at tigase.component.DSLBeanConfigurator.dumpConfiguration(DSLBeanConfigurator.java:83)
	at tigase.server.Bootstrap.start(Bootstrap.java:187)
	at tigase.server.XMPPServer.start(XMPPServer.java:193)
	at tigase.server.XMPPServer.main(XMPPServer.java:147)
Caused by: java.lang.ClassNotFoundException: tigase.xmpp.BareJID
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at java.lang.Class.getDeclaredMethods0(Native Method)
	at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
	at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
	at java.lang.Class.getMethod0(Class.java:3018)
	at java.lang.Class.getMethod(Class.java:1784)
	at tigase.kernel.BeanUtils.prepareGetterMethod(BeanUtils.java:117)
	at tigase.kernel.BeanUtils.getValue(BeanUtils.java:77)
	at tigase.kernel.beans.config.AbstractBeanConfigurator.grabCurrentConfig(AbstractBeanConfigurator.java:580)
	at tigase.component.DSLBeanConfigurator.dumpConfigFromSubBeans(DSLBeanConfigurator.java:282)
	at tigase.component.DSLBeanConfigurator.dumpConfiguration(DSLBeanConfigurator.java:252)
	at tigase.component.DSLBeanConfigurator.dumpConfiguration(DSLBeanConfigurator.java:83)
	at tigase.server.Bootstrap.start(Bootstrap.java:187)
	at tigase.server.XMPPServer.start(XMPPServer.java:193)
	at tigase.server.XMPPServer.main(XMPPServer.java:147)
2017-11-01 07:49:01.666 [ConnectionOpenThread]  SocketThread.<clinit>()            WARNING:  17 socketReadThreads started.
2017-11-01 07:49:01.674 [ConnectionOpenThread]  SocketThread.<clinit>()            WARNING:  17 socketWriteThreads started.
wojciech.kapcia@tigase.net commented 7 years ago

Thank you Dan for the report. There are a couple of issues at play:

  • #6206 - separation of xmltools and utils packages (which is directly responsible for the exception -- but all projects should be corrected now);

  • #6282 - issues with git repositories access on new Redmine installation - because of that Jenkins is unable to correctly build all dependencies; in principle in that case we shouldn't generate new nightly, but I've verified that all components were re-built and then forced building tigase-server-distribution job to generate the nightly.

Andrzej, please take a look at the issue.

Andrzej Wójcik (Tigase) commented 7 years ago

I've checked and this package uses old (not adjusted) versions of tigase-acs-pubsub@, @tigase-acs-muc and @tigase-acs-extras@.

I've added log entries which will help in finding causes of issues like that. In the future, it will be printed:

  • field which uses missing class

  • name of the class containing this field

  • location to class/jar which contains class with a field with missing dependency (if possible)

Andrzej Wójcik (Tigase) commented 7 years ago

I've fixed issues (I've dealt with them) and now there is a new build available @b5054@, which I've checked and contains proper version of jars and works properly.

Daniel Wisnewski commented 7 years ago

This seems to be fixed, however other errors prevent me from closing issue.

Daniel Wisnewski commented 7 years ago

Can finally close the issue, other issues resolved, and this one does not keep showing up. Closing.

issue 1 of 1
Type
Bug
Priority
Major
Assignee
RedmineID
6299
Version
tigase-server-8.0.0
Spent time
18h 45m
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#899
Please wait...
Page is in error, reload to recover