Could not send response error 500

Downloaded latest distro, extracted it and run without any further changes. The openhab.log file gets flooded with the following error:

[WARN ] [eclipse.jetty.servlet.ServletHandler] -
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]
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_91]

Any ideas how to resolve this? the logs file get quite big after a while.

I cannot see such errors in my log.
@maggu2810 Could this be somehow related to https://github.com/eclipse/smarthome/pull/1436?

Will test to build the offline distro myself against the recent snapshots.
I have not seen any error on my custom distributions using this changes.

I have used the offline distro #276

[openHAB-offline #276](https://openhab.ci.cloudbees.com/job/openHAB-Distribution/276/artifact/distributions/openhab- offline/target/openhab-offline-2.0.0-SNAPSHOT.zip)

First start:

$ ./start.sh 
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
08:55:45.675 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-package-standard': Error restarting bundles
08:55:45.744 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-package-standard': Error restarting bundles
08:55:45.746 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-package-standard': Error restarting bundles

Second start (used gist, because message to long):

I will have a look at.

But as I am using the changes in my custom distribution, too.
It is no general failure

that bundles are also part of mine

200 | Active   |  80 | 2.4.0.b34             | org.glassfish.hk2.api
201 | Active   |  80 | 2.4.0.b34             | org.glassfish.hk2.external.aopalliance-repackaged
202 | Active   |  80 | 2.4.0.b34             | org.glassfish.hk2.external.javax.inject
203 | Active   |  80 | 2.4.0.b34             | org.glassfish.hk2.locator
204 | Active   |  80 | 1.0.1                 | org.glassfish.hk2.osgi-resource-locator
205 | Active   |  80 | 2.4.0.b34             | org.glassfish.hk2.utils
206 | Active   |  80 | 2.22.2                | org.glassfish.jersey.bundles.repackaged.jersey-guava
207 | Active   |  80 | 2.22.2                | org.glassfish.jersey.containers.jersey-container-servlet
208 | Active   |  80 | 2.22.2                | org.glassfish.jersey.containers.jersey-container-servlet-core
209 | Active   |  80 | 2.22.2                | org.glassfish.jersey.core.jersey-client
210 | Active   |  80 | 2.22.2                | org.glassfish.jersey.core.jersey-common
211 | Active   |  80 | 2.22.2                | org.glassfish.jersey.core.jersey-server
212 | Active   |  80 | 2.22.2                | org.glassfish.jersey.media.jersey-media-multipart
213 | Active   |  80 | 2.22.2                | org.glassfish.jersey.media.jersey-media-sse

@cvarelaruiz
To drop the error messages, you could try the execute the following commands on your Karaf concsole

bundle:start-level jersey-repackaged-guava 30
bundle:start-level jersey-container-servlet 30
bundle:start-level jersey-container-servlet-core 30
bundle:start-level jersey-core-client 30
bundle:start-level jersey-core-common 30
bundle:start-level jersey-core-server 30
bundle:start-level jersey-media-multipart 30
bundle:start-level jersey-media-sse 30

After that restart the openHAB distro and report here…

The error should (hopefully) solved by:

@Kai The error Failed installing ‘openhab-package-standard’: Error restarting bundles is another one. Will create a PR for that soon.

The web UI bundles itself does need the servlet-api and should therefore depend on that bundle or on the http feature itself.

@maggu2810 ran the commands in the Karaf console and after restarting the errors don’t show up again.

Thanks for the help !

Latest distro build already contains the changes and should be fine again!