Hi,
I still have issues with openHAB 2 & Twitter. I installed the action, configured everything, and everything works fine. But then, my smarthome simply stops twittering. The action ist up and running in bundle:list, but it does nothing.
So I try bundle:stop and bundle:start with the Twitter Action ID; now I get a stacktrace:
2017-07-19 12:33:53.443 [ERROR] [org.apache.felix.configadmin ] - [org.openhab.core.scriptengine.action.ActionService, org.osgi.service.cm.ManagedService, id=330, bundle=199/mvn:org.openhab.action/org.openhab.action.twitter/1.10.0]: Unexpected problem updating configuration org.openhab.twitter
java.lang.IllegalStateException: consumer key/secret pair already set.
at twitter4j.TwitterBaseImpl.setOAuthConsumer(TwitterBaseImpl.java:281)[199:org.openhab.action.twitter:1.10.0]
at org.openhab.action.twitter.internal.TwitterActionService.createClient(TwitterActionService.java:93)[199:org.openhab.action.twitter:1.10.0]
at org.openhab.action.twitter.internal.TwitterActionService.start(TwitterActionService.java:102)[199:org.openhab.action.twitter:1.10.0]
at org.openhab.action.twitter.internal.TwitterActionService.updated(TwitterActionService.java:274)[199:org.openhab.action.twitter:1.10.0]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updated(ManagedServiceTracker.java:189)[3:org.apache.felix.configadmin:1.8.12]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:152)[3:org.apache.felix.configadmin:1.8.12]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:85)[3:org.apache.felix.configadmin:1.8.12]
at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.provide(ConfigurationManager.java:1461)[3:org.apache.felix.configadmin:1.8.12]
at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1417)[3:org.apache.felix.configadmin:1.8.12]
at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141)[3:org.apache.felix.configadmin:1.8.12]
at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109)[3:org.apache.felix.configadmin:1.8.12]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_65]
Theres no way to get around this; even restarting openHAB 2 (or the whole system) does not help. The only workaround is:
- uninstall Twitter Action
- install Twitter Action
- => immediately, and without auth process or something, Twitter is working fine again (“awaiting your tweets”)
This is far away from stable. What can I do to debug this behaviour?
Thanks for your ideas,
Marianne