HTTP ERROR 500 when access localhost:8080 OH2.2

Hi Everyone i have already setup my system its being running fine for over 3 month i have obviously made changes to the system before and recently but now i’m getting this response when trying to access localhost:8080 any ideas how too fix this or find whats going wrong im running OH v2.2 on windows

i read a post saying people received this error when there was a error in there items file
i have removed my .items file and restarted OH still getting this error i have also deleted folders Cache & Temp none of these solved my problem so i restored them after testing

Problem accessing /start/index. Reason:

    Server Error
Caused by:
java.lang.NullPointerException
	at org.openhab.ui.dashboard.internal.DashboardService.getLocalizedText(DashboardService.java:240)
	at org.openhab.ui.dashboard.internal.DashboardServlet.lambda$0(DashboardServlet.java:203)
	at org.openhab.ui.dashboard.internal.DashboardServlet.replaceKeysWithFunction(DashboardServlet.java:217)
	at org.openhab.ui.dashboard.internal.DashboardServlet.replaceKeysWithLocaleFunction(DashboardServlet.java:203)
	at org.openhab.ui.dashboard.internal.DashboardServlet.serveDashboard(DashboardServlet.java:114)
	at org.openhab.ui.dashboard.internal.DashboardServlet.doGet(DashboardServlet.java:80)
	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:848)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:584)
	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:548)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:284)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)
	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:134)
	at org.eclipse.jetty.server.Server.handle(Server.java:534)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:333)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108)
	at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
	at java.lang.Thread.run(Unknown Source)
Powered by Jetty:// 9.3.22.v20171030

OK after a full shutdown of the computer that’s hosting OH the problem seemed too have sorted itself out

The problem has happened again i havent got a clue what causing this

any suggestions appreciated having too keep fully restarting oh server every few hours is not acceptable my server runs other jobs too

where is this error being logged? in openhab.log ?

hi dim thanks for reply the error is displayed straight in my browser when trying to access localhost:8080 i cannot access any ui error also displayed in karaf

15:22:03.237 [WARN ] [.eclipse.jetty.servlet.ServletHandler] - /start/index

java.lang.NullPointerException: null

    at org.openhab.ui.dashboard.internal.DashboardService.getLocalizedText(DashboardService.java:240) ~[189:org.openhab.ui.dashboard:2.2.0]

    at org.openhab.ui.dashboard.internal.DashboardServlet.lambda$0(DashboardServlet.java:203) ~[189:org.openhab.ui.dashboard:2.2.0]

    at org.openhab.ui.dashboard.internal.DashboardServlet.replaceKeysWithFunction(DashboardServlet.java:217) [189:org.openhab.ui.dashboard:2.2.0]

    at org.openhab.ui.dashboard.internal.DashboardServlet.replaceKeysWithLocaleFunction(DashboardServlet.java:203) [189:org.openhab.ui.dashboard:2.2.0]

    at org.openhab.ui.dashboard.internal.DashboardServlet.serveDashboard(DashboardServlet.java:114) [189:org.openhab.ui.dashboard:2.2.0]

    at org.openhab.ui.dashboard.internal.DashboardServlet.doGet(DashboardServlet.java:80) [189:org.openhab.ui.dashboard:2.2.0]

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) [31:javax.servlet-api:3.1.0]

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [31:javax.servlet-api:3.1.0]

    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:848) [88:org.eclipse.jetty.servlet:9.3.22.v20171030]

    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:584) [88:org.eclipse.jetty.servlet:9.3.22.v20171030]

    at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) [191:org.ops4j.pax.web.pax-web-jetty:6.0.7]

    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) [87:org.eclipse.jetty.server:9.3.22.v20171030]

    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) [85:org.eclipse.jetty.security:9.3.22.v20171030]

    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) [87:org.eclipse.jetty.server:9.3.22.v20171030]

    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180) [87:org.eclipse.jetty.server:9.3.22.v20171030]

    at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:284) [191:org.ops4j.pax.web.pax-web-jetty:6.0.7]

    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512) [88:org.eclipse.jetty.servlet:9.3.22.v20171030]

    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) [87:org.eclipse.jetty.server:9.3.22.v20171030]

    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112) [87:org.eclipse.jetty.server:9.3.22.v20171030]

    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [87:org.eclipse.jetty.server:9.3.22.v20171030]

    at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) [191:org.ops4j.pax.web.pax-web-jetty:6.0.7]

    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134) [87:org.eclipse.jetty.server:9.3.22.v20171030]

    at org.eclipse.jetty.server.Server.handle(Server.java:534) [87:org.eclipse.jetty.server:9.3.22.v20171030]

    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:333) [87:org.eclipse.jetty.server:9.3.22.v20171030]

    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251) [87:org.eclipse.jetty.server:9.3.22.v20171030]

    at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283) [79:org.eclipse.jetty.io:9.3.22.v20171030]

    at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108) [79:org.eclipse.jetty.io:9.3.22.v20171030]

    at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93) [79:org.eclipse.jetty.io:9.3.22.v20171030]

    at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303) [90:org.eclipse.jetty.util:9.3.22.v20171030]

    at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148) [90:org.eclipse.jetty.util:9.3.22.v20171030]

    at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136) [90:org.eclipse.jetty.util:9.3.22.v20171030]

    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671) [90:org.eclipse.jetty.util:9.3.22.v20171030]

    at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589) [90:org.eclipse.jetty.util:9.3.22.v20171030]

    at java.lang.Thread.run(Unknown Source) [?:?]

this means that the OH2.2 service is not up and running properly.
Are you starting it using start.bat on windows or using a windows service?

There should be some useful info in openhab.log. Can you post some entries here to check them?

I have not setup the service as of yet im just running the start.bat as admin

what log would you like ? openhab log my mistake

How Can i send you the log having trouble

try to upload it to a file sharing service (e.g. google drive) and share the link here

edit: got it… .reading now :slight_smile:

1 Like

should i be carefull sharing my log like that will it contain sensitive info ?

you should be careful and make sure that no username/password combos (or other critical info) is included.
you can remove it now from dropbox. i downloaded a copy
(so many errors are logged :frowning:)

I see alot of

IllegalArgumentException: Network prefix length is not within bounds

did you change anything related to the IP Address of the windows host running OH2.2 recently?
any org.eclipse.smarthome.network options configured in %OPENHAB_CONF%/services/runtime.cfg?

I see alooot of older? directories being used… most likely you had OH2 running from different locations in the past

C:\openHAB\
C:\OPENHA~2.0\
C:\Users\Sharpy\DOWNLO~1\OPENHA~1.0\
C:\PROGRA~2\OPENHA~1.0\
C:\Users\Sharpy\Desktop\C\OPENHA~1.0\

I would do the following if I was you: Instead of trying to debug every error and clean your OH2 deployment:
Install a new, clean OH2.3 Stable release and copy over your configuration files (items, rules, etc)

Also: Try to use a static IP Address on the host running OH2.3. DHCP based could cause issues when the IP changes. I see older IP: 192.168.0.54 and newer IP: 192.168.0.76 ?

I have noticed this error myself when i was looking at a kodi machine that was offline it gave this error saying uninitialized:Network prefix length is not within bounds what does it mean?

No i have not changed any IP settings

Yes i have moved it around in the past and then realised the folder should be called openHAB

Thats strange that is not the IP assosiated with my machine it should be 192.168.0.58 and like i say i have not changed any network settings IP .76 is a Google Home Mini .54 is a amazon fire stick so none of these are hosting OH

My Setup was created by PaperUI so i dont have all the text files atm im in the process of moving them over

The machine hosting OH has never had its IP address changed its always been 192.168.0.58 and it runs 24/7 so there is no chance something else stealing the IP

But where have the errors come from if it was working fine only two days ago

UPDATED Trying too acces localhost:8080 or http://localhost:8080/start/index gives this error 500

but accessing http://localhost:8080/habpanel/index.html#/ loads habpanel and seems to function fine
also accessing http://localhost:8080/paperui/index.html#/control loads paperUI and also seems too function fine it’s just the start page that is effected

there is no network config in services.cfgcf

A fresh start seems too have solved the problem of not being able too access the main page and brought a couple of my things back online that were stuck off because of a network error

A few more things too do yet top get my setup back too where it was