powered by Jive Software

Openfire 4.4.0 doesn't work with OpenJDK 11 on Ubuntu

in /etc/default/openfire
Switched from
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
to
JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
Openfire does not start

Reverted back to java 8, works. So maybe java 11 not ready yet

I think you don’t have to set JAVA_HOME for Java 11 as it is already a default. Try just commenting old setting out. I have just tried to install Openfire on Ubuntu 19.04, which only has OpenJDK 11 and it runs. Shows 11.0.3 as being used in Admin Console.

I have 18.04.2 LTS, does not seems to work on java 11 for me.

Moved this to a separate thread. I don’t have this exact version by my hand, but i have now tried in 16.04.6 VM and it works as well with OpenJDK 11.0.4.

When you try with 11, check Openfire logs, maybe it will say something useful. Btw, i’m trying with clean install via deb. If you have upgraded, maybe something was left behind and interferes.

Are you sure you have java 11 installed?

1 Like

java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64
java-1.8.0-openjdk-amd64 1081 /usr/lib/jvm/java-1.8.0-openjdk-amd64
java-8-oracle 1081 /usr/lib/jvm/java-8-oracle

I did upgrade from Ubuntu 16.04.6 LTS
I think it could be Openfire Meetings plugin

Is there anything in your all.log that indicates why Openfire isn’t starting?

Greg

2019.07.25 09:22:10 DEBUG [pool-6-thread-3]: org.jivesoftware.openfire.plugin.ofgasi.JigasiWrapper - Applicable archive with native libraries: '/var/lib/openfire/plugins/ofmeet/lib-jigasi'
2019.07.25 09:22:10 WARN  [pool-6-thread-3]: org.jivesoftware.openfire.plugin.ofgasi.JigasiWrapper - An unexpected error occurred while checking the native libraries.
java.io.FileNotFoundException: /var/lib/openfire/plugins/ofmeet/lib-jigasi (Is a directory)
	at java.io.RandomAccessFile.open0(Native Method) ~[?:?]
	at java.io.RandomAccessFile.open(RandomAccessFile.java:345) ~[?:?]
	at java.io.RandomAccessFile.<init>(RandomAccessFile.java:259) ~[?:?]
	at java.io.RandomAccessFile.<init>(RandomAccessFile.java:214) ~[?:?]
	at java.util.zip.ZipFile$Source.<init>(ZipFile.java:1271) ~[?:?]
	at java.util.zip.ZipFile$Source.get(ZipFile.java:1237) ~[?:?]
	at java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:727) ~[?:?]
	at java.util.zip.ZipFile$CleanableResource.get(ZipFile.java:844) ~[?:?]
	at java.util.zip.ZipFile.<init>(ZipFile.java:247) ~[?:?]
	at java.util.zip.ZipFile.<init>(ZipFile.java:177) ~[?:?]
	at java.util.jar.JarFile.<init>(JarFile.java:346) ~[?:?]
	at java.util.jar.JarFile.<init>(JarFile.java:317) ~[?:?]
	at java.util.jar.JarFile.<init>(JarFile.java:256) ~[?:?]
	at org.jivesoftware.openfire.plugin.ofgasi.JigasiWrapper.checkNatives(JigasiWrapper.java:246) ~[ofgasi-0.9.5.jar:?]
	at org.jivesoftware.openfire.plugin.ofgasi.JigasiWrapper.initialize(JigasiWrapper.java:184) [ofgasi-0.9.5.jar:?]
	at org.igniterealtime.openfire.plugins.ofmeet.modularity.ModuleManager.loadModule(ModuleManager.java:109) [modularity-0.9.5.jar:?]
	at org.jivesoftware.openfire.plugin.ofmeet.OfMeetPlugin.loadAllModules(OfMeetPlugin.java:254) [ofmeet-0.9.5.jar:?]
	at org.jivesoftware.openfire.plugin.ofmeet.OfMeetPlugin.initializePlugin(OfMeetPlugin.java:141) [ofmeet-0.9.5.jar:?]
	at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java:638) [xmppserver-4.4.0.jar:4.4.0]
	at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:381) [xmppserver-4.4.0.jar:4.4.0]
	at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:369) [xmppserver-4.4.0.jar:4.4.0]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
	at java.lang.Thread.run(Thread.java:834) [?:?]
	
2019.07.25 09:22:16 ERROR [TcpHarvester AcceptThread]: net.java.sip.communicator.util.UtilActivator - An uncaught exception occurred in thread=Thread[TcpHarvester AcceptThread,5,main] and message was: Receiver class org.ice4j.socket.jdk8.MuxServerSocketChannel does not define or inherit an implementation of the resolved method abstract translateInterestOps(I)I of interface sun.nio.ch.SelChImpl.
java.lang.AbstractMethodError: Receiver class org.ice4j.socket.jdk8.MuxServerSocketChannel does not define or inherit an implementation of the resolved method abstract translateInterestOps(I)I of interface sun.nio.ch.SelChImpl.
	at sun.nio.ch.SelectionKeyImpl.translateInterestOps(SelectionKeyImpl.java:158) ~[?:?]
	at sun.nio.ch.EPollSelectorImpl.processUpdateQueue(EPollSelectorImpl.java:155) ~[?:?]
	at sun.nio.ch.EPollSelectorImpl.doSelect(EPollSelectorImpl.java:113) ~[?:?]
	at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:124) ~[?:?]
	at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:136) ~[?:?]
	at org.ice4j.ice.harvest.AbstractTcpListener$AcceptThread.run(AbstractTcpListener.java:590) ~[ice4j-2.0.0-20181213.100259-20.jar:?]

2019.07.25 09:22:16 ERROR [org.ice4j.socket.jdk8.MuxingServerSocketChannel.acceptThread]: net.java.sip.communicator.util.UtilActivator - An uncaught exception occurred in thread=Thread[org.ice4j.socket.jdk8.MuxingServerSocketChannel.acceptThread,5,main] and message was: Receiver class org.ice4j.socket.jdk8.MuxingServerSocketChannel does not define or inherit an implementation of the resolved method abstract translateInterestOps(I)I of interface sun.nio.ch.SelChImpl.
java.lang.AbstractMethodError: Receiver class org.ice4j.socket.jdk8.MuxingServerSocketChannel does not define or inherit an implementation of the resolved method abstract translateInterestOps(I)I of interface sun.nio.ch.SelChImpl.
	at sun.nio.ch.SelectionKeyImpl.translateInterestOps(SelectionKeyImpl.java:158) ~[?:?]
	at sun.nio.ch.EPollSelectorImpl.processUpdateQueue(EPollSelectorImpl.java:155) ~[?:?]
	at sun.nio.ch.EPollSelectorImpl.doSelect(EPollSelectorImpl.java:113) ~[?:?]
	at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:124) ~[?:?]
	at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:136) ~[?:?]
	at org.ice4j.socket.jdk8.MuxingServerSocketChannel.runInSelectorThread(MuxingServerSocketChannel.java:507) ~[ice4j-2.0.0-20181213.100259-20.jar:?]
	at org.ice4j.socket.jdk8.MuxingServerSocketChannel.runInAcceptThread(MuxingServerSocketChannel.java:314) ~[ice4j-2.0.0-20181213.100259-20.jar:?]
	at org.ice4j.socket.jdk8.MuxingServerSocketChannel.access$200(MuxingServerSocketChannel.java:38) ~[ice4j-2.0.0-20181213.100259-20.jar:?]
	at org.ice4j.socket.jdk8.MuxingServerSocketChannel$4.run(MuxingServerSocketChannel.java:557) ~[ice4j-2.0.0-20181213.100259-20.jar:?]

2019.07.25 09:22:18 ERROR [org.ice4j.socket.jdk8.MuxingServerSocketChannel.acceptThread]: net.java.sip.communicator.util.UtilActivator - An uncaught exception occurred in thread=Thread[org.ice4j.socket.jdk8.MuxingServerSocketChannel.acceptThread,5,main] and message was: Receiver class org.ice4j.socket.jdk8.MuxingServerSocketChannel does not define or inherit an implementation of the resolved method abstract translateInterestOps(I)I of interface sun.nio.ch.SelChImpl.
java.lang.AbstractMethodError: Receiver class org.ice4j.socket.jdk8.MuxingServerSocketChannel does not define or inherit an implementation of the resolved method abstract translateInterestOps(I)I of interface sun.nio.ch.SelChImpl.
	at sun.nio.ch.SelectionKeyImpl.translateInterestOps(SelectionKeyImpl.java:158) ~[?:?]
	at sun.nio.ch.EPollSelectorImpl.processUpdateQueue(EPollSelectorImpl.java:155) ~[?:?]
	at sun.nio.ch.EPollSelectorImpl.doSelect(EPollSelectorImpl.java:113) ~[?:?]
	at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:124) ~[?:?]
	at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:136) ~[?:?]
	at org.ice4j.socket.jdk8.MuxingServerSocketChannel.runInSelectorThread(MuxingServerSocketChannel.java:507) ~[ice4j-2.0.0-20181005.221549-11.jar:?]
	at org.ice4j.socket.jdk8.MuxingServerSocketChannel.runInAcceptThread(MuxingServerSocketChannel.java:314) ~[ice4j-2.0.0-20181005.221549-11.jar:?]
	at org.ice4j.socket.jdk8.MuxingServerSocketChannel.access$200(MuxingServerSocketChannel.java:38) ~[ice4j-2.0.0-20181005.221549-11.jar:?]
	at org.ice4j.socket.jdk8.MuxingServerSocketChannel$4.run(MuxingServerSocketChannel.java:557) ~[ice4j-2.0.0-20181005.221549-11.jar:?]

2019.07.25 09:22:20 ERROR [pool-45-thread-2]: org.jitsi.jicofo.xmpp.FocusComponent - java.lang.IllegalArgumentException: name must not be null
java.lang.IllegalArgumentException: name must not be null
	at org.jivesoftware.smack.util.StringUtils.requireNotNullOrEmpty(StringUtils.java:462) ~[smack-core-4.2.2-b1c107f.jar:4.2.2-b1c107f]
	at org.jivesoftware.smackx.iqversion.packet.Version.<init>(Version.java:71) ~[smack-extensions-4.2.2-b1c107f.jar:4.2.2-b1c107f]
	at org.jivesoftware.smackx.iqversion.packet.Version.<init>(Version.java:77) ~[smack-extensions-4.2.2-b1c107f.jar:4.2.2-b1c107f]
	at org.jitsi.jicofo.discovery.Version.<init>(Version.java:40) ~[jicofo-1.1-20190118.220443-57.jar:?]
	at org.jitsi.jicofo.discovery.VersionIqProvider.parse(VersionIqProvider.java:38) ~[jicofo-1.1-20190118.220443-57.jar:?]
	at org.jitsi.jicofo.discovery.VersionIqProvider.parse(VersionIqProvider.java:29) ~[jicofo-1.1-20190118.220443-57.jar:?]
	at org.jivesoftware.smack.provider.Provider.parse(Provider.java:32) ~[smack-core-4.2.2-b1c107f.jar:4.2.2-b1c107f]
	at org.jitsi.xmpp.util.IQUtils.convert(IQUtils.java:162) ~[jicoco-1.1-20180710.162527-5.jar:?]
	at org.jitsi.jicofo.xmpp.FocusComponent.handleIQGetImpl(FocusComponent.java:211) [jicofo-1.1-20190118.220443-57.jar:?]
	at org.jitsi.xmpp.component.ComponentBase.handleIQGet(ComponentBase.java:317) [jicoco-1.1-20180710.162527-5.jar:?]
	at org.xmpp.component.AbstractComponent.processIQRequest(AbstractComponent.java:520) [tinder-2.0.0.jar:?]
	at org.xmpp.component.AbstractComponent.processIQ(AbstractComponent.java:291) [tinder-2.0.0.jar:?]
	at org.xmpp.component.AbstractComponent.processQueuedPacket(AbstractComponent.java:239) [tinder-2.0.0.jar:?]
	at org.xmpp.component.AbstractComponent.access$100(AbstractComponent.java:80) [tinder-2.0.0.jar:?]
	at org.xmpp.component.AbstractComponent$PacketProcessor.run(AbstractComponent.java:1058) [tinder-2.0.0.jar:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
	at java.lang.Thread.run(Thread.java:834) [?:?]

2019.07.25 09:22:20 WARN  [pool-45-thread-2]: org.jitsi.jicofo.xmpp.FocusComponent - (serving component 'Jitsi Meet Focus') Unexpected exception while processing IQ stanza: <iq type="get" id="453-14" from="component.removedddns.ddns.net" to="focus.removedddns.ddns.net"><query xmlns="jabber:iq:version"/></iq>
java.lang.IllegalArgumentException: name must not be null
	at org.jivesoftware.smack.util.StringUtils.requireNotNullOrEmpty(StringUtils.java:462) ~[smack-core-4.2.2-b1c107f.jar:4.2.2-b1c107f]
	at org.jivesoftware.smackx.iqversion.packet.Version.<init>(Version.java:71) ~[smack-extensions-4.2.2-b1c107f.jar:4.2.2-b1c107f]
	at org.jivesoftware.smackx.iqversion.packet.Version.<init>(Version.java:77) ~[smack-extensions-4.2.2-b1c107f.jar:4.2.2-b1c107f]
	at org.jitsi.jicofo.discovery.Version.<init>(Version.java:40) ~[jicofo-1.1-20190118.220443-57.jar:?]
	at org.jitsi.jicofo.discovery.VersionIqProvider.parse(VersionIqProvider.java:38) ~[jicofo-1.1-20190118.220443-57.jar:?]
	at org.jitsi.jicofo.discovery.VersionIqProvider.parse(VersionIqProvider.java:29) ~[jicofo-1.1-20190118.220443-57.jar:?]
	at org.jivesoftware.smack.provider.Provider.parse(Provider.java:32) ~[smack-core-4.2.2-b1c107f.jar:4.2.2-b1c107f]
	at org.jitsi.xmpp.util.IQUtils.convert(IQUtils.java:162) ~[jicoco-1.1-20180710.162527-5.jar:?]
	at org.jitsi.jicofo.xmpp.FocusComponent.handleIQGetImpl(FocusComponent.java:211) ~[jicofo-1.1-20190118.220443-57.jar:?]
	at org.jitsi.xmpp.component.ComponentBase.handleIQGet(ComponentBase.java:317) ~[jicoco-1.1-20180710.162527-5.jar:?]
	at org.xmpp.component.AbstractComponent.processIQRequest(AbstractComponent.java:520) ~[tinder-2.0.0.jar:?]
	at org.xmpp.component.AbstractComponent.processIQ(AbstractComponent.java:291) [tinder-2.0.0.jar:?]
	at org.xmpp.component.AbstractComponent.processQueuedPacket(AbstractComponent.java:239) [tinder-2.0.0.jar:?]
	at org.xmpp.component.AbstractComponent.access$100(AbstractComponent.java:80) [tinder-2.0.0.jar:?]
	at org.xmpp.component.AbstractComponent$PacketProcessor.run(AbstractComponent.java:1058) [tinder-2.0.0.jar:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
	at java.lang.Thread.run(Thread.java:834) [?:?]

2019.07.25 09:22:24 ERROR [Smack Packet Reader (0)]: org.jivesoftware.smack.parsing.ExceptionLoggingCallback - Smack message parsing exception. Content: '<query xmlns="jabber:iq:version"/></iq>'
java.lang.IllegalArgumentException: name must not be null
	at org.jivesoftware.smack.util.StringUtils.requireNotNullOrEmpty(StringUtils.java:462) ~[smack-core-4.2.2-b1c107f.jar:4.2.2-b1c107f]
	at org.jivesoftware.smackx.iqversion.packet.Version.<init>(Version.java:71) ~[smack-extensions-4.2.2-b1c107f.jar:4.2.2-b1c107f]
	at org.jivesoftware.smackx.iqversion.packet.Version.<init>(Version.java:77) ~[smack-extensions-4.2.2-b1c107f.jar:4.2.2-b1c107f]
	at org.jitsi.jicofo.discovery.Version.<init>(Version.java:40) ~[jicofo-1.1-20190118.220443-57.jar:?]
	at org.jitsi.jicofo.discovery.VersionIqProvider.parse(VersionIqProvider.java:38) ~[jicofo-1.1-20190118.220443-57.jar:?]
	at org.jitsi.jicofo.discovery.VersionIqProvider.parse(VersionIqProvider.java:29) ~[jicofo-1.1-20190118.220443-57.jar:?]
	at org.jivesoftware.smack.provider.Provider.parse(Provider.java:32) ~[smack-core-4.2.2-b1c107f.jar:4.2.2-b1c107f]
	at org.jivesoftware.smack.util.PacketParserUtils.parseIQ(PacketParserUtils.java:633) ~[smack-core-4.2.2-b1c107f.jar:4.2.2-b1c107f]
	at org.jivesoftware.smack.util.PacketParserUtils.parseStanza(PacketParserUtils.java:153) ~[smack-core-4.2.2-b1c107f.jar:4.2.2-b1c107f]
	at org.jivesoftware.smack.AbstractXMPPConnection.parseAndProcessStanza(AbstractXMPPConnection.java:1049) [smack-core-4.2.2-b1c107f.jar:4.2.2-b1c107f]
	at org.jivesoftware.smack.tcp.XMPPTCPConnection.access$500(XMPPTCPConnection.java:151) [smack-tcp-4.2.2-b1c107f.jar:4.2.2-b1c107f]
	at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1040) [smack-tcp-4.2.2-b1c107f.jar:4.2.2-b1c107f]
	at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$300(XMPPTCPConnection.java:994) [smack-tcp-4.2.2-b1c107f.jar:4.2.2-b1c107f]
	at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnection.java:1010) [smack-tcp-4.2.2-b1c107f.jar:4.2.2-b1c107f]
	at java.lang.Thread.run(Thread.java:834) [?:?]

It looks to me like your ofmeet plugin has problems. Will Openfire start with the plugin removed?

Greg

Ofmeet and openfire works when I use java 8 (which is what i am doing atm). Maybe someone with a test environment can see if they also get this issue.

Let us ping @Dele_Olajide to see what he says about OFMeet and OpenJDK 11 working?

I am sorry, but I am still at java8. I have not used java11 yet