OH2 Build 1238: InstantiationException on org.eclipse.smarthome.core.library.types.QuantityType


I just upgraded to OH2 build 1238. I now get these in my logs every 5 seconds. There is no other detail around them, so I have no clue how to troubleshoot this:

2018-03-23 15:03:45.703 [WARN ] [home.core.internal.items.ItemUpdater] - InstantiationException on org.eclipse.smarthome.core.library.types.QuantityType

Any thoughts?

The code asserts this error should never happen:

        } catch (InstantiationException e) {
                logger.warn("InstantiationException on {}", e.getMessage()); // Should never happen
        } catch (IllegalAccessException e) {
                logger.warn("IllegalAccessException on {}", e.getMessage()); // Should never happen

Not sure why anyone would make such an assertion while trapping for the exception that can’t occur.

And I’m guessing the error comes from this line because the QuantityType doesn’t have a null constructor.

Thanks for the analysis, seems to be correct. Other types do have the default constructor with this message:

  • A nullary constructor is needed by
  • {@link org.eclipse.smarthome.core.internal.items.ItemUpdater#receiveUpdate})

Eclipse SmartHome issue: https://github.com/eclipse/smarthome/issues/5307

1 Like

Thanks for fixing it so quickly, @henning!

The latest distro build #1240 should contain the fix already.
@nolan_garrett Please test, thanks!

1 Like

This appears to be resolved! Thank you!