# Server 500 error

**URL:** <https://community.openhab.org/t/server-500-error/20255>\
**Category:** Runtime\
**Created:** [January 14, 2017, 5:18pm UTC](https://community.openhab.org/t/server-500-error/20255 "2017-01-14T17:18:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DQX](https://community.openhab.org/letter_avatar_proxy/v4/letter/d/8baadc/32.png) [@DQX](https://community.openhab.org/u/DQX)\
**Post date:** [January 14, 2017, 5:18pm UTC](https://community.openhab.org/t/server-500-error/20255/1 "2017-01-14T17:18:15Z")

</div>

Hello all,

It ran before, and it doesn’t anymore… No idea what’s happening.

Installed by apt, updated/upgraded to the last nightly built, on a debian system. After I did it stayed on the ‘installing ui’ page for a while, and now it is back to the error it had before:

HTTP ERROR 500

Problem accessing /start/index. Reason:

```
Server Error

```

Caused by:

java.lang.NullPointerException  
at java.lang.String.replace(String.java:2240)  
at org.openhab.ui.dashboard.internal.DashboardServlet.serveDashboard(DashboardServlet.java:74)  
at org.openhab.ui.dashboard.internal.DashboardServlet.doGet(DashboardServlet.java:63)  
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)  
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)  
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)  
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)  
at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)  
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)  
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)  
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)  
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)  
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:287)  
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)  
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)  
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)  
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)  
at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)  
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)  
at org.eclipse.jetty.server.Server.handle(Server.java:499)  
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)  
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)  
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)  
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)  
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)  
at java.lang.Thread.run(Thread.java:745)

Any ideas?

---

<div class="post-metadata">

**Author:** ![maetz](https://community.openhab.org/user_avatar/community.openhab.org/maetz/32/7428_2.png) [@maetz](https://community.openhab.org/u/maetz)\
**Post date:** [January 14, 2017, 10:15pm UTC](https://community.openhab.org/t/server-500-error/20255/2 "2017-01-14T22:15:19Z")

</div>

Hi there,

i am facing the same problem. I restarted my pi after including some devices and defined some new things in the sitemap, that’s when the problem occurred. Unfortunately changing the sitemap to an older backup did not solve the problem …  
Openhab itself seems to run fine, from the android app i can toggle switches.

If you @DQX say: “It ran before, and it doesn’t anymore… No idea what’s happening.” did you also restart your server?

Matthias

---

<div class="post-metadata">

**Author:** ![maetz](https://community.openhab.org/user_avatar/community.openhab.org/maetz/32/7428_2.png) [@maetz](https://community.openhab.org/u/maetz)\
**Post date:** [January 15, 2017, 7:26am UTC](https://community.openhab.org/t/server-500-error/20255/3 "2017-01-15T07:26:47Z")

</div>

Hello all and @DQX,

this is the same error as here:

> [@Server Error / 500 with openhab2](https://community.openhab.org/t/server-error-500-with-openhab2/19750):
>
> all of a sudden, I cannot connect to the root of my openhab2 web server. I have installed by apt. I am unsure how to troubleshoot, but here are the errors in openhab.log. Any ideas? Note - I fixed the sitemap error in the logs… 2017-01-07 14:07:21.206 [WARN] [eclipse.jetty.servlet.ServletHandler] - /start/index java.lang.NullPointerException at java.lang.String.replace(String.java:2240)[:1.8.0\_65] at org.openhab.ui.dashboard.internal.DashboardServlet.serveDashboard(DashboardServlet.java:74…

and it is solved here:

> [@Replacement of the Apt Snapshot Repository](https://community.openhab.org/t/replacement-of-the-apt-snapshot-repository/19674):
>
> This thread is since outdated. The openHAB snapshots/unstable builds have once again moved to a less restricted repository. The announcement below is superseded. To always find the latest installation instructions, please consult the official documentation. The following article will always be up to date: [http://docs.openhab.org/installation/linux.html#package-repository-installation](http://docs.openhab.org/installation/linux.html#package-repository-installation) All, good news but also a breaking change for the “snapshot apt repository” users: From now on the openHAB …

some more informations can be found here:

> [@A single distro from now on!](https://community.openhab.org/t/a-single-distro-from-now-on/19903):
>
> All, Today we again have a major update of the openHAB distro. I worked heavily on [a bigger refactoring](https://github.com/openhab/openhab-distro/pull/369) during the last days, which resulted in a single distro, so that users no longer have to choose between online and offline distro. You can find the snapshot builds [on our Jenkins at Cloudbees](https://openhab.ci.cloudbees.com/job/openHAB-Distribution/) - it is now simply called openhab-2.0.0-SNAPSHOT.zip/tar.gz. If you download this, it will behave the same way as the online distro before, i.e. it does not include any add-ons, but will load them on d…

and here:  
[http://docs.openhab.org/installation/linux.html#package-repository-installation](http://docs.openhab.org/installation/linux.html#package-repository-installation)

Matthias

---

<div class="post-metadata">

**Author:** ![DQX](https://community.openhab.org/letter_avatar_proxy/v4/letter/d/8baadc/32.png) [@DQX](https://community.openhab.org/u/DQX)\
**Post date:** [January 28, 2017, 12:21am UTC](https://community.openhab.org/t/server-500-error/20255/4 "2017-01-28T00:21:34Z")

</div>

I only had time to work on this again tonight.

After updating my whole computer failed to start, so instead of trying t fix it, I just reinstalled the lot. Let’s hope things don’t break anymore, I have had quite some issues I have to say. Hope and pray…
