Can't execute simple sh script using Exec Binding

Problem >> Log >> Device Setup

Problem:
Just started using OpenHab, trying to execute a simple shell script to turn on a light. I’ve read through many posts on the subject on this forum but none of the proposed solutions seem to solve my problem. It seems that there is some permissions issue, and so I’ve set everything I can to user openhab; this didn’t help. (helpful info: I installed via apt-get, everything’s in the /etc/openhab directory). Since then, I’ve even set the USER and GROUP users as root in /etc/default/openhab. I have also added the jar to the addon folder.

Log:
The log for var/log/openhab/openhab.log shows that I’m clearly clicking on something.
(I also have errors about an AbstractActiveService, but that’s my second priority at the moment.)

2016-05-08 21:01:49.071 [INFO ] [.o.b.exec.internal.ExecBinding] - executed commandLine ’ sudo sh /etc/openhab/configurations/scripts/scripts/1Hon.sh’
2016-05-08 21:01:49.841 [ERROR] [.service.AbstractActiveService] - Error while executing background thread HTTP Refresh Service
java.lang.ClassCastException: org.openhab.binding.http.internal.HttpGenericBindingProvider cannot be cast to org.openhab.binding.http.HttpBindingProvider
at org.openhab.binding.http.internal.HttpBinding.execute(HttpBinding.java:135) ~[na:na]
at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:156) ~[na:na]
at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:173) ~[na:na]

Setup:
Raspberry Pi B+ running Raspbian Wheezy connected over ssh (user pi).

As I’ve suggested on numerous posts. When the Exec binding dies not work, create a rule and use executeCommandLine(cmd, timeout in msec) which will return what your script printed out.

This is the ONLY way to see what your script printed out when it encounters an error.

Simply log the result and you will probably see almost immediately what the problem is.

However I will say that the exception doesn’t look too have anything to do with the Exec binding.

in addition it would help to show the item definition in such posts and not only the extract from the log file.