Rest/items does not work - faulty item definition?

Hi all,

unfortunately paper UI does not work as expected; I see always server error 500. I assume this is related to a problem in my item definitions - as a query to /rest/items just returns:


  "error": {
    "http-code": 500,
    "exception": {
      "class": "java.lang.NullPointerException"
    }
  }
}

my basic UI & rules do work fine - thus I only realized this once I’ve decided to play/have a look @ the UI support. Unfortunately I’ve quite many items & the logs do not say what’s causing the problem. Is there a way to find the cause for this; or could the error message/exception be changed to contain more information (e.g. what item it was not able to process)?

thanks & kind regards,
Patrik

Hi,

I had this problem too. Check out your item definitions. I had something like:

Dimmer Onkyo_LivingRoom_Volume			"Volume [JS(calculateVolume.js):%d]"

and it had to be changed to:

Dimmer Onkyo_LivingRoom_Volume			"Volume [JS(calculateVolume.js):%s]"

I don’t know if there is a simple way to quickly find the faulty one. I was able to pin point mine because it was using a Javascript transformation and as soon as I would uninstall the Javascript Transformation tranformation the problem also went away. So at first I thought it was a problem with the Javascript Transformation but it turned out that that wasn’t the case. The problem was with the item that used the transformation.

edit: now with the correct item.

I would not assume that. The two are completely independent and I have never seen a scenario where a problem with Items caused PaperUI to have problems, and I’ve seen some pretty mangled items files on this forum.

Do the logs say anything? I.e. are there errors printed in the logs at all?

What version of OH are you running, the 2.0 Release or a Snapshot?

Credit where credit is due. Here’s where I found my solution right on this forum :wink:

Hi @marcel_erkel,

thank you for your reply - 1st I had a different error; about %d. Then replaced all %d with %s. Since then I see the null exception. I wonder if an item state/string is null & that this causes problem(s). But how to find the item in question :-).

Let’s hope someone knows a trick to find the item in question; as said - the logs do not show anything special … “Things” work ok in paper; but item related stuff does not work; seems to affect all rest related operations in paper, habmin & habpanel.

with kind regards,
Patrik

Hi Rich (@rlkoshak),

thank you for your reply. I updated my system today to latest snapshot to see if the problem persists. I expect it to be related with null, or uninitialized items and format strings - as I’ve seen a similar problem already with %d where %s was expected. I use %s now - but wonder if an item is just not initialized or null - and this causes problems. As a visual check and designer to not see a problem with my item definitions.

The log show the rest request & the 500 answer - but no expected, error nor warning in between unfortunately (loglevel trace).

It is not limited to paper ui I found, but to get all items via rest in general - thus habpanel for example does not work either.

Would be nice if the exception would state the item - but that most likely requires changes in the code … As I have many items (started with OH1 two years ago …) it won’t be easy to find the one in question.

with kind regards,
Patrik

Hi,

if I search the whole logs for null I find entries like this:

2017-06-15 16:17:21.549 [ERROR] [.script.engine.ScriptExecutionThread] - Rule 'PlayURL': cannot invoke method public abstract java.lang.String org.eclipse.smarthome.core.items.Item.getLabel() on null

I wonder if this is related to my issue.

with kind regards,
Patrik

I’m still about 95% certain the problem is not caused by an individual Item but by a system problem. If an Item is uninitialized that wouldn’t be a problem. Items come into being uninitialized with a NULL state (not to be confused with null).

Please post the logs showing a REST request and the 500 result along with the lines above and below.

What happens when you log into the karaf console and run smarthome:items list?

Post any log entries that are [ERROR] and [WARN] along with the lines above and below. Not just the ones that reference null.

Hi Rich,

thank you for the reply :slight_smile:

=> the console shows a list of all my items; that looks ok.

I’ll try to create a log with that - is a little difficult, when I set a high log-level there’ll be a lot of noise from other stuff going on … do you have a tipp how to filter to the relevant entries? Else I’ll do my best to extract the relevant portion.

with kind regards,
Patrik

If you are on Linux with an apt-get install:

less /var/log/openhab2/openhab.log

Then type /ERROR to search for lines with ERROR in them. Use n to move to the next match and N to move to the previous match.

Repeat for WARN.

Copy and paste those lines and lines around those line here.

@rlkoshak

I’m on Windows … that’s what I see:

2017-06-16 00:28:22.668 [DEBUG] [org.eclipse.jetty.server.HttpChannel] - HttpChannelOverHttp@7895d3{r=3,c=false,a=IDLE,uri=/rest/items} messageComplete
2017-06-16 00:28:22.669 [DEBUG] [org.eclipse.jetty.server.HttpInput  ] - HttpInputOverHTTP@1fa42a3 EOF
2017-06-16 00:28:22.669 [DEBUG] [org.eclipse.jetty.server.HttpChannel] - HttpChannelOverHttp@7895d3{r=3,c=false,a=IDLE,uri=/rest/items} handle enter
2017-06-16 00:28:22.669 [DEBUG] [clipse.jetty.server.HttpChannelState] - HttpChannelState@165e98a{s=IDLE i=true a=null} handling IDLE
2017-06-16 00:28:22.670 [DEBUG] [org.eclipse.jetty.server.HttpChannel] - HttpChannelOverHttp@7895d3{r=3,c=false,a=DISPATCHED,uri=/rest/items} action REQUEST_DISPATCH
2017-06-16 00:28:22.670 [DEBUG] [org.eclipse.jetty.server.Server     ] - REQUEST GET /rest/items on HttpChannelOverHttp@7895d3{r=3,c=false,a=DISPATCHED,uri=/rest/items}
2017-06-16 00:28:22.671 [DEBUG] [ax.web.service.spi.model.ServerModel] - Matching [/rest/items]...
2017-06-16 00:28:22.671 [DEBUG] [ax.web.service.spi.model.ServerModel] - Path [/rest/items] matched to {pattern=/rest/.*,model=ServletModel{id=org.ops4j.pax.web.service.spi.model.ServletModel-16,name=org.ops4j.pax.web.service.spi.model.ServletModel-16,urlPatterns=[/rest/*],alias=/rest,servlet=com.eclipsesource.jaxrs.publisher.internal.ServletContainerBridge@1d4a273,initParams={},context=ContextModel{id=org.ops4j.pax.web.service.spi.model.ContextModel-15,name=,httpContext=DefaultHttpContext [bundle=com.eclipsesource.jaxrs.publisher_5.3.1.201602281253 [10], contextID=default],contextParams={},virtualHosts={},connectors={}}}}
2017-06-16 00:28:22.671 [DEBUG] [.jetty.server.handler.ContextHandler] - scope null||/rest/items @ HttpServiceContext{httpContext=DefaultHttpContext [bundle=com.eclipsesource.jaxrs.publisher_5.3.1.201602281253 [10], contextID=default]}
2017-06-16 00:28:22.672 [DEBUG] [.jetty.server.handler.ContextHandler] - context=||/rest/items @ HttpServiceContext{httpContext=DefaultHttpContext [bundle=com.eclipsesource.jaxrs.publisher_5.3.1.201602281253 [10], contextID=default]}
2017-06-16 00:28:22.672 [DEBUG] [org.eclipse.jetty.server.session    ] - sessionManager=org.ops4j.pax.web.service.jetty.internal.LateInvalidatingHashSessionManager@315a86
2017-06-16 00:28:22.672 [DEBUG] [org.eclipse.jetty.server.session    ] - session=null
2017-06-16 00:28:22.672 [DEBUG] [eclipse.jetty.servlet.ServletHandler] - servlet |/rest|/items -> org.ops4j.pax.web.service.spi.model.ServletModel-16@b9f03e5d==com.eclipsesource.jaxrs.publisher.internal.ServletContainerBridge,-1,true
2017-06-16 00:28:22.673 [DEBUG] [ce.jetty.internal.HttpServiceContext] - Handling request for [/rest/items] using http context [DefaultHttpContext [bundle=com.eclipsesource.jaxrs.publisher_5.3.1.201602281253 [10], contextID=default]]
2017-06-16 00:28:22.673 [DEBUG] [y.internal.HttpServiceServletHandler] - handling request org.ops4j.pax.web.service.jetty.internal.HttpServiceRequestWrapper@a0a33b, org.ops4j.pax.web.service.jetty.internal.HttpServiceResponseWrapper@189ea30
2017-06-16 00:28:22.673 [DEBUG] [eclipse.jetty.servlet.ServletHandler] - chain=null
2017-06-16 00:28:22.715 [DEBUG] [ersey.server.ServerRuntime$Responder] - Starting mapping of the exception.
org.glassfish.jersey.server.internal.process.MappableException: java.lang.NullPointerException
	at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.mapTargetToRuntimeEx(AbstractJavaResourceMethodDispatcher.java:179)[159:org.glassfish.jersey.core.jersey-server:2.22.2]
	at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.access$200(AbstractJavaResourceMethodDispatcher.java:72)[159:org.glassfish.jersey.core.jersey-server:2.22.2]
	at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:149)[159:org.glassfish.jersey.core.jersey-server:2.22.2]
	at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)[159:org.glassfish.jersey.core.jersey-server:2.22.2]
	at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160)[159:org.glassfish.jersey.core.jersey-server:2.22.2]
	at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)[159:org.glassfish.jersey.core.jersey-server:2.22.2]
	at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)[159:org.glassfish.jersey.core.jersey-server:2.22.2]
	at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)[159:org.glassfish.jersey.core.jersey-server:2.22.2]
	at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)[159:org.glassfish.jersey.core.jersey-server:2.22.2]
	at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326)[159:org.glassfish.jersey.core.jersey-server:2.22.2]
	at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)[158:org.glassfish.jersey.core.jersey-common:2.22.2]
	at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)[158:org.glassfish.jersey.core.jersey-common:2.22.2]
	at org.glassfish.jersey.internal.Errors.process(Errors.java:315)[158:org.glassfish.jersey.core.jersey-common:2.22.2]
	at org.glassfish.jersey.internal.Errors.process(Errors.java:297)[158:org.glassfish.jersey.core.jersey-common:2.22.2]
	at org.glassfish.jersey.internal.Errors.process(Errors.java:267)[158:org.glassfish.jersey.core.jersey-common:2.22.2]
	at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)[158:org.glassfish.jersey.core.jersey-common:2.22.2]
	at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)[159:org.glassfish.jersey.core.jersey-server:2.22.2]
	at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)[159:org.glassfish.jersey.core.jersey-server:2.22.2]
	at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473)[156:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
	at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427)[156:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388)[156:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341)[156:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228)[156:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
	at com.eclipsesource.jaxrs.publisher.internal.ServletContainerBridge.service(ServletContainerBridge.java:76)[10:com.eclipsesource.jaxrs.publisher:5.3.1.201602281253]
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)[82:org.eclipse.jetty.servlet:9.2.19.v20160908]
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)[82:org.eclipse.jetty.servlet:9.2.19.v20160908]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)[173:org.ops4j.pax.web.pax-web-jetty:4.3.0]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)[81:org.eclipse.jetty.server:9.2.19.v20160908]
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)[80:org.eclipse.jetty.security:9.2.19.v20160908]
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)[81:org.eclipse.jetty.server:9.2.19.v20160908]
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)[81:org.eclipse.jetty.server:9.2.19.v20160908]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:287)[173:org.ops4j.pax.web.pax-web-jetty:4.3.0]
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)[82:org.eclipse.jetty.servlet:9.2.19.v20160908]
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)[81:org.eclipse.jetty.server:9.2.19.v20160908]
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)[81:org.eclipse.jetty.server:9.2.19.v20160908]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)[81:org.eclipse.jetty.server:9.2.19.v20160908]
	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)[173:org.ops4j.pax.web.pax-web-jetty:4.3.0]
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)[81:org.eclipse.jetty.server:9.2.19.v20160908]
	at org.eclipse.jetty.server.Server.handle(Server.java:499)[81:org.eclipse.jetty.server:9.2.19.v20160908]
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)[81:org.eclipse.jetty.server:9.2.19.v20160908]
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)[81:org.eclipse.jetty.server:9.2.19.v20160908]
	at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)[72:org.eclipse.jetty.io:9.2.19.v20160908]
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)[84:org.eclipse.jetty.util:9.2.19.v20160908]
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)[84:org.eclipse.jetty.util:9.2.19.v20160908]
	at java.lang.Thread.run(Thread.java:745)[:1.8.0_101]
Caused by: java.lang.NullPointerException
	at org.eclipse.smarthome.io.rest.core.item.EnrichedItemDTOMapper.considerTransformation(EnrichedItemDTOMapper.java:96)
	at org.eclipse.smarthome.io.rest.core.item.EnrichedItemDTOMapper.map(EnrichedItemDTOMapper.java:47)
	at org.eclipse.smarthome.io.rest.core.item.EnrichedItemDTOMapper.map(EnrichedItemDTOMapper.java:41)
	at org.eclipse.smarthome.io.rest.core.item.ItemResource.getItemBeans(ItemResource.java:569)
	at org.eclipse.smarthome.io.rest.core.item.ItemResource.getItems(ItemResource.java:152)
	at sun.reflect.GeneratedMethodAccessor867.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_101]
	at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_101]
	at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)[159:org.glassfish.jersey.core.jersey-server:2.22.2]
	at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)[159:org.glassfish.jersey.core.jersey-server:2.22.2]
	... 42 more
2017-06-16 00:28:22.739 [DEBUG] [ersey.server.ServerRuntime$Responder] - Exception 'null' has been mapped by 'org.eclipse.smarthome.io.rest.JSONResponse$ExceptionMapper' to response 'Internal Server Error' (500:SERVER_ERROR).
2017-06-16 00:28:22.740 [DEBUG] [.eclipse.jetty.server.HttpConnection] - org.eclipse.jetty.server.HttpConnection$SendCallback@15a4304[PROCESSING][i=ResponseInfo{HTTP/1.1 500 Internal Server Error,115,false},cb=org.eclipse.jetty.server.HttpChannel$CommitCallback@a4d0c9] generate: NEED_HEADER (null,[p=0,l=115,c=8192,r=115],true)@START
2017-06-16 00:28:22.741 [DEBUG] [.eclipse.jetty.server.HttpConnection] - org.eclipse.jetty.server.HttpConnection$SendCallback@15a4304[PROCESSING][i=ResponseInfo{HTTP/1.1 500 Internal Server Error,115,false},cb=org.eclipse.jetty.server.HttpChannel$CommitCallback@a4d0c9] generate: FLUSH ([p=0,l=161,c=8192,r=161],[p=0,l=115,c=8192,r=115],true)@COMPLETING
2017-06-16 00:28:22.742 [DEBUG] [org.eclipse.jetty.io.ChannelEndPoint] - flushed 276 SelectChannelEndPoint@14f21ee{/192.168.0.10:53265<->8080,Open,in,out,-,W,81/30000,HttpConnection}{io=0,kio=0,kro=1}
2017-06-16 00:28:22.742 [DEBUG] [.eclipse.jetty.server.HttpConnection] - org.eclipse.jetty.server.HttpConnection$SendCallback@15a4304[PROCESSING][i=ResponseInfo{HTTP/1.1 500 Internal Server Error,115,false},cb=org.eclipse.jetty.server.HttpChannel$CommitCallback@a4d0c9] generate: DONE ([p=161,l=161,c=8192,r=0],[p=115,l=115,c=8192,r=0],true)@END
2017-06-16 00:28:22.743 [TRACE] [jersey.process.internal.RequestScope] - [DEBUG] Released scope instance Instance{id=d54d7d45-5a5e-48c7-9bdd-f7cbfc8dc331, referenceCounter=0, store size=0} on thread qtp14434062-19342 - /rest/items
2017-06-16 00:28:22.744 [DEBUG] [.jetty.server.handler.ContextHandler] - scope null||/rest/items @ o.e.j.s.h.ContextHandler@135bef5{/static,null,AVAILABLE}
2017-06-16 00:28:22.744 [DEBUG] [.jetty.server.handler.ContextHandler] - scope null||/rest/items @ HttpServiceContext{httpContext=DefaultHttpContext [bundle=org.openhab.core_2.1.0.201706122104 [167], contextID=default]}
2017-06-16 00:28:22.744 [DEBUG] [.jetty.server.handler.ContextHandler] - scope null||/rest/items @ HttpServiceContext{httpContext=DefaultHttpContext [bundle=org.eclipse.smarthome.core.audio_0.9.0.201706091022 [100], contextID=default]}
2017-06-16 00:28:22.745 [DEBUG] [.jetty.server.handler.ContextHandler] - scope null||/rest/items @ HttpServiceContext{httpContext=DefaultHttpContext [bundle=org.openhab.ui.dashboard_2.1.0.201706122104 [171], contextID=default]}
2017-06-16 00:28:22.745 [DEBUG] [.jetty.server.handler.ContextHandler] - scope null||/rest/items @ HttpServiceContext{httpContext=org.jupnp.transport.impl.osgi.DisableAuthenticationHttpContext@11754fe}
2017-06-16 00:28:22.745 [DEBUG] [.jetty.server.handler.ContextHandler] - scope null||/rest/items @ HttpServiceContext{httpContext=DefaultHttpContext [bundle=org.eclipse.smarthome.ui_0.9.0.201706091022 [137], contextID=default]}
2017-06-16 00:28:22.745 [DEBUG] [.jetty.server.handler.ContextHandler] - scope null||/rest/items @ HttpServiceContext{httpContext=DefaultHttpContext [bundle=org.eclipse.smarthome.ui.icon_0.9.0.201706091022 [138], contextID=default]}
2017-06-16 00:28:22.746 [DEBUG] [.jetty.server.handler.ContextHandler] - scope null||/rest/items @ HttpServiceContext{httpContext=DefaultHttpContext [bundle=org.openhab.io.rest.docs_2.1.0.201706122104 [215], contextID=default]}
2017-06-16 00:28:22.746 [DEBUG] [.jetty.server.handler.ContextHandler] - scope null||/rest/items @ HttpServiceContext{httpContext=DefaultHttpContext [bundle=org.eclipse.smarthome.ui.basic_0.9.0.201706091022 [196], contextID=default]}
2017-06-16 00:28:22.746 [DEBUG] [.jetty.server.handler.ContextHandler] - scope null||/rest/items @ HttpServiceContext{httpContext=org.openhab.io.net.http.SecureHttpContext@9a5381}
2017-06-16 00:28:22.746 [DEBUG] [.jetty.server.handler.ContextHandler] - scope null||/rest/items @ HttpServiceContext{httpContext=org.openhab.io.net.http.SecureHttpContext@3d2498}
2017-06-16 00:28:22.746 [DEBUG] [.jetty.server.handler.ContextHandler] - scope null||/rest/items @ HttpServiceContext{httpContext=DefaultHttpContext [bundle=org.eclipse.smarthome.ui.paper_0.9.0.201706091022 [197], contextID=default]}
2017-06-16 00:28:22.747 [DEBUG] [.jetty.server.handler.ContextHandler] - scope null||/rest/items @ HttpServiceContext{httpContext=DefaultHttpContext [bundle=org.openhab.ui.habpanel_2.1.0.201706122104 [223], contextID=default]}
2017-06-16 00:28:22.747 [DEBUG] [.jetty.server.handler.ContextHandler] - scope null||/rest/items @ HttpServiceContext{httpContext=DefaultHttpContext [bundle=org.openhab.ui.habmin_2.1.0.201706122104 [229], contextID=default]}
2017-06-16 00:28:22.747 [DEBUG] [org.eclipse.jetty.server.Server     ] - RESPONSE /rest/items  500 handled=true
2017-06-16 00:28:22.747 [DEBUG] [clipse.jetty.server.HttpChannelState] - HttpChannelState@165e98a{s=DISPATCHED i=true a=null} unhandle DISPATCHED
2017-06-16 00:28:22.748 [DEBUG] [org.eclipse.jetty.http.HttpParser   ] - reset HttpParser{s=END,0 of -1}
2017-06-16 00:28:22.748 [DEBUG] [org.eclipse.jetty.http.HttpParser   ] - END --> START
2017-06-16 00:28:22.748 [DEBUG] [org.eclipse.jetty.server.HttpChannel] - HttpChannelOverHttp@7895d3{r=3,c=false,a=IDLE,uri=} handle exit, result COMPLETE
2017-06-16 00:28:22.749 [DEBUG] [org.eclipse.jetty.io.ChannelEndPoint] - filled 0 SelectChannelEndPoint@14f21ee{/192.168.0.10:53265<->8080,Open,in,out,-,-,6/30000,HttpConnection}{io=0,kio=0,kro=1}
2017-06-16 00:28:22.749 [DEBUG] [org.eclipse.jetty.io.ChannelEndPoint] - filled 0 SelectChannelEndPoint@14f21ee{/192.168.0.10:53265<->8080,Open,in,out,-,-,7/30000,HttpConnection}{io=0,kio=0,kro=1}
2017-06-16 00:28:22.749 [DEBUG] [org.eclipse.jetty.http.HttpParser   ] - parseNext s=START HeapByteBuffer@474b7f[p=0,l=0,c=8192,r=0]={<<<>>>HTTP/1.1 200 OK\r\n...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}

It’s not even logged as WARN nor ERROR if I’m right …

thanks for the help & tipps!

with kind regards,
Patrik

Are there any errors on the log when oh starts?

I’m out of ideas. At this point I would file an issue on the Eclipse SmartHome repo making sure to reference this forum thread.

Issue #3676 opened.

thanks for all the help - a great community!
with kind regards,
Patrik

You should not replace all %d with %s. The type should match, see also:

http://docs.openhab.org/configuration/items.html#formatting

I would start by creating a backup of your items file(s) and then start removing all formatting from the labels except for those where you are 100% sure that they are correct. Then test if the error 500 has gone away. if not, continue removing them until it works again.
Once the error has gone away, then add a limited amount back in, test, no error? Add some more until you find a faulty one. Fix it, test, no error? Add some more until you find a faulty one. Fix it, test, no error? Rinse and repeat.

Problem was sovled by Patrick by clearing the tmp directory: