Error message when starting

Running OH2 #719 on Win 10. I got below warning message during the startup sequence. Anything I can do or shall I just ignore it? I have restarted OH several times and always get same warning.

2017-01-19 09:45:39.558 [WARN ] [eclipse.jetty.servlet.ServletHandler] -
javax.servlet.ServletException: A MultiException has 1 exceptions. They are:

  1. java.lang.IllegalStateException: ServiceLocatorImpl(__HK2_Generated_3,4,2115469) has been shut down

    at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:489)[153:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
    at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427)[153:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
    at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388)[153:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
    at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341)[153:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
    at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228)[153:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
    at com.eclipsesource.jaxrs.publisher.internal.ServletContainerBridge.service(ServletContainerBridge.java:76)[10: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.19.v20160908]
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)[79:org.eclipse.jetty.servlet:9.2.19.v20160908]
    at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)[170:org.ops4j.pax.web.pax-web-jetty:4.3.0]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)[78:org.eclipse.jetty.server:9.2.19.v20160908]
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)[77:org.eclipse.jetty.security:9.2.19.v20160908]
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)[78:org.eclipse.jetty.server:9.2.19.v20160908]
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)[78:org.eclipse.jetty.server:9.2.19.v20160908]
    at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:287)[170:org.ops4j.pax.web.pax-web-jetty:4.3.0]
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)[79:org.eclipse.jetty.servlet:9.2.19.v20160908]
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)[78:org.eclipse.jetty.server:9.2.19.v20160908]
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)[78:org.eclipse.jetty.server:9.2.19.v20160908]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)[78:org.eclipse.jetty.server:9.2.19.v20160908]
    at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)[170:org.ops4j.pax.web.pax-web-jetty:4.3.0]
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)[78:org.eclipse.jetty.server:9.2.19.v20160908]
    at org.eclipse.jetty.server.Server.handle(Server.java:499)[78:org.eclipse.jetty.server:9.2.19.v20160908]
    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)[78:org.eclipse.jetty.server:9.2.19.v20160908]
    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)[78:org.eclipse.jetty.server:9.2.19.v20160908]
    at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)[70:org.eclipse.jetty.io:9.2.19.v20160908]
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)[81:org.eclipse.jetty.util:9.2.19.v20160908]
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)[81:org.eclipse.jetty.util:9.2.19.v20160908]
    at java.lang.Thread.run(Thread.java:745)[:1.8.0_101]
    Caused by: A MultiException has 1 exceptions. They are:

  2. java.lang.IllegalStateException: ServiceLocatorImpl(__HK2_Generated_3,4,2115469) has been shut down

    at org.jvnet.hk2.internal.FactoryCreator.getFactoryHandle(FactoryCreator.java:106)[148:org.glassfish.hk2.locator:2.4.0.b34]
    at org.jvnet.hk2.internal.FactoryCreator.dispose(FactoryCreator.java:173)[148:org.glassfish.hk2.locator:2.4.0.b34]
    at org.jvnet.hk2.internal.SystemDescriptor.dispose(SystemDescriptor.java:526)[148:org.glassfish.hk2.locator:2.4.0.b34]
    at org.glassfish.jersey.process.internal.RequestScope$Instance.remove(RequestScope.java:532)[155:org.glassfish.jersey.core.jersey-common:2.22.2]
    at org.glassfish.jersey.process.internal.RequestScope$Instance.release(RequestScope.java:549)[155:org.glassfish.jersey.core.jersey-common:2.22.2]
    at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:319)[155:org.glassfish.jersey.core.jersey-common:2.22.2]
    at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)[156:org.glassfish.jersey.core.jersey-server:2.22.2]
    at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)[156:org.glassfish.jersey.core.jersey-server:2.22.2]
    at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473)[153:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
    … 26 more
    Caused by: java.lang.IllegalStateException: ServiceLocatorImpl(__HK2_Generated_3,4,2115469) has been shut down
    at org.jvnet.hk2.internal.ServiceLocatorImpl.checkState(ServiceLocatorImpl.java:2288)[148:org.glassfish.hk2.locator:2.4.0.b34]
    at org.jvnet.hk2.internal.ServiceLocatorImpl.getServiceHandleImpl(ServiceLocatorImpl.java:629)[148:org.glassfish.hk2.locator:2.4.0.b34]
    at org.jvnet.hk2.internal.ServiceLocatorImpl.getServiceHandle(ServiceLocatorImpl.java:622)[148:org.glassfish.hk2.locator:2.4.0.b34]
    at org.jvnet.hk2.internal.ServiceLocatorImpl.getServiceHandle(ServiceLocatorImpl.java:640)[148:org.glassfish.hk2.locator:2.4.0.b34]
    at org.jvnet.hk2.internal.FactoryCreator.getFactoryHandle(FactoryCreator.java:103)[148:org.glassfish.hk2.locator:2.4.0.b34]
    … 34 more

Does everything else work as expected? If so I’d say ignore for now but watch for something that doesn’t work. If you find something file an issue.

Most things works as expected BUT I have lot of trouble to get my rules running. Some rules only run for 2-5 hours and then stops. Of I restart the run again for some time and then stops. No error messages.

Hmmmm. Jetty errors (the web server that serves out the UIs) shouldn’t impact the rules from running, but the fact that you are seeing both indicates there is something weird going on. I’m afraid I have nothing to suggest.

I too got such errors when starting up. I removed every rule, but the errors still appear. Did you find a solution for this problem?

The errors are still there :frowning:

But I managed to get my rules running for several days now :slight_smile: I removed ALL rules first and then added one rule after another and restarted OH after every change. As I have more than 40 rules it have taken some time to find out that one of the last rules added back(of course) corrupted the rule engine.

Here’s my setup:

MySQL.persist file

Items {
Weather_Chart* : strategy = everyChange
}


.items file
Number Weather_Temp_Max “Todays Maximum [%.1f C]” (Weather_Chart)
Number Weather_Temp_Min “Todays Minimum [%.1f C]” (Weather_Chart)
Number Outdoor_Temperature “Outside temperature [%.1f C]” (Temperature_chart,Weather_Chart){channel=“rfxcom:temperaturehumidity:RFXtrx433:61697:temperature”}


.rule file
rule “Update max and min temperatures”

when
Item Outdoor_Temperature changed
then
Weather_Temp_Max.postUpdate(Outdoor_Temperature.maximumSince(now.withTimeAtStartOfDay).state)
Weather_Temp_Min.postUpdate(Outdoor_Temperature.minimumSince(now.withTimeAtStartOfDay).state)
end

I have the same errors. But on Rasbian (based on Debian Jessie). This is a new installation and I don’t have any rules, items, sitemap at all. (

Solved. Just reinstall all.

UPD. Nope… it doesn’t help.

I too see this warning all the time (there seems to be endless supply of this warning).
The system “works”, but it seems that a lot of resources are swallowed by this more or less constant stream of errors. thus sometimes the system “hangs” for some seconds when it supposed to turn on the light.
So do I really need to reinstall the whole deal again?

Kind regards
KASPER

I don’t know what to suggest to you. Two days ago my system suddenly crashed and even a simple rule do not working any more, in logs I saw many errors and warnings even for simple Items that work proper the day before it happens. I try delete all unused rules, and Items. And it’s don’t help. I even reinstall HO stable to beta… it doesn’t help too. I don’t know what to think about it, but the full system reinstall every week it’s to much for me.

Hi all,

Had the same Problem. For me it was related to the Yahoo Weather binding…

Don’t have the time right now to investigate, but removed my weather items and sitemap references, uninstalled the Yahoo Binding and now I have a nice clean Log :slight_smile:

UPD: sorry for responding to an old thread and BTW I am on 2.3.0 on Synology

Yahoo binding is fine. I tried to remove it.

This seemed to work for me: