Running Openfire 4.2.1 on an Ubuntu VM and after a recent set of Ubuntu updates (I’m thinking its a java update) has broken my LDAP connection to AD. It has been working great for sometime and I’m using LDAP secure on port 636 to my domain controller. After the Ubuntu updates no one can login via spark and I cannot get into the admin console. Below is an error I’m seeing in the logs that may be the cause:

2019.03.06 20:56:48 ERROR [main]: org.jivesoftware.util.AesEncryptor - AES cipher failed
java.lang.IllegalArgumentException: Null input buffer
at javax.crypto.Cipher.doFinal(Cipher.java:2160)
at org.jivesoftware.util.AesEncryptor.cipher(AesEncryptor.java:100)
at org.jivesoftware.util.AesEncryptor.decrypt(AesEncryptor.java:74)
at org.jivesoftware.util.JiveProperties.loadProperties(JiveProperties.java:422)
at org.jivesoftware.util.JiveProperties.init(JiveProperties.java:89)
at org.jivesoftware.util.JiveProperties.getInstance(JiveProperties.java:65)
at org.jivesoftware.util.JiveGlobals.getProperty(JiveGlobals.java:544)
at org.jivesoftware.util.cache.CacheFactory.<clinit>(CacheFactory.java:88)
at org.jivesoftware.openfire.XMPPServer.initialize(XMPPServer.java:311)
at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:535)
at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:163)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:102)
at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:53)

What ‘java -version’ shows?
Also try running Openfire manually via ‘sudo /etc/init.d/openfire start’ and tell what output you get, anything about Java?
Check /usr/lib/jvm, do you have java 8 there? Even if your default java is now 11, you can still change the default by editing:
sudo nano /etc/default/openfire
uncomment JAVA_HOME
set to =/usr/lib/jvm/java-8-openjdk-amd64/jre (see if your path is like that actually)
then reboot the server or restart Openfire deamon

But that’s because I had to revert my snapshot and get openfire working again. I’ll attempt the updates again and see what version it goes to. I’ll also check your other questions after applying updates and report back. Thanks!