Need help: HTTP ERROR:500 Internal Server Error

Hello Everyone,

I’m trying to make Openfire work on RHEL 4. During the setup process I received an error after the Profile Setting process.

Below is the detail of the error.

HTTP ERROR: 500INTERNAL_SERVER_ERROR

RequestURI=/setup/setup-profile-settings.jsp

Caused by:

java.lang.NullPointerException
     at org.jivesoftware.util.JiveGlobals.deleteXMLProperty(JiveGlobals.java:492)
     at org.jivesoftware.openfire.admin.setup.setup_002dprofile_002dsettings_jsp._jspService(setup_002dprofile_002dsettings_jsp.java:75)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
     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.java:1074)
     at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
     at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
     at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065)
     at org.jivesoftware.util.LocaleFilter.doFilter(LocaleFilter.java:65)
     at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065)
     at org.jivesoftware.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:41)
     at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065)
     at org.jivesoftware.admin.PluginFilter.doFilter(PluginFilter.java:69)
     at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065)
     at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:98)
     at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java: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(ContextHandlerCollection.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)

Powered by Jetty://

Thanks In advance.

Jhun Bacala

Hi,

I may quote Linux Installation Guide: “Make sure that the unix command “hostname” returns a valid name, for example “example.com” and that your /etc/hosts file does contain this name, for example in the first line together with “127.0.0.1 localhost example.com”. Or that you can resolve it using DNS. Actually the setup page after choosing your locale settings will return a HTTP 500 error if there is a problem.”

I hope that this helps and if it does one may want to fix the official installation guide.

LG

Thanks for quick reply, But I’t didn’t help. Here’s the weird part.

When I start the Openfire server using /opt/openfire/bin/openfire.sh I manage to finish the setup process.

And see the admin console login. But when I start Openfire using /etc/init.d/openfire start that’s when the error comes up.

So, what’s seems to be the problem here?

Jhun Bacala

Hi,

this sounds like a problem with the start script or with the permissions. Are you using the RPM or the tar.gz file for installation?

LG

Hi,

I’m using the RPM version. What is the correct permission for the script, if it is a permission problem?

Jhun

Is the user that runs openfire via the init script the same as the one you start it by hand with? If not, check the permissions, so that this user has the rights to r/w all the neccessary files (should be at least /conf /logs and /plugins and probably some more.

Also check your openfire/logs folder. Most of the times this happens you have a quite helpful description in the error-log.