Projects tigase _server server-core Issues #612
Tigase monitor - mailer exception (#612)
Closed
wojciech.kapcia@tigase.net opened 9 years ago
Due Date
2016-01-14

If there is tigase-ext-mailer.jar present but javax.mail.jar is missing following exception is thrown preventing server from functioning

2015-12-17 16:19:05.070 [main]             ThreadExceptionHandler.uncaughtException()  SEVERE: Uncaught thread: "main" exception
java.lang.NoClassDefFoundError: javax/mail/Address
	at java.lang.Class.getDeclaredFields0(Native Method)
	at java.lang.Class.privateGetDeclaredFields(Class.java:2575)
	at java.lang.Class.getDeclaredFields(Class.java:1908)
	at tigase.kernel.core.DependencyManager.getAllFields(DependencyManager.java:21)
	at tigase.kernel.core.DependencyManager.createFieldsDependencyList(DependencyManager.java:51)
	at tigase.kernel.core.DependencyManager.prepareDependencies(DependencyManager.java:142)
	at tigase.kernel.core.DependencyManager.createBeanConfig(DependencyManager.java:44)
	at tigase.kernel.core.BeanConfigBuilder.asClass(BeanConfigBuilder.java:30)
	at tigase.kernel.core.Kernel.registerBean(Kernel.java:413)
	at tigase.monitor.MonitorComponent.setProperties(MonitorComponent.java:176)
	at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)
	at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)
	at tigase.conf.Configurator.componentAdded(Configurator.java:50)
	at tigase.conf.Configurator.componentAdded(Configurator.java:33)
	at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
	at tigase.server.MessageRouter.addComponent(MessageRouter.java:108)
	at tigase.server.MessageRouter.addRouter(MessageRouter.java:145)
	at tigase.server.MessageRouter.setProperties(MessageRouter.java:698)
	at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)
	at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)
	at tigase.conf.Configurator.componentAdded(Configurator.java:50)
	at tigase.conf.Configurator.componentAdded(Configurator.java:33)
	at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
	at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:131)
	at tigase.server.MessageRouter.setConfig(MessageRouter.java:597)
	at tigase.server.XMPPServer.start(XMPPServer.java:142)
	at tigase.server.XMPPServer.main(XMPPServer.java:112)
Caused by: java.lang.ClassNotFoundException: javax.mail.Address
	at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at java.lang.Class.getDeclaredFields0(Native Method)
	at java.lang.Class.privateGetDeclaredFields(Class.java:2575)
	at java.lang.Class.getDeclaredFields(Class.java:1908)
	at tigase.kernel.core.DependencyManager.getAllFields(DependencyManager.java:21)
	at tigase.kernel.core.DependencyManager.createFieldsDependencyList(DependencyManager.java:51)
	at tigase.kernel.core.DependencyManager.prepareDependencies(DependencyManager.java:142)
	at tigase.kernel.core.DependencyManager.createBeanConfig(DependencyManager.java:44)
	at tigase.kernel.core.BeanConfigBuilder.asClass(BeanConfigBuilder.java:30)
	at tigase.kernel.core.Kernel.registerBean(Kernel.java:413)
	at tigase.monitor.MonitorComponent.setProperties(MonitorComponent.java:176)
	at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)
	at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)
	at tigase.conf.Configurator.componentAdded(Configurator.java:50)
	at tigase.conf.Configurator.componentAdded(Configurator.java:33)
	at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
	at tigase.server.MessageRouter.addComponent(MessageRouter.java:108)
	at tigase.server.MessageRouter.addRouter(MessageRouter.java:145)
	at tigase.server.MessageRouter.setProperties(MessageRouter.java:698)
	at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)
	at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)
	at tigase.conf.Configurator.componentAdded(Configurator.java:50)
	at tigase.conf.Configurator.componentAdded(Configurator.java:33)
	at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
	at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:131)
	at tigase.server.MessageRouter.setConfig(MessageRouter.java:597)
	at tigase.server.XMPPServer.start(XMPPServer.java:142)
	at tigase.server.XMPPServer.main(XMPPServer.java:112)
Daniel Wisnewski commented 9 years ago

Installers also seem to be missing tigase-ext-mailer.jar from the build. Could be related to #3764.

Artur Hefczyc commented 9 years ago

We need this fixed for 7.1.0.

wojciech.kapcia@tigase.net commented 9 years ago

With the latest version:

componentInfo{Title=Tigase XMPP Server, Version=7.1.0-SNAPSHOT-b4120/31c9c938 (2015-12-22/01:03:47), Class=tigase.server.XMPPServer}

the issue still exists:

2015-12-22 14:36:18.380 [main]             ThreadExceptionHandler.uncaughtException()  SEVERE: Uncaught thread: "main" exception
java.lang.NoClassDefFoundError: javax/mail/Address
	at java.lang.Class.getDeclaredFields0(Native Method)
	at java.lang.Class.privateGetDeclaredFields(Class.java:2575)
	at java.lang.Class.getDeclaredFields(Class.java:1908)
	at tigase.kernel.core.DependencyManager.getAllFields(DependencyManager.java:27)
	at tigase.kernel.core.DependencyManager.createFieldsDependencyList(DependencyManager.java:63)
	at tigase.kernel.core.DependencyManager.prepareDependencies(DependencyManager.java:166)
	at tigase.kernel.core.DependencyManager.createBeanConfig(DependencyManager.java:47)
	at tigase.kernel.core.BeanConfigBuilder.asClass(BeanConfigBuilder.java:30)
	at tigase.kernel.core.Kernel.registerBean(Kernel.java:413)
	at tigase.monitor.MonitorComponent.setProperties(MonitorComponent.java:176)
	at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)
	at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)
	at tigase.conf.Configurator.componentAdded(Configurator.java:50)
	at tigase.conf.Configurator.componentAdded(Configurator.java:33)
	at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
	at tigase.server.MessageRouter.addComponent(MessageRouter.java:108)
	at tigase.server.MessageRouter.addRouter(MessageRouter.java:145)
	at tigase.server.MessageRouter.setProperties(MessageRouter.java:698)
	at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)
	at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)
	at tigase.conf.Configurator.componentAdded(Configurator.java:50)
	at tigase.conf.Configurator.componentAdded(Configurator.java:33)
	at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
	at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:131)
	at tigase.server.MessageRouter.setConfig(MessageRouter.java:597)
	at tigase.server.XMPPServer.start(XMPPServer.java:142)
	at tigase.server.XMPPServer.main(XMPPServer.java:112)
Caused by: java.lang.ClassNotFoundException: javax.mail.Address
	at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at java.lang.Class.getDeclaredFields0(Native Method)
	at java.lang.Class.privateGetDeclaredFields(Class.java:2575)
	at java.lang.Class.getDeclaredFields(Class.java:1908)
	at tigase.kernel.core.DependencyManager.getAllFields(DependencyManager.java:27)
	at tigase.kernel.core.DependencyManager.createFieldsDependencyList(DependencyManager.java:63)
	at tigase.kernel.core.DependencyManager.prepareDependencies(DependencyManager.java:166)
	at tigase.kernel.core.DependencyManager.createBeanConfig(DependencyManager.java:47)
	at tigase.kernel.core.BeanConfigBuilder.asClass(BeanConfigBuilder.java:30)
	at tigase.kernel.core.Kernel.registerBean(Kernel.java:413)
	at tigase.monitor.MonitorComponent.setProperties(MonitorComponent.java:176)
	at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)
	at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)
	at tigase.conf.Configurator.componentAdded(Configurator.java:50)
	at tigase.conf.Configurator.componentAdded(Configurator.java:33)
	at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
	at tigase.server.MessageRouter.addComponent(MessageRouter.java:108)
	at tigase.server.MessageRouter.addRouter(MessageRouter.java:145)
	at tigase.server.MessageRouter.setProperties(MessageRouter.java:698)
	at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)
	at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)
	at tigase.conf.Configurator.componentAdded(Configurator.java:50)
	at tigase.conf.Configurator.componentAdded(Configurator.java:33)
	at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
	at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:131)
	at tigase.server.MessageRouter.setConfig(MessageRouter.java:597)
	at tigase.server.XMPPServer.start(XMPPServer.java:142)
	at tigase.server.XMPPServer.main(XMPPServer.java:112)

Bartosz MaƂkowski commented 9 years ago

Better?

wojciech.kapcia@tigase.net commented 9 years ago

Issue is resolved now and server starts properly even when some jar files are missing.

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
RedmineID
3775
Version
tigase-server-7.1.0
Spent time
6h 15m
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#612
Please wait...
Page is in error, reload to recover