powered by Jive Software

Error when every time running Openfire

This would be the error when I run Openfire3.7.1…it will make Okay when I install back the Openfire3.7.1,.but when I QUIT the OPenfire 3.7.1 then run it again the error will appear again,…

I hope u understand me coz this is the first time I used it…

log4j:ERROR setFile(null,true) call failed.

java.io.FileNotFoundException: C:\Program Files\Openfire\bin…\logs\debug.log (Access is denied)

at java.io.FileOutputStream.openAppend(Native Method)

at java.io.FileOutputStream.(Unknown Source)

at java.io.FileOutputStream.(Unknown Source)

at org.apache.log4j.FileAppender.setFile(FileAppender.java:290)

at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:194)

at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:164)

at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:257)

at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:285)

at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:17 1)

at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.ja va:184)

at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurat or.java:502)

at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:471)

at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:921)

at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:790)

at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:696)

at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.jav a:471)

at org.apache.log4j.LogManager.(LogManager.java:125)

at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:243)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:255)

at org.jivesoftware.openfire.XMPPServer.(XMPPServer.java:148)

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.newInstance0(Unknown Source)

at java.lang.Class.newInstance(Unknown Source)

at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:113)

at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:58)

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(Unknown Source)

at com.exe4j.runtime.WinLauncher.main(Unknown Source)

log4j:ERROR setFile(null,true) call failed.

java.io.FileNotFoundException: C:\Program Files\Openfire\bin…\logs\info.log (Access is denied)

at java.io.FileOutputStream.openAppend(Native Method)

at java.io.FileOutputStream.(Unknown Source)

at java.io.FileOutputStream.(Unknown Source)

at org.apache.log4j.FileAppender.setFile(FileAppender.java:290)

at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:194)

at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:164)

at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:257)

at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:285)

at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:17 1)

at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.ja va:184)

at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurat or.java:502)

at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:471)

at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:921)

at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:790)

at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:696)

at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.jav a:471)

at org.apache.log4j.LogManager.(LogManager.java:125)

at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:243)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:255)

at org.jivesoftware.openfire.XMPPServer.(XMPPServer.java:148)

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.newInstance0(Unknown Source)

at java.lang.Class.newInstance(Unknown Source)

at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:113)

at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:58)

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(Unknown Source)

at com.exe4j.runtime.WinLauncher.main(Unknown Source)

log4j:ERROR setFile(null,true) call failed.

java.io.FileNotFoundException: C:\Program Files\Openfire\bin…\logs\warn.log (Access is denied)

at java.io.FileOutputStream.openAppend(Native Method)

at java.io.FileOutputStream.(Unknown Source)

at java.io.FileOutputStream.(Unknown Source)

at org.apache.log4j.FileAppender.setFile(FileAppender.java:290)

at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:194)

at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:164)

at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:257)

at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:285)

at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:17 1)

at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.ja va:184)

at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurat or.java:502)

at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:471)

at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:921)

at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:790)

at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:696)

at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.jav a:471)

at org.apache.log4j.LogManager.(LogManager.java:125)

at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:243)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:255)

at org.jivesoftware.openfire.XMPPServer.(XMPPServer.java:148)

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.newInstance0(Unknown Source)

at java.lang.Class.newInstance(Unknown Source)

at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:113)

at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:58)

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(Unknown Source)

at com.exe4j.runtime.WinLauncher.main(Unknown Source)

log4j:ERROR setFile(null,true) call failed.

java.io.FileNotFoundException: C:\Program Files\Openfire\bin…\logs\error.log (Access is denied)

at java.io.FileOutputStream.openAppend(Native Method)

at java.io.FileOutputStream.(Unknown Source)

at java.io.FileOutputStream.(Unknown Source)

at org.apache.log4j.FileAppender.setFile(FileAppender.java:290)

at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:194)

at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:164)

at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:257)

at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:285)

at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:17 1)

at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.ja va:184)

at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurat or.java:502)

at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:471)

at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:921)

at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:790)

at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:696)

at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.jav a:471)

at org.apache.log4j.LogManager.(LogManager.java:125)

at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:243)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:255)

at org.jivesoftware.openfire.XMPPServer.(XMPPServer.java:148)

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.newInstance0(Unknown Source)

at java.lang.Class.newInstance(Unknown Source)

at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:113)

at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:58)

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(Unknown Source)

at com.exe4j.runtime.WinLauncher.main(Unknown Source)

Database setup or configuration error: Please verify your database settings and check the logs/error.log file for detailed error messages.

java.lang.IllegalArgumentException: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 retries. The exception from the last attempt is as follows: java.sql.SQLException: The database is already in use by another process: org.hsqldb.persist.NIOLockFile@f7cf94a6[file =C:\Program Files\Openfire\embedded-db\openfire.lck, exists=true, locked=false, valid=false, fl =null]: java.io.FileNotFoundException: C:\Program Files\Openfire\embedded-db\openfire.lck (Access is denied)

at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:764)

at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:480)

at org.jivesoftware.openfire.XMPPServer.(XMPPServer.java:212)

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.newInstance0(Unknown Source)

at java.lang.Class.newInstance(Unknown Source)

at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:113)

at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:58)

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(Unknown Source)

at com.exe4j.runtime.WinLauncher.main(Unknown Source)

Caused by: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 retries. The exception from the last attempt is as follows: java.sql.SQLException: The database is already in use by another process: org.hsqldb.persist.NIOLockFile@f7cf94a6[file =C:\Program Files\Openfire\embedded-db\openfire.lck, exists=true, locked=false, valid=false, fl =null]: java.io.FileNotFoundException: C:\Program Files\Openfire\embedded-db\openfire.lck (Access is denied)

at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager .java:151)

at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:754)

… 16 more

Error starting the servSe.rrePv leaees check the log files for more information.

r halted

Try running it with “Run as administrator”. I guess here, because you didn’t say what OS you are using.

thanks,…but I am using Windows 7 Pro…and I am in Administrator Account and it still it has an error…

It is known that you still has to run it with Run as administrator, even if you are logged in as admin. This has to do with how UAC (User Account Control) of Windows 7 operates.