Openfire Server does not stay running

Hi,

I am running an Openfire server on a Windows VM.

I will start the server and everything works great, I can access everything from clients etc.

Later in the day I will go to use a client and it cannot access openfire server.

I remote back into the machine running Openfire and it has mysteriously quit running.

Can anyone help me with this issue?

What information can I provide to help the helpers?

Thanks.
gateway.jar (684697 Bytes)

Hi,

did you start Openfire as a service within Windows? If you start it using the normal start icon it will terminate as soon as you log out or your server logs you out if you are using a terminal session.

Do you see errors in the log files or hs_* files in the Openfire directory?

LG

I start Openfire with openfire.exe because when I try to use openfire-service.exe nothing happens and I am unable to connect through my im client.

Here is my error log file:

2007.06.19 13:30:33 [org.jivesoftware.util.log.util.CommonsLogFactory$1.fatal(CommonsLogFactory.jav a:95)

] The scratchDir you specified: C:\DOCUME1\cp46311\LOCALS1\Temp\2\Jetty_0_0_0_0_9090_webapp____-dnguxu\jsp is unusable.

2007.06.19 13:30:34 [org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.jav a:462)

] Error loading plugin: C:\Program Files\Openfire\plugins\search

java.lang.NullPointerException: No ComponentManager implementation available.

at org.xmpp.component.ComponentManagerFactory.getComponentManager(ComponentManager Factory.java:52)

at org.jivesoftware.openfire.plugin.SearchPlugin.initializePlugin(SearchPlugin.jav a:102)

at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java :404)

at org.jivesoftware.openfire.container.PluginManager.access$200(PluginManager.java :46)

at org.jivesoftware.openfire.container.PluginManager$PluginMonitor.run(PluginManag er.java:916)

at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)

at java.util.concurrent.FutureTask.runAndReset(Unknown Source)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101 (Unknown Source)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodi c(Unknown Source)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknow n Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

2007.06.19 13:31:11 [org.jivesoftware.openfire.update.UpdateManager$1.run(UpdateManager.java:116)

] Error checking for updates

java.net.UnknownHostException: www.igniterealtime.org

at java.net.PlainSocketImpl.connect(Unknown Source)

at java.net.SocksSocketImpl.connect(Unknown Source)

at java.net.Socket.connect(Unknown Source)

at java.net.Socket.connect(Unknown Source)

at java.net.Socket.(Unknown Source)

at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocke t(DefaultProtocolSocketFactory.java:79)

at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocke t(DefaultProtocolSocketFactory.java:121)

at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)

at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDir ector.java:386)

at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirect or.java:170)

at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)

at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)

at org.jivesoftware.openfire.update.UpdateManager.checkForServerUpdate(UpdateManag er.java:194)

at org.jivesoftware.openfire.update.PluginDownloadManager.updatePluginsList(Plugin DownloadManager.java:76)

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 uk.ltd.getahead.dwr.impl.ExecuteQuery.execute(ExecuteQuery.java:239)

at uk.ltd.getahead.dwr.impl.DefaultExecProcessor.handle(DefaultExecProcessor.java: 48)

at uk.ltd.getahead.dwr.impl.DefaultProcessor.handle(DefaultProcessor.java:81)

at uk.ltd.getahead.dwr.AbstractDWRServlet.doPost(AbstractDWRServlet.java:162)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:491)

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1074)

at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:98)

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1065)

at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:11 8)

at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1065)

at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)

at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:185)

at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)

at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689)

at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391)

at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollect ion.java:146)

at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)

at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)

at org.mortbay.jetty.Server.handle(Server.java:285)

at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457)

at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:765 )

at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:627)

at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)

at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)

at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:329)

at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)

Any suggestions?

Thanks for your response(s).

Hi,

is Openfire still running when you see these errors or do you see these errors as soon as on tries to log in?

I wonder if you read the installation documentation and did try to install Openfire as a service, just executing “openfire-service.exe” will afaik not install it as a service.

LG

These are errors found in error.log. The entries are not placed when a user logs in.

I installed the service by command prompt just like the install docs instruct.

openfire-service.exe /install

openfire-service.exe /start

Today I saw an interesting message for the first time in the openfire.exe console window (where you launch the admin from)

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.lang.NullPointerException

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

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

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:93)

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

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.lang.NullPointerException

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

… 16 more

Error starting the server. Please check the log files for more information.

Server halted

The error.log file contained many NullPointerExceptions

Any suggestions or steps to take?

Thanks.

Hi,

you may want to review or post your database settings which are stored in openfire.xml. Please avoid to post the whole file, especially if it has a lot of comments in it. You may change the username, password and connection string which you are using before posting the database section.

LG

I am experiencing the same problem. I can start the service from the any of the machines, but when that particular machine logs off, the service shuts down.

When I try to start the service by command with C:\program files\openfire\bin\openfire-service /start, I receieve an error message. Could not start service. Error Code: 1060.

I am trying to figure out why there are so many problems (that presumably are resolved - according to these threads) but after reading them I see no solutiions.

There is no reference to an error code 1060 in any search.

How do I keep th openfire service running???

1060==ERROR_SERVICE_DOES_NOT_EXIST - The specified service does not exist as an installed service. according to http://msdn2.microsoft.com/en-us/library/ms681383.aspx

Not sure what went wrong during installation of the service, but this seems to be problematic on Windows.

LG

I have 3.3.2 running in a win2k3 environment just fine. It sounds like something went wrong during the initial installation. I’'d review a few things here to insure it installed properly.

  1. Install the application as administrator.

  2. If not installed as administrator, insure the user you are installing it as has administrative rights.

  3. Run, services.msc from Start->Run, and insure the service openfire-service.exe is running.

  4. If the service is not installed, Run openfire-service /install again, and check the services page once again.

If the service never gets installed, then something is blocking it from happening. As long as you are a admin while attempting this, there isn’‘t any reason why it shouldn’'t install. There may be some security applications that could be preventing this potentially as well, but that would be up to you to determine if you have such a thing installed on this machine.

Hope this helps.

Regards,

-Lyle