Circular reference within 1x bindings

Hi,

yesterday I updated openhab to the latest snapshot via apt-get, installed the MAP transformation service and everything seems to work fine.
But sometimes while starting or on first access it throws errors like:

java.lang.IllegalStateException: ServiceLocatorImpl(__HK2_Generated_6,7,25432623) has been shut down

2016-08-24 01:29:19.046 [ERROR] [org.openhab.core.compat1x           ] - 
[org.openhab.core.compat1x.eventbridge(8)] Circular reference detected, getService returning null

2016-08-24 01:29:19.137 [WARN ] [org.openhab.core.compat1x           ] - FrameworkEvent WARNING - 
org.openhab.core.compat1x
org.osgi.framework.ServiceException: org.apache.felix.scr.impl.manager.SingleComponentManager.getService() 
returned a null service object
...

This errors come up after installing the MAP transformation service. If it happens all 1x bindings (like exec I think) stop working. Only a restart may solve this problem. Whats wrong? :slight_smile:

Thanks!

I’m seeing this as well on the mail action.

2016-08-23 17:30:43.553 [ERROR] [org.openhab.action.mail             ] - [org.openhab.action.mail.action(0)] Circular reference detected, getService returning null
2016-08-23 17:30:43.599 [WARN ] [org.openhab.action.mail             ] - FrameworkEvent WARNING - org.openhab.action.mail
org.osgi.framework.ServiceException: org.apache.felix.scr.impl.manager.SingleComponentManager.getService() returned a null service object
        at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.factoryGetService(ServiceFactoryUse.java:232)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.getService(ServiceFactoryUse.java:111)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.serviceregistry.ServiceConsumer$2.getService(ServiceConsumer.java:45)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:496)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]

@otbe FYI, I opened an issue for this here, in case you want to add anything to it.

I’m seeing this also, but in my case with the compat1x binding. I’ve also commented on the issue FWIW.

Observing the same issue using the Intertechno-binding in OH2.
The error is thrown in about 75% of startups.
When reported, the binding doesn’t reach the CUL-stick.

Please see here - I hope that the issue is solved. If not, please report!