Problem working with bindings?

Hello,

I’ve installed the latest openhab 2 “offline” files and am trying to get some basic bindings added to my system.

When I go into bindings and select a install a binding (such as gc100 ir or the “Onkyo Binding”), the circle just spins non stop.

Looking at the log files I see a lot of lines that say:

2016-05-02 10:29:00.259 [WARN ] [org.eclipse.jetty.server.HttpChannel] - /rest/events
javax.servlet.ServletException: javax.servlet.ServletException: java.lang.UnsupportedOperationException: Asynchronous processing not supported on Servlet 2.x container.
at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:88)[163:org.ops4j.pax.web.pax-web-jetty:4.2.4]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)[78:org.eclipse.jetty.server:9.2.14.v20151106]
at org.eclipse.jetty.server.Server.handle(Server.java:499)[78:org.eclipse.jetty.server:9.2.14.v20151106]
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)[78:org.eclipse.jetty.server:9.2.14.v20151106]
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)[78:org.eclipse.jetty.server:9.2.14.v20151106]
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)[70:org.eclipse.jetty.io:9.2.14.v20151106]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)[81:org.eclipse.jetty.util:9.2.14.v20151106]
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)[81:org.eclipse.jetty.util:9.2.14.v20151106]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_66]
Caused by: javax.servlet.ServletException: java.lang.UnsupportedOperationException: Asynchronous processing not supported on Servlet 2.x container.
at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:489)[148:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427)[148:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388)[148:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341)[148:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228)[148:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
at com.eclipsesource.jaxrs.publisher.internal.ServletContainerBridge.service(ServletContainerBridge.java:76)[12:com.eclipsesource.jaxrs.publisher:5.3.1.201602281253]
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)[79:org.eclipse.jetty.servlet:9.2.14.v20151106]
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)[79:org.eclipse.jetty.servlet:9.2.14.v20151106]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)[163:org.ops4j.pax.web.pax-web-jetty:4.2.4]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)[78:org.eclipse.jetty.server:9.2.14.v20151106]
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)[77:org.eclipse.jetty.security:9.2.14.v20151106]
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)[78:org.eclipse.jetty.server:9.2.14.v20151106]
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)[78:org.eclipse.jetty.server:9.2.14.v20151106]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:271)[163:org.ops4j.pax.web.pax-web-jetty:4.2.4]
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)[79:org.eclipse.jetty.servlet:9.2.14.v20151106]
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)[78:org.eclipse.jetty.server:9.2.14.v20151106]
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)[78:org.eclipse.jetty.server:9.2.14.v20151106]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)[78:org.eclipse.jetty.server:9.2.14.v20151106]
at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)[163:org.ops4j.pax.web.pax-web-jetty:4.2.4]

This is a bug that occurred on yesterdays build, but which is fixed on todays build again. Sorry for the inconvenience :open_mouth:

you shoulf also use the online build, easier to stay up to date…just my 2 cents. .

1 Like

I installed the online build, and “installed” the GC100ir and Onkyo bindings via the extensions screen.

But after I add the bindings, they don’t show up in the ‘configuration’ screen. I looked under things (thinking I had to manually add in the ‘thing’, but they didn’t show there either)…Am I doing something wrong or is this a bug?

Thanks!

I could be wrong, as I am fairly new to this as well, but I believe since those bindings are 1.x bindings; you have to put their .jars in the addons folder. I’m sure someone here will pipe in and verify that for me.

Kai

still having the above issue with online distro. just updated to the latest snapshot and all i get is spinning.

But after I add the bindings, they don’t show up in the ‘configuration’ screen. I looked under things (thinking I had to manually add in the ‘thing’, but they didn’t show there either)…Am I doing something wrong or is this a bug?

These are 1.x bindings, so they do not appear there unless somebody adds some meta-data to them (as described here).

I just tried again the offline distro #277 and was able to install those bindings just fine. Are you sure that you are using the latest snapshot?

Launching the openHAB runtime...

                          __  _____    ____      
  ____  ____  ___  ____  / / / /   |  / __ )     
 / __ \/ __ \/ _ \/ __ \/ /_/ / /| | / __  | 
/ /_/ / /_/ /  __/ / / / __  / ___ |/ /_/ /      
\____/ .___/\___/_/ /_/_/ /_/_/  |_/_____/     
    /_/                        2.0.0-SNAPSHOT

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown openHAB.

openhab> log:tail
22:08:35.453 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /ui
22:08:35.490 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at /start
22:08:35.561 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
22:08:35.571 [INFO ] [assic.internal.servlet.WebAppServlet] - Started Classic UI at /classicui/app
22:09:26.697 [INFO ] [smarthome.event.ExtensionEvent      ] - Extension 'binding-onkyo' has been installed.
22:09:34.990 [INFO ] [smarthome.event.ExtensionEvent      ] - Extension 'binding-gc100ir' has been installed.

im positive. just updated today. turns out, they do install, even thougj it keeps spinning. looked at the log. after a refresh, they appear installed. doing a complete reinatall now though, was on wheezy, updating to jessie.

If I wanted to use the binding without the “things” interface, how do I configure open hab? (Do I follow the docs on making an openhab.cfg file like in version 1?)

1 Like