Uploaded image for project: 'Openfire'
  1. Openfire
  2. OF-1298

Shouldn't allow proceeding with setup after errors during the launch

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.1.3
    • Fix Version/s: None
    • Component/s: Admin Console, Scripts
    • Environment:
      Windows with UAC protection; Debian when running with a regular user

      Description

      If a Windows user install Openfire into Program files folder and runs the launcher without Run as admin option (even if he is logged in as administrator), the launcher shows errors, but the user is still allowed to proceed with setup and eventually stumbles on the "current password" error, which is not present when the launcher is running as it should with Run as admin option or Openfire is not installed into Program files or Openfire is running as a service (with SYSTEM permission in that case). Openfire shouldn't allow continuing with setup in such case. Error:

      log4j:ERROR setFile(null,true) call failed.
      java.io.FileNotFoundException: C:\Program Files (x86)\Openfire\bin\..\logs\all.log (Access is denied)
      	at java.io.FileOutputStream.open0(Native Method)
      	at java.io.FileOutputStream.open(Unknown Source)
      	at java.io.FileOutputStream.<init>(Unknown Source)
      	at java.io.FileOutputStream.<init>(Unknown Source)
      	at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
      	at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:207)
      	at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
      	at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
      	at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:295)
      	at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:176)
      	at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:191)
      	at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:523)
      	at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:492)
      	at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:1006)
      	at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:872)
      	at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:778)
      	at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)
      	at org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
      	at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:66)
      	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:277)
      	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:288)
      	at org.jivesoftware.openfire.XMPPServer.<clinit>(XMPPServer.java:101)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
      	at java.lang.reflect.Constructor.newInstance(Unknown Source)
      	at java.lang.Class.newInstance(Unknown Source)
      	at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:105)
      	at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:65)
      	at com.exe4j.runtime.WinLauncher.main(WinLauncher.java:101)
      	at com.install4j.runtime.launcher.WinLauncher.main(WinLauncher.java:26)
      log4j:ERROR setFile(null,true) call failed.
      java.io.FileNotFoundException: C:\Program Files (x86)\Openfire\bin\..\logs\debug.log (Access is denied)
      	at java.io.FileOutputStream.open0(Native Method)
      	at java.io.FileOutputStream.open(Unknown Source)
      	at java.io.FileOutputStream.<init>(Unknown Source)
      	at java.io.FileOutputStream.<init>(Unknown Source)
      	at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
      	at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:207)
      	at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
      	at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
      	at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:295)
      	at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:176)
      	at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:191)
      	at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:523)
      	at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:492)
      	at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:1006)
      	at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:872)
      	at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:778)
      	at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)
      	at org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
      	at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:66)
      	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:277)
      	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:288)
      	at org.jivesoftware.openfire.XMPPServer.<clinit>(XMPPServer.java:101)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
      	at java.lang.reflect.Constructor.newInstance(Unknown Source)
      	at java.lang.Class.newInstance(Unknown Source)
      	at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:105)
      	at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:65)
      	at com.exe4j.runtime.WinLauncher.main(WinLauncher.java:101)
      	at com.install4j.runtime.launcher.WinLauncher.main(WinLauncher.java:26)
      log4j:ERROR setFile(null,true) call failed.
      java.io.FileNotFoundException: C:\Program Files (x86)\Openfire\bin\..\logs\info.log (Access is denied)
      	at java.io.FileOutputStream.open0(Native Method)
      	at java.io.FileOutputStream.open(Unknown Source)
      	at java.io.FileOutputStream.<init>(Unknown Source)
      	at java.io.FileOutputStream.<init>(Unknown Source)
      	at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
      	at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:207)
      	at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
      	at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
      	at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:295)
      	at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:176)
      	at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:191)
      	at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:523)
      	at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:492)
      	at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:1006)
      	at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:872)
      	at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:778)
      	at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)
      	at org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
      	at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:66)
      	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:277)
      	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:288)
      	at org.jivesoftware.openfire.XMPPServer.<clinit>(XMPPServer.java:101)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
      	at java.lang.reflect.Constructor.newInstance(Unknown Source)
      	at java.lang.Class.newInstance(Unknown Source)
      	at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:105)
      	at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:65)
      	at com.exe4j.runtime.WinLauncher.main(WinLauncher.java:101)
      	at com.install4j.runtime.launcher.WinLauncher.main(WinLauncher.java:26)
      log4j:ERROR setFile(null,true) call failed.
      java.io.FileNotFoundException: C:\Program Files (x86)\Openfire\bin\..\logs\warn.log (Access is denied)
      	at java.io.FileOutputStream.open0(Native Method)
      	at java.io.FileOutputStream.open(Unknown Source)
      	at java.io.FileOutputStream.<init>(Unknown Source)
      	at java.io.FileOutputStream.<init>(Unknown Source)
      	at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
      	at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:207)
      	at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
      	at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
      	at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:295)
      	at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:176)
      	at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:191)
      	at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:523)
      	at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:492)
      	at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:1006)
      	at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:872)
      	at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:778)
      	at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)
      	at org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
      	at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:66)
      	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:277)
      	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:288)
      	at org.jivesoftware.openfire.XMPPServer.<clinit>(XMPPServer.java:101)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
      	at java.lang.reflect.Constructor.newInstance(Unknown Source)
      	at java.lang.Class.newInstance(Unknown Source)
      	at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:105)
      	at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:65)
      	at com.exe4j.runtime.WinLauncher.main(WinLauncher.java:101)
      	at com.install4j.runtime.launcher.WinLauncher.main(WinLauncher.java:26)
      log4j:ERROR setFile(null,true) call failed.
      java.io.FileNotFoundException: C:\Program Files (x86)\Openfire\bin\..\logs\error.log (Access is denied)
      	at java.io.FileOutputStream.open0(Native Method)
      	at java.io.FileOutputStream.open(Unknown Source)
      	at java.io.FileOutputStream.<init>(Unknown Source)
      	at java.io.FileOutputStream.<init>(Unknown Source)
      	at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
      	at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:207)
      	at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
      	at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
      	at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:295)
      	at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:176)
      	at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:191)
      	at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:523)
      	at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:492)
      	at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:1006)
      	at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:872)
      	at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:778)
      	at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)
      	at org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
      	at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:66)
      	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:277)
      	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:288)
      	at org.jivesoftware.openfire.XMPPServer.<clinit>(XMPPServer.java:101)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
      	at java.lang.reflect.Constructor.newInstance(Unknown Source)
      	at java.lang.Class.newInstance(Unknown Source)
      	at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:105)
      	at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:65)
      	at com.exe4j.runtime.WinLauncher.main(WinLauncher.java:101)
      	at com.install4j.runtime.launcher.WinLauncher.main(WinLauncher.java:26)
      Openfire 4.1.3 [Mar 3, 2017 10:07:43 PM]
      Admin console listening at http://10.0.2.15:9090
      Successfully loaded plugin 'admin'.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            wroot wroot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: