I installed latest openfire 4.8.3 and now I want to initialize it by going to localhost:9090 and I see Choose a language. I select English, then I click next and I am asked to select domain name and encryption algorythm. I leave the default values and I click next and I see this exception:
Caused by:
java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because "oldAlg" is null
at org.jivesoftware.util.JiveGlobals.setupPropertyEncryptionAlgorithm(JiveGlobals.java:1112)
at org.jivesoftware.openfire.admin.setup.setup_002dhost_002dsettings_jsp._jspService(setup_002dhost_002dsettings_jsp.java:265)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:590)
I can’t find a bug in Openfire that would cause this. The only thing that I can think of is that the conf/security.xml file is corrupt or inaccessible. If I remove that file prior to starting Openfire, I do reproduce the problem.
Can you check if this file is present and accessible to the Openfire process? If it is not, can you then please describe how you installed Openfire? Is this file missing from a distribution perhaps?
I’ve now added an explicit check for the configuration files at the start of the setup process. This prevents confusing errors half-way through the setup process, if/when those files do not exist.