[SOLVED] After upgrade to 2.4 stable I'm flooded with java.lang.IllegalStateException

Odd, I thought it was a binding:

penhab> bundle:list | grep -i google
 21 │ Active   │  80 │ 2.7.0.v20170129-0911   │ Gson: Google Json Library for Java
 22 │ Active   │  80 │ 18.0.0                 │ Guava: Google Core Libraries for Java
 23 │ Active   │  80 │ 3.0.0.v201312141243    │ Google Guice (No AOP)
268 │ Active   │  80 │    │ openHAB Google Calendar
280 │ Active   │  80 │     │ Google Cloud Text-to-Speech

That command shows the bundles. It’s a voice addon bundle. It’s in both the binding and voice addons list in your addons.cfg. Removing it from the bindings list will probably fix the load issues.

Gotcha! I completely missed that, :sleeping:, thanks for your persistence.

1 Like

Note that having an invalid binding in addons.cfg also may cause you to run out of memory eventually…

Edit: Note that I haven’t retested this with the latest Karaf upgrade.

I’ve created a PR so it will log on error whenever features fail to install:

Hopefully that makes it easier to troubleshoot these issues. :smiley:

For me it looks like that:

addons.cfg contains (stripped from comments):

ui =basic,paper,habpanel
persistence = rrd4j, mapdb
voice =voicerss

addons.config contained:

persistence="rrd4j,\ mapdb"

Immidiate candidates are mqtt1 binding and action!
Removed that file and restarted.

It looks as if the system is really “cooling down”! I’d call that solved!

I did do the update of my openhabian system by the automated update with openhabian-config, the fact that the mqtt binding and action remained in the system migth be true for installations!!!


Great that it also seems to solve your issue @opus!

I found that if you comment lines from addons.cfg the changes are not applied. What does work is setting the addons lists to an empty list or the other settings to the default value before commenting them. :neutral_face:

Thanks for helping!:+1::+1:
It took some time, “Der Junge musste an die Luft!” (sorry, does make sense only in german!)

Hi @wborn,

I am facing the same issue:

I do not have a addons.cfg file. My addons.config looks like this:


Could there be an issue in my file? Do I need to change sth.?

@Woogi, you don’t have legacy bindings enabled for mqtt1 and http1. You enable them in addons.cfg by adding the line:


@Woogi : fritzboxtr0641 as binding looks strange, to not say unexpected. This is probably not the right binding name.

With that configuration and the error logging that got added in 2.5.0-SNAPSHOT it indeed shows it can’t install the mqtt1 binding:

21:08:06.420 [ERROR] [.core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-mqtt1'
21:09:05.885 [ERROR] [.core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-mqtt1'

You can enable the legacy bindings in Paper UI as well.

See: MQTT Binding 2.4 - what changed? not working anymore.

That will add some additional lines to the addons.config file:


It’s OK:

openhab> feature:list|grep fritz
openhab-binding-avmfritz                    │ 2.5.0.SNAPSHOT   │          │ Uninstalled │ openhab-addons-2.5.0-SNAPSHOT        │ AVM FRITZ!Box Binding
openhab-binding-fritzbox1                   │ 1.14.0.SNAPSHOT  │          │ Uninstalled │ openhab-addons-2.5.0-SNAPSHOT        │ Fritzbox Binding
openhab-binding-fritzboxtr0641              │ 1.14.0.SNAPSHOT  │ x        │ Started     │ openhab-addons-2.5.0-SNAPSHOT        │ Fritzbox TR064 Binding

HI @wborn,

thank you for the detailed description, that helped me a lot to understand the issue as a non Linux guy :smiling_face_with_three_hearts:.

I enabled legacy bindings in Paper UI. Followed by the log

2019-01-05 21:26:48.600 [INFO ] [penhab.io.transport.mqtt.MqttService] - MQTT Service initialization completed.
2019-01-05 21:26:48.605 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection 'mymosquitto'

I guess the MQTT was the problem. By now, no warning message appeared.

Thanks as well to @scottk and @Lolodomo :pray:


1 Like

I am also suffering from IllegalExceptions (posted here where you can see my log file )

Following this thread has led me to thinking there is an issue with MQTT. I installed mqtt 2.4.0 via PaperUI and have been using that fine.

However following the above checking cpu usage etc I have enabled debugging and my logs are now full of:

2019-01-07 18:35:03.121 [DEBUG] [core.karaf.internal.FeatureInstaller] - Installed 'openhab-binding-mqtt1'
2019-01-07 18:35:51.559 [DEBUG] [core.karaf.internal.FeatureInstaller] - Running scheduled sync job
2019-01-07 18:36:00.364 [DEBUG] [core.karaf.internal.FeatureInstaller] - Installed 'openhab-binding-mqtt1'
2019-01-07 18:36:51.566 [DEBUG] [core.karaf.internal.FeatureInstaller] - Running scheduled sync job
2019-01-07 18:37:00.392 [DEBUG] [core.karaf.internal.FeatureInstaller] - Installed 'openhab-binding-mqtt1'

The above is popping up every minute. I’ve never attempted to install mqtt1, how do I stop it?

I have tried enabling legacy but still the same loop. I don’t want to remove mqtt 2.4 as I have a weather station integrated to a site map and it’s working fine.

Any help would be appreciated

Check your addons.cfg if any bindings are loaded through that file. Comment all lines if you are using PaperUI for installing and configuring your openHAB system.

If your addons.cfg is fine, clean the cache and tmp folders:

I think I may have fixed it

I enabled expert mode and legacy bindings. When I did this mqtt1 must have fully installed as I then had multiple mqtt connections trying to connect.

When I went to Addons > bindings in paperui it now listed mqtt v1 and v2 as installed. I uninstalled v1, restarted OH and so far the log file is looking a lot healthier.

I will post back if the problem returns.

What you saw is exactly the same.
I bet before you deleted mqtt1 it would have shown in the file

My guess, you had mqtt1 installed, you updated to oh2.4, by that mqtt1 got automatically installed, mqtt1 removed but the “desire” to install mqtt1 remained, hence the problems.

Not by me. This was a clean install of OH2.4 about 2 weeks ago and mqttv2 installed via paperui. I have never done anything with v1 so not sure where it came from

Another look at the logs and so far so good…

That does sound weird!