Unknown error when changing a number item

I getting this log:

21:37:50.012 [INFO ] [smarthome.event.ItemCommandEvent    ] - Item 'Sprit_Art' received command 0
21:37:50.037 [ERROR] [e.internal.WriterInterceptorExecutor] - MessageBodyWriter not found for media type=text/event-stream, type=class org.glassfish.jersey.media.sse.OutboundEvent, genericType=class org.glassfish.jersey.media.sse.OutboundEvent.
21:37:50.037 [INFO ] [marthome.event.ItemStateChangedEvent] - Sprit_Art changed from 2 to 0

when clicking on a switch-button that changes “Sprit_Art” to 0.
Sitemap setup like:

Frame label= “Auswahl” {
Switch item=Sprit_Art label= “Spritart:” mappings=[0=“E10”, 1=“E5”, 2=“Diesel”]
Switch item=Sprit_Chart_Period label= “Zeitraum” mappings=[0=“Tag”, 3=“Woche”, 6=“Monat”]
Switch item=Tankstelle label= “Tankstelle” mappings=[0=“1”, 9=“2”, 18=“3”]
}

It was working in OH2.0! What am I missing?

It looks like I’m getting the above Error all the time when using any button or switch on my BasicUI. On the UI the message “Offline: waiting for connection to become available” is displayed while I’m getting the error in the log.

:flushed:
After a couple of restarts the Error isn’t coming anymore!

I’m getting the same errors. For me it’s in the Basic UI when showing a subpage with a chart, pretty much like in the demo sitemap:

Switch icon="chart" item=Temperature_OG_Office_Period label="Chart Intervall" mappings=[0="Hour", 1="Day", 2="Week"]
                                        Chart item=chart_OG_Office service="mysql" period=h refresh=600  visibility=[Temperature_OG_Office_Period==0]
                                        Chart item=chart_OG_Office service="mysql" period=D refresh=3600 visibility=[Temperature_OG_Office_Period==1, Temperature_OG_Office_Period=="Uninitialized"]
                                        Chart item=chart_OG_Office service="mysql" period=W refresh=3600 visibility=[Temperature_OG_Office_Period==2]

Everything is displayed and even refreshed. But the message “Offline: waiting for connection to become available” is displayed every 20-30 seconds for up to 10 seconds and the following message is logged in openhab.log:

[ERROR] [e.internal.WriterInterceptorExecutor] - MessageBodyWriter not found for media type=text/event-stream, type=class org.glassfish.jersey.media.sse.OutboundEvent, genericType=class org.glassfish.jersey.media.sse.OutboundEvent.

So far, it hasn’t magically disappeared, even after a few restarts :thinking:

Have the same issue, I think trying to setup HabPanel could have caused this for me, no clue why!

MessageBodyWriter not found for media type=text/event-stream, type=class org.glassfish.jersey.media.sse.OutboundEvent, genericType=class org.glassfish.jersey.media.sse.OutboundEvent

I have the same error. Did anyone find the solution?

Same here and seems to be related in my case when using the browser in Eclipse Smarthome Designer whilst using the basic UI. Eclipse also reports: “Offline: waiting for connection to become available”. As soon as I stop using the basic UI in Eclipse the messages are gone.

Same problem here - anyone solved this error?

1 Like

Same here, running OH2.2 snapshot #1098

It seems like the error only occours when an item, which is visible in the sitemap, gets updated.
And it does not matter if the update is triggered by the user in the basicUI or by an update interval of things.
My example with the NTP binding:

DateTime CurrentDate   "Datum [%1$tA, %1$td.%1$tm.%1$tY %1$tH:%1$tM]" <calendar>  {channel="ntp:ntp:local:dateTime"}

sitemap:

Text item=CurrentDate

Log:

11:25:40.373 [INFO ] [smarthome.event.ItemStateChangedEvent] - CurrentDate changed from 2017-12-01T11:25:15.362+0100 to 2017-12-01T11:25:40.365+0100
11:25:40.379 [ERROR] [ge.internal.WriterInterceptorExecutor] - MessageBodyWriter not found for media type=text/event-stream, type=class org.glassfish.jersey.media.sse.OutboundEvent, genericType=class org.glassfish.jersey.media.sse.OutboundEvent.

11:26:05.386 [INFO ] [smarthome.event.ItemStateChangedEvent] - CurrentDate changed from 2017-12-01T11:25:40.365+0100 to 2017-12-01T11:26:05.372+0100
11:26:05.396 [ERROR] [ge.internal.WriterInterceptorExecutor] - MessageBodyWriter not found for media type=text/event-stream, type=class org.glassfish.jersey.media.sse.OutboundEvent, genericType=class org.glassfish.jersey.media.sse.OutboundEvent.

In BasicUI i always get the message “Offline: waiting for connection to become available” when the error occours.

After removing the sitemap element:

11:33:35.434 [INFO ] [smarthome.event.ItemStateChangedEvent] - CurrentDate changed from 2017-12-01T11:33:10.420+0100 to 2017-12-01T11:33:35.422+0100
11:34:00.488 [INFO ] [smarthome.event.ItemStateChangedEvent] - CurrentDate changed from 2017-12-01T11:33:35.422+0100 to 2017-12-01T11:34:00.479+0100
11:34:25.493 [INFO ] [smarthome.event.ItemStateChangedEvent] - CurrentDate changed from 2017-12-01T11:34:00.479+0100 to 2017-12-01T11:34:25.481+0100
11:34:50.492 [INFO ] [smarthome.event.ItemStateChangedEvent] - CurrentDate changed from 2017-12-01T11:34:25.481+0100 to 2017-12-01T11:34:50.484+0100

But as expected I still get the error, when other items which are still in the sitemap are getting updated.

d3rh3ld, excellent analysis and yes I’m having the same issue as you described.

Is there anything we can do to fix it? Or is is a known bug which probably can be solved in the future?

Thank you very much.

I did a apt-get purge and setup everything from scratch step by step.
Now the errors are gone

Hi Alex, did you mean that you didn’t use the automatic installation and you followed a manual installation step by step?

I downloaded raspbian from the web server and I did a fully automatic installation.

Thank you.

Hi, i also did a fresh automatic install using apt-get install openhab2

I did an upgrade using openhabian conf tool to openHAB 2.2.0-1 (Release Build) and I’m getting the same error messages since then - I wonder if there is there any solution available?

Kurt

Any news on this? Has someone already filed a bug report?

Same here, i have one item in sitemap only.

Also having the error - and yes it must be on Basic UI.
running 2.3.0-SNAPSHOT Build #1257

Has anyone filed an issue on GitHub?

Same error on my Snapshot 2.3.0