GPIO Binding in OH2

Hi everyone,

I’m using a OH1, Raspberry Pi with GPIO Binding 1.7 and everything works well. Just tried to install OH2 with GPIO binding 1.9.0 and I’m having the following error:

[ERROR] [org.apache.felix.configadmin ] - [org.osgi.service.cm.ManagedService, id=293, bundle=189/mvn:org.openhab.io/org.openhab.io.gpio/1.9.0]: Unexpected problem updating configuration org.openhab.gpio

java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
at org.openhab.io.gpio.linux.GPIOLinux.updated(GPIOLinux.java:126)[189:org.openhab.io.gpio:1.9.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:744)[:1.8.0]

I’m running OH2 as root in Raspbian. Anybody with the same problem or some idea what is happening?

Thank you!

roger

Please try this test JAR and report if it solved the problem. Thanks!

Merged the change, it will appear in openhab1-addons 1.9.1 and later releases.

I use binding-gpio - 1.10.0.SNAPSHOT, but the error still occurs:

    2017-03-28 21:36:48.199 [ERROR] [org.apache.felix.configadmin        ] - [org.osgi.service.cm.ManagedService, id=340, bundle=206/mvn:org.openhab.io/or$
java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
        at org.openhab.io.gpio.linux.GPIOLinux.updated(GPIOLinux.java:126)[206:org.openhab.io.gpio:1.10.0.201702080211]
        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.$
        at org.apache.felix.cm.impl.ConfigurationManager$UpdateConfiguration.run(ConfigurationManager.java:1772)[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_121]

any news on that issue? i am not able to download 1.10-snapshot from dropbox right now. Can You post it again ?