openhab-addons: [neeo] Can Not Add Brain - OH3
I’m running a fresh install of OH3 M2 and trying to migrate from OH2. I have no issues on OH2 with the neeo binding. When I try to add a brain on OH 3 I get the following error when trying to add a brain.
2020-11-08 18:50:13.177 [WARN ] [org.eclipse.jetty.server.HttpChannel] - /neeo/neeostatus/addbrain
java.lang.RuntimeException: java.lang.ClassNotFoundException
at javax.ws.rs.client.ClientBuilder.newBuilder(ClientBuilder.java:50) ~[?:?]
at javax.ws.rs.client.ClientBuilder.newClient(ClientBuilder.java:55) ~[?:?]
at org.openhab.io.neeo.internal.net.HttpRequest.<init>(HttpRequest.java:51) ~[?:?]
at org.openhab.io.neeo.internal.NeeoApi.getSystemInfo(NeeoApi.java:204) ~[?:?]
at org.openhab.io.neeo.internal.discovery.MdnsBrainDiscovery.addDiscovered(MdnsBrainDiscovery.java:302) ~[?:?]
at org.openhab.io.neeo.internal.discovery.MdnsBrainDiscovery.addDiscovered(MdnsBrainDiscovery.java:287) ~[?:?]
at org.openhab.io.neeo.NeeoService.addBrain(NeeoService.java:526) ~[?:?]
at org.openhab.io.neeo.internal.servletservices.BrainDashboardService.handlePost(BrainDashboardService.java:166) ~[?:?]
at org.openhab.io.neeo.internal.AbstractServlet.doPost(AbstractServlet.java:151) ~[?:?]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) ~[bundleFile:3.1.0]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) ~[bundleFile:3.1.0]
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:852) ~[bundleFile:9.4.20.v20190813]
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:544) ~[bundleFile:9.4.20.v20190813]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) ~[bundleFile:?]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) ~[bundleFile:9.4.20.v20190813]
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:536) ~[bundleFile:9.4.20.v20190813]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ~[bundleFile:9.4.20.v20190813]
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) ~[bundleFile:9.4.20.v20190813]
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1581) ~[bundleFile:9.4.20.v20190813]
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) ~[bundleFile:9.4.20.v20190813]
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1307) ~[bundleFile:9.4.20.v20190813]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:293) ~[bundleFile:?]
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) ~[bundleFile:9.4.20.v20190813]
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:482) ~[bundleFile:9.4.20.v20190813]
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1549) ~[bundleFile:9.4.20.v20190813]
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) ~[bundleFile:9.4.20.v20190813]
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1204) ~[bundleFile:9.4.20.v20190813]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) ~[bundleFile:9.4.20.v20190813]
at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) ~[bundleFile:?]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ~[bundleFile:9.4.20.v20190813]
at org.eclipse.jetty.server.Server.handle(Server.java:494) ~[bundleFile:9.4.20.v20190813]
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:374) [bundleFile:9.4.20.v20190813]
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:268) [bundleFile:9.4.20.v20190813]
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) [bundleFile:9.4.20.v20190813]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) [bundleFile:9.4.20.v20190813]
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117) [bundleFile:9.4.20.v20190813]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336) [bundleFile:9.4.20.v20190813]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313) [bundleFile:9.4.20.v20190813]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171) [bundleFile:9.4.20.v20190813]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129) [bundleFile:9.4.20.v20190813]
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:367) [bundleFile:9.4.20.v20190813]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:782) [bundleFile:9.4.20.v20190813]
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:918) [bundleFile:9.4.20.v20190813]
at java.lang.Thread.run(Thread.java:834) [?:?]
Caused by: java.lang.ClassNotFoundException
at javax.ws.rs.client.ClientFinder.newInstance(ClientFinder.java:120) ~[?:?]
at javax.ws.rs.client.ClientFinder.find(ClientFinder.java:96) ~[?:?]
at javax.ws.rs.client.ClientBuilder.newBuilder(ClientBuilder.java:44) ~[?:?]
... 43 more
Caused by: java.lang.InstantiationException
at jdk.internal.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:48) ~[?:?]
at java.lang.reflect.Constructor.newInstance(Constructor.java:490) ~[?:?]
at java.lang.Class.newInstance(Class.java:584) ~[?:?]
at javax.ws.rs.client.ClientFinder.newInstance(ClientFinder.java:116) ~[?:?]
at javax.ws.rs.client.ClientFinder.find(ClientFinder.java:96) ~[?:?]
at javax.ws.rs.client.ClientBuilder.newBuilder(ClientBuilder.java:44) ~[?:?]
... 43 more
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 26 (25 by maintainers)
I’ll give a hesitant yes that this worked. There were no errors on start. I can see both my Neeo brains in the web portal as well. I will need to update my Neeo remotes to use the OH3 install I have to confirm that the whole thing is working as expected.
openhab> bundle:list -s | grep neeo 262 x Active x 80 x 3.0.0.M2 x org.openhab.binding.neeo 263 x Active x 80 x 3.0.0.M2 x org.openhab.io.neeo openhab> update org.openhab.binding.neeo https://janessa.me/esh/org.openhab.binding.neeo-3.0.0-SNAPSHOT.jar openhab> update org.openhab.io.neeo https://janessa.me/esh/org.openhab.io.neeo-3.0.0-SNAPSHOT.jar
openhab> bundle:list -s | grep neeo 262 x Active x 80 x 3.0.0.202011121116 x org.openhab.binding.neeo 263 x Active x 80 x 3.0.0.202011121113 x org.openhab.io.neeo openhab>