powered by Jive Software

LDAP and Ofmeet plugin error

openfire 4.5.1
unbuntu 18.04
Java 1.8.0_242
Openfire connected in LDAP to micorsoft AD.

I installed the plugins from here https://github.com/igniterealtime/pade/releases
offocus.jar
ofmeet.jar

After the installation I was able to create a web video conference without problems.

When the openfire service is restarted, the whole system does not work.

To get back to working I have to delete the ofmeet plugin

In the log file I have these errors:
HTTP ERROR 500
Problem accessing /index.jsp. Reason:
Server Error
2020.05.11 16:54:02 org.jitsi.utils.concurrent.RecurringRunnableExecutor - The invocation of the method org.jitsi.videobridge.health.Health.run() threw an exception.
java.lang.NoClassDefFoundError: Could not initialize class net.java.sip.communicator.util.NetworkUtils
at net.java.sip.communicator.util.PortTracker.setRange(PortTracker.java:92) ~[jitsi-util-2.13.b5f2aa0.jar!/:?]
at net.java.sip.communicator.util.PortTracker.(PortTracker.java:60) ~[jitsi-util-2.13.b5f2aa0.jar!/:?]
at org.jitsi.videobridge.TransportManager.(TransportManager.java:63) ~[jitsi-videobridge-1.1-20200124.173127-125.jar!/:?]
at org.jitsi.videobridge.health.Health.doCheck(Health.java:220) ~[jitsi-videobridge-1.1-20200124.173127-125.jar!/:?]
at org.jitsi.videobridge.health.Health.doRun(Health.java:495) ~[jitsi-videobridge-1.1-20200124.173127-125.jar!/:?]
at org.jitsi.utils.concurrent.PeriodicRunnableWithObject.run(PeriodicRunnableWithObject.java:87) ~[jitsi-utils-1.0-14-ge5cb3c9.jar!/:?]
at org.jitsi.utils.concurrent.RecurringRunnableExecutor.run(RecurringRunnableExecutor.java:216) [jitsi-utils-1.0-14-ge5cb3c9.jar!/:?]
at org.jitsi.utils.concurrent.RecurringRunnableExecutor.runInThread(RecurringRunnableExecutor.java:292) [jitsi-utils-1.0-14-ge5cb3c9.jar!/:?]
at org.jitsi.utils.concurrent.RecurringRunnableExecutor.access$000(RecurringRunnableExecutor.java:36) [jitsi-utils-1.0-14-ge5cb3c9.jar!/:?]
at org.jitsi.utils.concurrent.RecurringRunnableExecutor$1.run(RecurringRunnableExecutor.java:328) [jitsi-utils-1.0-14-ge5cb3c9.jar!/:?]
2020.05.11 16:54:03 org.jivesoftware.openfire.container.PluginManager - An exception occurred while loading plugin ‘ofmeet’:
java.lang.NoClassDefFoundError: Could not initialize class org.jitsi.videobridge.TransportManager
at org.jitsi.videobridge.openfire.PluginImpl.initializePlugin(PluginImpl.java:366) ~[videobridge-0.9.8-SNAPSHOT.jar!/:?]
at org.jivesoftware.openfire.plugin.ofmeet.JvbPluginWrapper.initialize(JvbPluginWrapper.java:47) ~[ofmeet-0.9.8-SNAPSHOT.jar!/:?]
at org.jivesoftware.openfire.plugin.ofmeet.OfMeetPlugin.initializePlugin(OfMeetPlugin.java:121) ~[ofmeet-0.9.8-SNAPSHOT.jar!/:?]
at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java:664) [xmppserver-4.5.1.jar:4.5.1]
at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:374) [xmppserver-4.5.1.jar:4.5.1]
at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:362) [xmppserver-4.5.1.jar:4.5.1]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_242]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_242]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_242]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_242]
2020.05.11 16:54:05 net.java.sip.communicator.util.UtilActivator - An uncaught exception occurred in thread=Thread[pool-28-thread-1,5,main] and message was: Could not initialize class java.net.PlainDatagramSocketImpl
java.lang.NoClassDefFoundError: Could not initialize class java.net.PlainDatagramSocketImpl
at java.net.DefaultDatagramSocketImplFactory.createDatagramSocketImpl(DefaultDatagramSocketImplFactory.java:70) ~[?:1.8.0_242]
at java.net.DatagramSocket.createImpl(DatagramSocket.java:331) ~[?:1.8.0_242]
at java.net.DatagramSocket.(DatagramSocket.java:239) ~[?:1.8.0_242]
at java.net.DatagramSocket.(DatagramSocket.java:196) ~[?:1.8.0_242]
at com.sun.jndi.dns.DNSDatagramSocketFactory.openDefault(DNSDatagramSocketFactory.java:204) ~[?:1.8.0_242]
at com.sun.jndi.dns.DNSDatagramSocketFactory.open(DNSDatagramSocketFactory.java:147) ~[?:1.8.0_242]
at com.sun.jndi.dns.DnsClient.getDatagramSocket(DnsClient.java:141) ~[?:1.8.0_242]
at com.sun.jndi.dns.DnsClient.doUdpQuery(DnsClient.java:399) ~[?:1.8.0_242]
at com.sun.jndi.dns.DnsClient.query(DnsClient.java:211) ~[?:1.8.0_242]
at com.sun.jndi.dns.Resolver.query(Resolver.java:81) ~[?:1.8.0_242]
at com.sun.jndi.dns.DnsContext.c_getAttributes(DnsContext.java:434) ~[?:1.8.0_242]
at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_getAttributes(ComponentDirContext.java:235) ~[?:1.8.0_242]
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCompositeDirContext.java:141) ~[?:1.8.0_242]
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCompositeDirContext.java:129) ~[?:1.8.0_242]
at javax.naming.directory.InitialDirContext.getAttributes(InitialDirContext.java:142) ~[?:1.8.0_242]
at org.jivesoftware.openfire.net.DNSUtil.srvLookup(DNSUtil.java:222) ~[xmppserver-4.5.1.jar:4.5.1]
at org.jivesoftware.openfire.net.DNSUtil.resolveXMPPDomain(DNSUtil.java:107) ~[xmppserver-4.5.1.jar:4.5.1]
at org.jivesoftware.openfire.net.SocketUtil.createSocketToXmppDomain(SocketUtil.java:45) ~[xmppserver-4.5.1.jar:4.5.1]
at org.jivesoftware.openfire.session.LocalOutgoingServerSession.createOutgoingSession(LocalOutgoingServerSession.java:250) ~[xmppserver-4.5.1.jar:4.5.1]
at org.jivesoftware.openfire.session.LocalOutgoingServerSession.authenticateDomain(LocalOutgoingServerSession.java:209) ~[xmppserver-4.5.1.jar:4.5.1]
at org.jivesoftware.openfire.server.OutgoingSessionPromise$PacketsProcessor.sendPacket(OutgoingSessionPromise.java:261) ~[xmppserver-4.5.1.jar:4.5.1]
at org.jivesoftware.openfire.server.OutgoingSessionPromise$PacketsProcessor.run(OutgoingSessionPromise.java:239) ~[xmppserver-4.5.1.jar:4.5.1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_242]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_242]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_242]

How can I solve it?

I believe this error is specific to version 1.8.0_242 of Java. Try another version.

What is the official java version supported?

I installed java 11.0.7 + 10-post-Ubuntu-2ubuntu218.04
I switched to this by default
update-alternatives --config java

Even if I have many errors in the log file, ofmeet now works well for me, are many errors in the log normal?

Ofmeet is known to generate some errors, under certain circumstances. I’m not sure how much is “many”. If they go away after you remove the ofmeet plugin, then you can probably ignore them.

if i remove ofmeet i have no error and warning.

Unfortunately, removing and installing ofmeet to understand how it was behaving I have the problem reported in the post again. :cry: