Giter VIP home page Giter VIP logo

openhab-core's Introduction

openHAB 1 Add-ons

Project Status: Inactive – The project has reached a stable, usable state but is no longer being actively developed; support/maintenance will be provided as time allows.

This repository contains add-ons that are using openHAB 1.x APIs. Earlier branches of this repo also contain the 1.x runtime and designer, which are no longer maintained.

Note that all information about openHAB itself, the IDE setup and the contribution processes can be found in the openhab-distro project, so please go there for any further details!

openhab-core's People

Contributors

andrewfg avatar ccutrer avatar clinique avatar cweitkamp avatar dalgwen avatar dependabot[bot] avatar florian-h05 avatar fwolter avatar ghys avatar givimad avatar hilbrand avatar holgerfriedrich avatar htreu avatar j-n-k avatar jimtng avatar jlaur avatar joerg1985 avatar jpg0 avatar kaikreuzer avatar lolodomo avatar maggu2810 avatar martinvw avatar mherwege avatar openhab-bot avatar pavog avatar pfink avatar silamon avatar ssalonen avatar triller-telekom avatar wborn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

openhab-core's Issues

IconServlet exception on wrong file format

Following up on https://community.openhab.org/t/exception-handling-and-logging/12509

A NullPointerException exception is raised when (1) svg is configured as icon file format, (2) file exists as png and (3) filename consists of "state".

Reproduce:

  • no file but sitemap contains icon="sunset" -> no icon in BasicUI (also no warning)
  • file sunset.png and sitemap contains icon="sunset" -> no icon in BasicUI, no exception
  • file sunset-test.png and sitemap contains icon="sunset-test" -> no icon in BasicUI and NullPointerException raised

Favicons were not available in Openhab2 (Classic UI)

The source of http://127.0.0.1:8080/classicui/app shows the following:

<link rel="apple-touch-icon" href="images/app-icon.png" />
<link rel="apple-touch-startup-image" href="images/splash-ipad-h.png" media="screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:landscape)" />
<link rel="apple-touch-startup-image" href="images/splash-ipad-v.png" media="screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:portrait)" />
<link rel="apple-touch-startup-image" href="images/splash-iphone.png" media="screen and (max-device-width: 320px)" />

but the items (favicon.ico,ipad/ios-icons) were not found


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Generated certificate with small key length

The generated certificate used when connecting to openHAB through HTTPS has a public key with a size of 256.
Isn't it a small lenght ?
As a comparison, openHAB 1.8 certificate uses a public key with a size of 2048.

compat1x creation of DateTimeType does not produce equivalent objects

1.x bindings that put DateTimeType objects on the event bus will receive updates that fail the equals test because the compat1x layer's use of toString on the ESH version to create the org.openhab.core.library.types.DateTimeType equivalent does not create objects that pass the equals test. This imprecise conversion is currently causing memory leaks and possibly other bugs under openHAB 2 for 1.x bindings.

Also, out of curiosity, why is this repo yours personally?

Create a home structure generator bundle

Basing on the discussion over generator-openhab thread I'm going to create a new UI accessible from the openHAB Dashboard (http://openhab:8080/start/index).

The tool will allow you to create items, sitemap and HABPanel dashboards easily by filling the form.

The reasons I'm making it a separate bundle (and not extending dashboard bundle):

  • I'm using a set of libraries that are not needed in dashboard (Vue.js, ascii-table and lodash)
  • I'm secretly working on a floorplan project for HABPanel that I'd like to incorporate in the Generator as well πŸ˜‰
  • The tool should be accessible at any time, thus we need a tile in the dashboard.
  • I need a proper (webpack based) build chain that'll allow me to code in ES6 and Vue ecosystem. (see: webpack-simple)
  • I don't want to host lib sources in the repo. Let the npm do it. PaperUI and HABPanel are a great example of dependency management. Bundle will use web/dist/ folder, whereas the dev environment will require npm install beforehand.

Questions

  • What's a good name for it? 'openHAB Generator' seems a little unclear. 'Home Designer' is too similar to 'Eclipse SmartHome Designer' πŸ˜†
  • What other features would you like to see there?

Let's try this Bountysource thingy :-) I promise to reinvest it in openHAB
Bountysource


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Basic UI behind SSL proxy uses REST URLs with plain http

Here I am again, using build 612 behind my nginx reverse proxy πŸ˜„

Page https://my-server/basicui/app?sitemap=sunlight tries to load

http://my-server/rest/sitemaps/events/aaca358d-e467-4af6-91b1-9939fec1adf6?sitemap=sunlight&pageid=sunlight

(notice the plain "http"), which in turn leads to "mixed content" warnings on the browser, preventing the UI from showing content.

Even if I allow the browser to load that "insecure content", on the next step I am warned that no ACAO-Header is set, so I cannot load any data into the just displayed page:

EventSource cannot load http://my-server/rest/sitemaps/events/55f58811-c39a-4125-b979-bb7848aec7d2?sitemap=sunlight&pageid=sunlight. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://my-server' is therefore not allowed access. The response had HTTP status code 404.

Basic UI is missing favicon

Using build 612, I am setting up a very small sitemap. The generated pages are missing their favicon:

$ curl -v http://127.0.0.1:8080/basicui/images/favicon.ico
* Hostname was NOT found in DNS cache
*   Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)
> GET /basicui/images/favicon.ico HTTP/1.1
> User-Agent: curl/7.38.0
> Host: 127.0.0.1:8080
> Accept: */*
>
< HTTP/1.1 404 Not Found

Error with compat layer with snapshot 582

I just tested snapshot 582 and I got errors with org.openhab.core.compat1x:

2016-11-12 16:41:35.596 [ERROR] [org.openhab.core.compat1x           ] - [org.openhab.library.tel(188)] Could not load implementation object class org.openhab.library.tel.internal.TelItemFactory
java.lang.ClassNotFoundException: org.openhab.library.tel.internal.TelItemFactory cannot be found by org.openhab.core.compat1x_2.0.0.201611121158
        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:432)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:345)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:337)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[:1.8.0_65]
        at org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:568)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.apache.felix.scr.impl.manager.AbstractComponentManager.initDependencyManagers(AbstractComponentManager.java:952)[33:org.apache.felix.scr:2.0.2]
        at org.apache.felix.scr.impl.manager.AbstractComponentManager.collectDependencies(AbstractComponentManager.java:980)[33:org.apache.felix.scr:2.0.2]
        at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:812)[33:org.apache.felix.scr:2.0.2]
        at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:774)[33:org.apache.felix.scr:2.0.2]
        at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse$1.run(ServiceFactoryUse.java:212)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_65]
        at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.factoryGetService(ServiceFactoryUse.java:210)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.getService(ServiceFactoryUse.java:111)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.serviceregistry.ServiceConsumer$2.getService(ServiceConsumer.java:45)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:496)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(ServiceRegistry.java:461)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.framework.BundleContextImpl.getService(BundleContextImpl.java:619)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at com.eclipsesource.jaxrs.publisher.internal.ResourceTracker.addingService(ResourceTracker.java:39)[11:com.eclipsesource.jaxrs.publisher:5.3.1.201602281253]
        at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)[org.osgi.core-6.0.0.jar:]
        at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)[org.osgi.core-6.0.0.jar:]
        at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)[org.osgi.core-6.0.0.jar:]
        at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)[org.osgi.core-6.0.0.jar:]
        at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:901)[org.osgi.core-6.0.0.jar:]
        at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:109)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:914)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:862)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:801)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:127)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:225)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:464)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:869)[33:org.apache.felix.scr:2.0.2]
        at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:857)[33:org.apache.felix.scr:2.0.2]
        at org.apache.felix.scr.impl.manager.RegistrationManager.changeRegistration(RegistrationManager.java:133)[33:org.apache.felix.scr:2.0.2]
        at org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractComponentManager.java:915)[33:org.apache.felix.scr:2.0.2]
        at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:715)[33:org.apache.felix.scr:2.0.2]
        at org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:399)[33:org.apache.felix.scr:2.0.2]
        at org.apache.felix.scr.impl.config.ConfigurableComponentHolder.enableComponents(ConfigurableComponentHolder.java:676)[33:org.apache.felix.scr:2.0.2]
        at org.apache.felix.scr.impl.BundleComponentActivator.initialEnable(BundleComponentActivator.java:339)[33:org.apache.felix.scr:2.0.2]
        at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:360)[33:org.apache.felix.scr:2.0.2]
        at org.apache.felix.scr.impl.Activator.access$000(Activator.java:53)[33:org.apache.felix.scr:2.0.2]
        at org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:260)[33:org.apache.felix.scr:2.0.2]
        at org.apache.felix.utils.extender.AbstractExtender.createExtension(AbstractExtender.java:259)[33:org.apache.felix.scr:2.0.2]
        at org.apache.felix.utils.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:232)[33:org.apache.felix.scr:2.0.2]
        at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:482)[org.osgi.core-6.0.0.jar:]
        at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:415)[org.osgi.core-6.0.0.jar:]
        at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232)[org.osgi.core-6.0.0.jar:]
        at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444)[org.osgi.core-6.0.0.jar:]
        at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:902)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:165)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:75)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:67)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:102)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.container.Module.publishEvent(Module.java:466)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.container.Module.start(Module.java:457)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
2016-11-12 16:41:35.627 [ERROR] [org.openhab.core.compat1x           ] - FrameworkEvent ERROR - org.openhab.core.compat1x
org.osgi.framework.ServiceException: Exception in org.apache.felix.scr.impl.manager.SingleComponentManager.getService()
        at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.factoryGetService(ServiceFactoryUse.java:222)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.getService(ServiceFactoryUse.java:111)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.serviceregistry.ServiceConsumer$2.getService(ServiceConsumer.java:45)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:496)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(ServiceRegistry.java:461)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.framework.BundleContextImpl.getService(BundleContextImpl.java:619)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at com.eclipsesource.jaxrs.publisher.internal.ResourceTracker.addingService(ResourceTracker.java:39)[11:com.eclipsesource.jaxrs.publisher:5.3.1.201602281253]
        at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)[org.osgi.core-6.0.0.jar:]
        at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)[org.osgi.core-6.0.0.jar:]
        at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)[org.osgi.core-6.0.0.jar:]
        at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)[org.osgi.core-6.0.0.jar:]
        at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:901)[org.osgi.core-6.0.0.jar:]
        at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:109)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:914)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:862)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:801)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:127)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
...
2016-11-12 16:41:35.654 [ERROR] [org.openhab.core.compat1x           ] - [org.openhab.library.tel(188)] Could not load implementation object class org.openhab.library.tel.internal.TelItemFactory
java.lang.ClassNotFoundException: org.openhab.library.tel.internal.TelItemFactory cannot be found by org.openhab.core.compat1x_2.0.0.201611121158
        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:432)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:345)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:337)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[:1.8.0_65]
        at org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:568)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.apache.felix.scr.impl.manager.AbstractComponentManager.initDependencyManagers(AbstractComponentManager.java:952)[33:org.apache.felix.scr:2.0.2]
        at org.apache.felix.scr.impl.manager.AbstractComponentManager.collectDependencies(AbstractComponentManager.java:980)[33:org.apache.felix.scr:2.0.2]
        at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:812)[33:org.apache.felix.scr:2.0.2]
        at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:774)[33:org.apache.felix.scr:2.0.2]
        at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse$1.run(ServiceFactoryUse.java:212)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_65]
        at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.factoryGetService(ServiceFactoryUse.java:210)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.getService(ServiceFactoryUse.java:111)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.serviceregistry.ServiceConsumer$2.getService(ServiceConsumer.java:45)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:496)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(ServiceRegistry.java:461)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
...

I switch back to snapshot 554.

Basic UI: Available Sitemaps prompt

From time to time you can see newcomers struggling with the basic UI and the sitemap shown there. Two pieces of knowledge are missing in this case. 1) the sitemap shown by default is "_default", the sitemap automatically generated from things, and 2) another sitemap (user-created) needs to be explicitly set (can not be selected) under Settings or browsed directly by modifying the URL.

Reasons for this misconceptions are, in my opinion, the fact, that "_default" is not marked as such (the user doesn't understand why "his" sitemap doesn't show what he defined) and a user-defined sitemap is not offered as an option, if available.

The solution already exists. If the Basic UI Default Sitemap setting is set to "" rather than "_default", you are presented with:

Fix

One approach for improvement I can think of is:

  • Basic UI should be shipped with the Default Sitemap setting ""
  • the shown list of "Available Sitemaps" needs to contain the "_default" sitemap (with a descriptive name).
  • In case there is no user-defined sitemap, a note should be shown: "Build your own sitemap now! Have a look at http://docs.openhab.org/configuration/sitemaps.html for more details."

This approach is only one idea, what do you think?

Charts of ON/OFF or OPEN/CLOSE (binary) events do not plot

I have been struggling with charts since moving from OH1 to OH2 a few weeks ago. Some of my charts display, some do not. It seems that all of the ones that do not are monitoring ON/OFF events like motion sensors and such.

I am using rrd4j persistence, and the items I chart are stored everyMinute. This worked just fine in OH1.

Here is an example chart sitemap entry that does not work (ie displays a blank chart):

Chart item=basementLeakDetector period=D refresh=6000 service="rrd4j"

This is tracking a contact closure OPEN/CLOSE event.

Here is the item:

Contact  basementLeakDetector        "Leak Detector [MAP(en.map):%s]"   <faucet>          (gB, Sensors, Leak, gCharts)   {insteonplm="36.B4.0C:F00.00.0A#contact"}

But I have other items that are Switches, and none of them display. I have to conclude that either the items are not stored in the rrd4j database, or they are not charted properly. It used to be that ON/OFF items were stored as 0 and 1 items in the database (as rrd4j can only store numbers). The log seems to indicate that this is the case:

2016-11-23 14:42:04.072 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'basementLeakDetector' with state 'OPEN' in rrd4j database (again)
2016-11-23 14:42:04.072 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'basementLeakDetector' with state '1' in rrd4j database

And the database file timestamps are updated - so it would seem to be stored. Also my switch states are persisted over restarts. So it must be a charting issue.

Checking the charting, if I enter:

http://ip:port/chart?items=basementLeakDetector&period=W

I get a blank chart,
image

but if I enter:

http://ip:port/rrdchart.png?items=basementLeakDetector&period=W

Then I get a chart displayed as expected.
image

Anything that is a number will plot with the 'chart" http call, but it requires a call to rrdchart.png to chart switch items. "chart" will not plot them.

I have to conclude that the charting of ON/OFF items is broken in the latest build of OH2 (and has been for a while) - I upgraded to the nightly build last night. I can work around it, but it would be easier if it was fixed.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Introduce URL-path-prefix (hard-coded at least)

As already mentioned in

https://community.openhab.org/t/using-nginx-reverse-proxy-authentication-and-https/

and

https://community.openhab.org/t/apache2-reverse-proxy-with-ldap-authentication-https-and-url-path-prefix/

it is often desired to run OH within the scope of an URL-path-prefix, i.e. not in the web-server's root (/).

It would be great, if the URL-path-prefix was configurable, but if this is very hard to achieve, at least a static, hard-coded path-prefix would be better than the current situation. Currently, OH runs in the web-server's root.

Rewriting many individual paths is very error-prone, likely never complete, and bloats the configuration. If there was at least a hard-coded path-prefix (e.g. "openhab/"), then one single SUBSTITUTE-rule would be sufficient to reliably remap everything.

People who want to use the root, e.g. to conveniently go to just https://host/ (instead of https://host/openhab/) could still do this easily by configuring redirects. These redirects would be necessary only for one or at most a hand full of entry-points. Thus, a single hard-coded path-prefix would IMHO be clearly preferable over the current situation.

Which file to use for EXTRA_JAVA_OPTS inside the userdata directory instead of the runtime directory

I run a Synology with DSM6.1 and now with OH2 (#820)

After some struggle i found out that installing OH2 has some issues but installing bindings with USB sticks is very troublesome.

In the Linux manual page there is stated that adding the EXTRA_JAVA_OPTS variable to the file /etc/default/openhab2 file open up these post to OH2 but this is not true for Synology DSM6.1.

The only position which I can find to place it is OH2/runtime/bin/setenv and than adding the names that you're want to use there the SIMLINK ( is used and the directed port need to be specified).
But this not the best spot because this file is in the runtime directory.

#
# set JVM options
#
ARCH=uname -m
EXTRA_JAVA_OPTS_COMMON="-Djava.awt.headless=true"
EXTRA_JAVA_OPTS_ARCH=""
case "$ARCH" in
arm) ;;
aarch) ;;
*) EXTRA_JAVA_OPTS_ARCH="-XX:+UseG1GC" ;;
esac
export EXTRA_JAVA_OPTS="${EXTRA_JAVA_OPTS_COMMON} ${EXTRA_JAVA_OPTS_ARCH} ${EXTRA_JAVA_OPTS} -Dgnu.io.rxtx.SerialPorts=/dev/P1EnergieMeter:/dev/ttyUSB0:/dev/ttyUSB1"

Is there a file in the userdata where I can define the EXTRA_JAVA_OPTS? I know that has been some talk about in the past but I can't find any solution for it for inside the userdata directory.

Key (Legend) for Charts is too large

The key for charts used to be much smaller in OH1, now it is huge, and covers about half the chart.

Here is an extreme example:
image

Most charts don't have this many entries, but on all of them the key is very large WRT to the chart itself. It was smaller in OH1.

Here are some more examples:
image
image


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Update nrjavaserial

OH currently uses nrjavaserial-3.9.3 in the serial transport. I've had issues getting serial communications to work properly (in particular with the UPB binding) and these issues go away with the latest version (3.12.1).

Is there any particular issues or concerns with updating this library?

inconsistent logging of "binding installed"

When installing a binding via addon.cfg, there is no log event in openhab.log to show that the binding is installed.
When removing the addon the same way, we get the following message.

2017-02-14 21:55:58.404 [ExtensionEvent            ] - Extension 'binding-knx1' has been uninstalled.

There seems to be correct messages in events.log.

So I think we got one of the following issues.

  • the "installed" message is missing in openhab.log.
  • the "uninstalled" message in openhab.log is redundand and can be removed
  • the messages should ony occur in openhab.log.

There should be always the same message regadles of the way the addon was installed (addons.cfg, PaperUI, karaf, ..).

see discussion here: https://community.openhab.org/t/i-miss-installed-openhab-binding-in-openhab-log/22985/4


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Rest API - unlink item - doesn't work in things API

Ok. I try to unlink item from thing by this request:
curl -X DELETE --header "Content-Type: application/json" --header "Accept: application/json" -d "switch_binary" "http://address:8080/rest/things/zwave%3Adevice%3AUZBStick%3Anode11/channels/switch_binary/link"

No result.

bug_case

And no any exceptions in openhab log.

jetty-deps repository has moved?

Hi,

I'm trying to bring up a new openhab development environment on my Debian machine, using the Eclipse installer method as per the openhab-distro ide.md guide. I haven't had a lot of luck yet.

In openhab-core, running 'mvn clean install' in master branch commit 5d92d16 fails for me with these lines:

[INFO] Adding repository https://github.com/openhab/openhab.repo/raw/master/jetty-deps
[ERROR] Failed to resolve target definition /home/gus/dev/openhab2/git/openhab-core/targetplatform/openhab.target: Failed to load p2 metadata repository from location https://github.com/openhab/openhab.repo/raw/master/jetty-deps: No repository found at https://github.com/openhab/openhab.repo/raw/master/jetty-deps. -> [Help 1]

The repository is referenced from https://github.com/kaikreuzer/openhab-core/blob/master/targetplatform/openhab.target#L115

The referenced repo seems to have existed recently but no longer exists now. If I comment that <location> out then I get errors for missing dependencies of jetty, which seems to follow from the name!

I've tried to find a new repo/URL that jetty-deps might have been moved to, but I'm not having any luck yet.

Apologies in advance if I'm just doing things totally wrong, I'm not very familiar with openhab's codebase yet!

Un-synced code changes

@kaikreuzer, I noticed in compat1x code today that some of the changes in this PR from a few months ago don't appear in the compat1x layer. I don't know how much of the code should be represented here or in ESH.

Channel configuration issues and enhancement request

In my thing-type.xml I created the following channel:

    <channel-type id="switch-channel">
        <item-type>Switch</item-type>
        <label>Switch</label>
        <description>This is a switch</description>
        <category>switch</category>
        <config-description>
            <parameter-group name="x">
                <context>contact</context>
            </parameter-group>
            <parameter name="y" type="text"></parameter>
            <parameter name="smartthings-type" type="text" pattern="switch"></parameter>
        </config-description>
    </channel-type>

When I access the channel in the Eclipse debugger I see:

  1. Configuration.properties is null even though a was provided
  2. Label and description are both null even though they are provided in the xml
  3. In the debugger I see there is a properties Map but the xml schema does not allow properties data to be provided.

Having the ability to add properties would be very helpful in my use case. I am developing a binding for the smartthings hub. In the Smartthings world every device (called a capability) supports a number of β€œattributes” which describe the state of the device. This maps perfectly into OpenHAB’s Things and Channels. But, I need a way to associate an OpenHAB channel with a Smartthings attribute. The properties would be a logical place to do this. I could do it with the config-description but it is not as clean. As a work around I am using the Thing channel id. Works for me but if another developer was to work on the binding that could cause confusion.

Basic UI: Refreshing item/sitemap files breaks stream

When refreshing item or sitemap files, Basic UI stops updating values, toggling visibilities etc.
Changes can only be seen after refreshing the page. Restarting Openhab resolves the issue.

Expected behaviour

Basic UI should continue working after updating item or sitemap files.

Current behaviour

After changing item and/or sitemap files, Basic UI stops updating values/toggling visibilities etc. Other UIs continue working as usual. Values can still be set using Basic UI. Selection elements, however, don't update after changing the value (the value is still set correctly, as shown by all other UIs). Visibility settings based on those values won't be changed. Upon reloading the page, all values are updated and shown correctly. Hence I suspect the stream to break after updating configuration files.

Possible solution

Restarting openHAB resolves the issue.

Steps to reproduce

  1. Change some selection elements to see if the new value is correctly shown afterwards and if visibility conditions based on these values are correctly toggled
  2. Change any item config file or the sitemap config file itself
  3. Repeat 1. -> value won't be set correctly, visibility won't be toggled
  4. Restart openHAB
  5. Repeat 1. -> all is working as expected

My environment

openHAB 2.2.0 Build #980 (apt-based installation) on an Odroid C1 with Ubuntu 16.04.02

nrjavaserial -> /dev/ttyUSB0 does not exist

Hi fairly new to OH2 but getting up to speed the last couple a weeks.
I'm running OH2 on a Synology NAS (x86) with DSM 6.1 and i'm using the syno_spk pack installer. I got the latest version to work and updated my OH2 to build 814.
This al works fine but when trying to use the DSMR1 Binding I got the nvjavaserial exception NoSuchPortException.
After some reaching I found the DSMR2 Binding hoping this would solve it but no .. this needed a nrjavaserial. I found the original en tested it .. It did not work.
Today I found issue #101 and #111 where 3.12.0-OH and 3.12.1-OH where posted. I put them in the addons dit beside the "org.openhab.binding.dsmr-2.1.0-SNAPSHOT" and got the same error.

2017-03-01 22:39:36.175 [INFO ] [org.apache.felix.fileinstall ] - Installing bundle com.neuronrobotics.nrjavaserial / 3.12.1.OH
2017-03-01 22:39:36.249 [DEBUG] [com.neuronrobotics.nrjavaserial ] - BundleEvent INSTALLED - com.neuronrobotics.nrjavaserial
2017-03-01 22:39:36.303 [DEBUG] [com.neuronrobotics.nrjavaserial ] - BundleEvent RESOLVED - com.neuronrobotics.nrjavaserial
2017-03-01 22:39:36.308 [DEBUG] [com.neuronrobotics.nrjavaserial ] - BundleEvent STARTING - com.neuronrobotics.nrjavaserial
2017-03-01 22:39:36.311 [DEBUG] [com.neuronrobotics.nrjavaserial ] - BundleEvent STARTED - com.neuronrobotics.nrjavaserial
2017-03-01 22:39:36.313 [INFO ] [org.apache.felix.fileinstall ] - Started bundle: file:/volume1/public/openHAB2/addons/nrjavaserial-3.12.1-OH.jar
2017-03-01 22:39:39.327 [INFO ] [org.apache.felix.fileinstall ] - Installing bundle org.openhab.binding.dsmr;singleton:=true / 2.1.0.201702282146
2017-03-01 22:39:39.665 [INFO ] [org.apache.felix.fileinstall ] - Started bundle: file:/volume1/public/openHAB2/addons/org.openhab.binding.dsmr-2.1.0-SNAPSHOT.jar
2017-03-01 22:39:39.924 [ERROR] [inding.dsmr.internal.device.DSMRPort] - Port /dev/ttyUSB0 does not exists
gnu.io.NoSuchPortException
at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:273)[237:com.neuronrobotics.nrjavaserial:3.12.1.OH]
at org.openhab.binding.dsmr.internal.device.DSMRPort.open(DSMRPort.java:176)[238:org.openhab.binding.dsmr:2.1.0.201702282146]
at org.openhab.binding.dsmr.internal.device.DSMRDevice.handleInitializeDSMRDevice(DSMRDevice.java:353)[238:org.openhab.binding.dsmr:2.1.0.201702282146]
at org.openhab.binding.dsmr.internal.device.DSMRDevice.handleDeviceState(DSMRDevice.java:228)[238:org.openhab.binding.dsmr:2.1.0.201702282146]
at org.openhab.binding.dsmr.internal.device.DSMRDevice.access$1(DSMRDevice.java:215)[238:org.openhab.binding.dsmr:2.1.0.201702282146]
at org.openhab.binding.dsmr.internal.device.DSMRDevice$1.run(DSMRDevice.java:193)[238:org.openhab.binding.dsmr:2.1.0.201702282146]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_121]
at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_121]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_121]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_121]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
2017-03-01 22:39:39.931 [WARN ] [nding.dsmr.handler.DSMRBridgeHandler] - Received unknown state CONFIGURATION_PROBLEM

I'll also posted on the OH forum post

I checked with dmesg if the driver was faulty and it was and fixed that.
I set permissons for /dev/ttyUSB0 to 666 and added the -Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0 the the runtime/bin/setenv file
And I added the openhad2 users to the root group hope that this would solve some.
Every time I restarted OH2 but still got the same problem over and over.

I'm now getting out of ideas what todo or to check. As I said my linux knowledge is not that good as it was 20years ago.

When MCP23017 binding is installed on Openhabian 1.3 (with OH 2.1), Openhab cannot start.

When MCP23017 binding is installed on Openhaian 1.3 (with OH 2.1), OH cannot start.

Expected Behavior

OH shoud start when I put MCP23017 binding jar in /usr/share/openhab2/addons.

Current Behavior

I've tried to install MCP23017 binding (from https://openhab.ci.cloudbees.com/job/openHAB1-Addons/lastSuccessfulBuild/artifact/bundles/binding/org.openhab.binding.mcp23017/target/ ).
but when I copied this to adds directory there are problem with starting Openhab.
In the openhablog there are following information. "Started dashboard.." is displayed every 10seconds (in a loop):

2017-07-02 12:48:31.703 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at http://192.168.1.10:8080
2017-07-02 12:48:31.720 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at https://192.168.1.10:8443
2017-07-02 12:48:46.125 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'test.items'
2017-07-02 12:48:54.990 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'test.rules'
2017-07-02 12:49:44.305 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at http://192.168.1.10:8080
2017-07-02 12:49:44.322 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at https://192.168.1.10:8443

It happens when system start but it also happen when OH running and I put MCP file on runnnign system. This binding works on OH 2.0 without problem.

Possible Solution

Only uninstalling MCP binding helps.

Steps to Reproduce (for bugs)

Problem is easy to reproduce and happen every time.

  1. Install Openhabian 1.3 from SD image
  2. Copy MCP binding file to /usr/share/openhab2/addons ( download binding from https://openhab.ci.cloudbees.com/job/openHAB1-Addons/lastSuccessfulBuild/artifact/bundles/binding/org.openhab.binding.mcp23017/target/3 I've used org.openhab.binding.mcp23017-1.11.0-SNAPSHOT.jar but 1.10 also does not work)
  3. sudo reboot
  4. After reboot you should see loop in openhab.log log messages

Your Environment

Raspberry 2, Openhabian 1.3, with Razberry hut.
Test was performed on two Rasberry Pi 2 and on both problem exists, simply it is not hardware issue.

Copy of this bug is here openhab/openhab1-addons#5237 (comment) but as https://github.com/9037568 suggested it is rather bug of OH.

ignore temporary config files

I am using mcedit to create and modify my configuration files via console.
This editor creates temorary files.
like .#addons.cfg for addons.cfg.

This creates an error in the log.

2017-01-24 21:07:34.363 [WARN ] [ore.service.AbstractWatchQueueReader] - Could not process config file '.#addons.cfg': java.io.FileNotFoundException: /etc/openhab2/services/.#addons.cfg (Datei oder Verzeichnis nicht gefunden)

I would suggest to create some exceptions to the config file detection.

I guess other editors like vim and nano might have similar problems.

Make group items undef, if a member item gets undef

Hi,
I see following misbehaviour in the events.log. When a member of a group changes to undef, the state of the group item changes as to OFF:
Group:Switch:OR(ON, OFF) gFenster "Offene Fenster [(%d)]" <contact> // ON: offen, OFF: geschlossenes Fenster

2017-04-19 23:09:13.937 [ItemStateChangedEvent     ] - FensterGZ changed from ON to UNDEF
2017-04-19 23:09:13.938 [GroupItemStateChangedEvent] - gFenster changed from ON to OFF through FensterGZ

The group item should count the opened windows. But in case of an UNDEF window, which unfortunateley happens because of my onewire installation, the group item switches to OFF. This behaviour is in my opinion not correct. The group item should also be UNDEF, as long not all members are defined.

If you agree, I would appreciate a correction of this behaviour. Some rules work not correct because of this :-(

Thanks.

nrjavaserial injects NULL char (hex 00) into character stream

On a linux (Ubuntu 17.04) instance the nrjavaserial seems to be injecting hex 00 chars into the byte stream when reading out a serial port.

This behaviour is quite "persistent", e.g. happening with each read cycle. When connecting to the serial port on the OS itself (e.g. via screen or picocom) all communication with the serially attached device is correct. When connecting the device to a Mac OS X machine running the same java code, then all communication is correct.

The java code is writing to the serial port using:

            if (logger.isTraceEnabled()) {
                logger.trace("writeString : '{}'", msg.getBytes());
            }
            outputStream.write(msg.getBytes());
            outputStream.flush();

The java code is reading from the serial port using a loop containing:

                    if ((len = inputStream.read(tmpData)) > -1) {
                        foundStart = false;
                        if (logger.isTraceEnabled()) {
                            StringBuilder sb = new StringBuilder();
                            for (int i = 0; i < len; i++) {
                                sb.append(String.format("%02X", tmpData[i]));
                                sb.append(" ");
                            }
                            logger.trace("Read {} bytes : {}", len, sb.toString());
                        }

The some corresponding logs are as follows:

2017-05-05 16:27:47.612 [TRACE] [.oceanic.handler.OceanicThingHandler] - writeString : '[103, 101, 116, 76, 65, 82, 13]'
2017-05-05 16:27:47.626 [TRACE] [.oceanic.handler.OceanicThingHandler] - Read 1 bytes : 00
2017-05-05 16:27:47.626 [TRACE] [.oceanic.handler.OceanicThingHandler] - Byte 0 equals '0'('00')
2017-05-05 16:27:47.637 [TRACE] [.oceanic.handler.OceanicThingHandler] - Reading the inputStream
2017-05-05 16:27:47.637 [TRACE] [.oceanic.handler.OceanicThingHandler] - Read 19 bytes : 32 36 2E 30 34 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Where you can see that after a bunch of normal bytes a series of 00 bytes is returned

In

2017-05-05 16:30:39.752 [TRACE] [.oceanic.handler.OceanicThingHandler] - writeString : '[103, 101, 116, 67, 89, 78, 13]'
2017-05-05 16:30:39.760 [TRACE] [.oceanic.handler.OceanicThingHandler] - Read 1 bytes : 00
2017-05-05 16:30:39.760 [TRACE] [.oceanic.handler.OceanicThingHandler] - Byte 0 equals '0'('00')
2017-05-05 16:30:39.771 [TRACE] [.oceanic.handler.OceanicThingHandler] - Reading the inputStream
2017-05-05 16:30:39.771 [TRACE] [.oceanic.handler.OceanicThingHandler] - Read 4 bytes : 43 00 00 00
2017-05-05 16:30:39.771 [TRACE] [.oceanic.handler.OceanicThingHandler] - Byte 0 equals '67'('43')
2017-05-05 16:30:39.771 [TRACE] [.oceanic.handler.OceanicThingHandler] - Found the start
2017-05-05 16:30:39.771 [TRACE] [.oceanic.handler.OceanicThingHandler] - dataBuffer[0] set to '67'('43')
2017-05-05 16:30:39.771 [TRACE] [.oceanic.handler.OceanicThingHandler] - Byte 1 equals '0'('00')
2017-05-05 16:30:39.771 [TRACE] [.oceanic.handler.OceanicThingHandler] - The resulting line is 'C'

The resulting line should be 'C5', but you can see that after the first byte, the input stream is returning some 00 bytes, instead of the byte equivalent for '5'

The first loop of the read loop always seems to return a single 00 byte (which gets discarded in my code)

Paper UI usage with legacy 1.x bindings is confusing

In order to use legacy 1.x bindings you need to go to Configuration->System and enable both Access Remote Repositories and Include Legacy 1.x Bindings. If you don't enable Access Remote Repositories, the legacy 1.x bindings won't be available, even though you enabled the option. The option Include Legacy 1.x Bindings should be selectable unless Access Remote Repositories is enabled.

Groups cannot have binding configurations for 1.x bindings

In openHAB 1.x also groups could have bindings which seem not to be working any more in openHAB 2.0.

The follwing item definition worked fine in openHAB 1.x
Group:Switch:OR(ON,OFF) gPresence "Presence [MAP(presence_display.map):%s]" {mqtt=">[broker:presence/status:command:*:MAP(presence_out.map)]"}

In openHAB 2.0 the binding is not accepted and the logs give

2017-01-25 13:44:03.630 [ERROR] [el.item.internal.GenericItemProvider] - Binding configuration of type 'mqtt' of item 'gPresence' could not be parsed correctly.
org.eclipse.smarthome.model.item.BindingConfigParseException: cannot process unknown item type Group
	at org.openhab.core.binding.internal.BindingConfigReaderDelegate.getOpenHABItem(BindingConfigReaderDelegate.java:84)[176:org.openhab.core.compat1x:2.0.0]
	at org.openhab.core.binding.internal.BindingConfigReaderDelegate.getOpenHABItem(BindingConfigReaderDelegate.java:56)[176:org.openhab.core.compat1x:2.0.0]
	at org.openhab.core.binding.internal.BindingConfigReaderDelegate.validateItemType(BindingConfigReaderDelegate.java:37)[176:org.openhab.core.compat1x:2.0.0]
	at org.eclipse.smarthome.model.item.internal.GenericItemProvider.internalDispatchBindings(GenericItemProvider.java:311)[123:org.eclipse.smarthome.model.item:0.9.0.b4]
	at org.eclipse.smarthome.model.item.internal.GenericItemProvider.internalDispatchBindings(GenericItemProvider.java:284)[123:org.eclipse.smarthome.model.item:0.9.0.b4]
	at org.eclipse.smarthome.model.item.internal.GenericItemProvider.processBindingConfigsFromModel(GenericItemProvider.java:167)[123:org.eclipse.smarthome.model.item:0.9.0.b4]
	at org.eclipse.smarthome.model.item.internal.GenericItemProvider.modelChanged(GenericItemProvider.java:347)[123:org.eclipse.smarthome.model.item:0.9.0.b4]
	at org.eclipse.smarthome.model.core.internal.ModelRepositoryImpl.notifyListeners(ModelRepositoryImpl.java:207)[122:org.eclipse.smarthome.model.core:0.9.0.b4]
	at org.eclipse.smarthome.model.core.internal.ModelRepositoryImpl.addOrRefreshModel(ModelRepositoryImpl.java:120)[122:org.eclipse.smarthome.model.core:0.9.0.b4]
	at org.eclipse.smarthome.model.core.internal.folder.FolderObserver.checkFile(FolderObserver.java:272)[122:org.eclipse.smarthome.model.core:0.9.0.b4]
	at org.eclipse.smarthome.model.core.internal.folder.FolderObserver.access$1(FolderObserver.java:265)[122:org.eclipse.smarthome.model.core:0.9.0.b4]
	at org.eclipse.smarthome.model.core.internal.folder.FolderObserver$WatchQueueReader.processWatchEvent(FolderObserver.java:146)[122:org.eclipse.smarthome.model.core:0.9.0.b4]
	at org.eclipse.smarthome.core.service.AbstractWatchQueueReader.run(AbstractWatchQueueReader.java:122)[98:org.eclipse.smarthome.core:0.9.0.b4]
	at java.lang.Thread.run(Thread.java:745)[:1.8.0_111]

Add Missing Icons

The following icons (according to the smarthome channel categories) are still missing from the icon set, which will be moved to eclipse/smarthome upon completion.

  • Alarm siren
  • Battery battery
  • Blinds rollershutter
  • ColorLight colorwheel/rgb
  • Contact contact
  • DimmableLight slider
  • CarbonDioxide co2
  • Door door/frontdoor
  • Energy energy/solarplant
  • Fan fan_box/fan_ceiling
  • Fire fire
  • Flow flow
  • GarageDoor garagedoor
  • Gas gas
  • Humidity humidity
  • Light light
  • Motion motion
  • MoveControl move
  • Player receiver/television
  • PowerOutlet socket
  • Pressure pressure
  • QualityOfService signal
  • Rain rain/cistern
  • Recorder microphone
  • Smoke smoke
  • SoundVolume volume
  • Switch switch
  • Temperature temperature
  • Water water/cistern
  • Wind wind
  • Window contact
  • Zoom zoom

NRJavaserial is out of date

Hi @kaikreuzer ,

I've noticed that the nrjavaserial library has not been updated in openhab for more than a year. Is there any reason not to upgrade to the latest version of the library? There are quite a few fixes in there for embedded systems and native support for FreeBSD. Both very welcome I guess.

If you want me to pick this up and create a pull request, NP.

Browser UIs fail when multiple tabs of UI in use

When a browser has an openHAB UI open in more than one tab, errors are thrown and the UI fails to work/render properly. Issue was originally created at openhab/openhab but was redirected to this repo.

Expected Behavior

UI should be possible to navigate with additional tabs.

Current Behavior

I have heard this occurs in Paper UI and others but have not verified yet. HABmin(specifically v2) is confirmed by the developer to have this problem. The UI works fine in a single tab, or in multiple browsers with one tab each, but not when a browser opens an additional tab of that UI.

  • In HABmins case a modal appears stating the server is offline throwing many errors for file/state requests which breaks the rendering.
  • Refreshing the tab appears to make a connection successfully(refreshing again will put it back into server offline).
  • More details covered with logs in this HABmin issue

Possible Solution

As it's isolated issue between browsers, it would seem browser related rather than anything going on on openHABs end? Possibly the browsers local storage if in use, or some sort of caching? I don't know much about Jetty(web server?) but I guess it could be caused there if this affects multiple/all UI.

Steps to Reproduce (for bugs)

  1. Open a browser and access a UI (I used HABmin 2)
  2. Open a 2nd tab(I duplicated the tab/url on the configuration/bindings page)
  3. Web console has now probably thrown a bunch of errors and UI is failing to load/work/unresponsive.

Context

Not a major issue, I'm used to having multiple tabs, this actual issue appeared because I had over 100 tabs open and had an openHAB UI tab open that I was not aware of.

Your Environment

Browsers tested with this issue: Firefox 47, Chrome 50, Chromium 50.
openHAB used: Latest OH2 Docker image(beta 3?) on an Arch Linux x86_64 host.
HABmin 2, 1.60-snapshot.
Add-ons: HUE, Sonos, KNX, Z-Wave. All installed via Paper UI.

Video in sitemap breaks UI

Logs filled with :

09:28:54.943 [DEBUG] [httpclient.wire.content ] - << "[0x91][0x8c][0xf7][0xe6][0x94]c[0xe6][0xcf][0xa7][0x14][0x0][0xda]^[0xc7][0xd6][0x81][0xc5][0x14][0x0][0xb9][0xc0][0xa6][0xd2][0xe3][0x8a]([0x0][0xe3][0x1e][0xf4]~[0x94]b[0x82J[0x0])([0xa5][0x1e][0xfd]([0x1])A [0x82]:[0x8a]([0xc9][0xc6]([0x2][0xcc]W[0x93][0x1][0xb3][0xcc] g9[0xeb][0xcd]k[0xdd][0xde][0xcfm[\r][0x9b]2Hq[0xb8][0xc8][0xe]Il[0xf7][0xae]z[0xa7][0xb7][0xb8]0[0xbc]l[0xaa][0xb9]C[0x9e][0x95][0x94][0xe9][0xa7][0xaa][0x15][0x8e][0xed].[0xec]5[0xf][0xf][0xc9]o[0xab]\G[0x1e][0xa8][0x8e]J6[0xd2]W[0x91][0x8d][0xcc]GL[0x1][[0x9e] [0xd5][[0xc3][0x1a][0x96][0x8a]4[0xbb]umWO[0xb7][0x93][0x12]2[0x99][0x11][0xc4][0x8a][0x7][0x99][0xc6];n[0xc1][0xf4]#[0xd3][0x9e][0x6][0x1d]o[0xed]H[0xd6][0xd7][0xa9][0x10][0xb7]n[0x81]S[0x18]?Z[0xd6][0xb1][0xf1]M[0xe6][0x8b]o}oh[0xe3][0xcb]kq[0x14]38[0xdc][0xf1][0x8e]x\[0xf4][0x7][0x91][0xf8][0xd7][0x13][0xc3][0xc9]I~]H[0xcd][0xc4][0xd5][0xd3]mt[0xab][0xbf][0xf][0xc9]{=[0xbc][0x88]e[0xb8][0xb7][0xb6][0xb9]E|7[\r][0xcb])[0xc7][0x1b][0x86]y[0xc7][0xff][0x0]_[\[0xd5][0xf4][0xdb])[0xa3][0xb1][0xd2]t([0xf4][0xc8][0xcc][0x9e]][0x9e][0xad][0x2][0xb4]W[0x0][0xf0][0x1f]q[0xea][0xe0][0xa9]#[0x4][0x9f][0xbd][0x9a][0xc7]KU[0xd4]5[0x97]kr[0xd6][0xd6][0xa5]aw[0xe3][0xfd]f[0x0],}[0xbb]~u[0xaf][0xac][0xff][0x0]gO[0xaa][0xeb][0x8b]s=[0xcd][0xcd][0x9e][0x94][0x14][0xc0][0xc8][0xc5]J[0xe7][0x19]][0xbf]R[0xc0][0xfb][0x8f]j[0xe6]r[0xb4][0xfa][0xf5][0xfd][0x11]%[0x81]e[0xe0]X[0xf4][0xb9][0xa1]}SW[0xfb]n[0x9d][0x1b]I%[0xd5][0xab][0x14]{[0xa0][0xe7][0x5]UIa[0xd4][0x81][0xc6][0x7]rz[0x9a][0xa1]o[0xa5]i[0x12]j[0x16]W[0xbe][0x1d]7mbQ|[0xe4][0xba][0xc1]ul[0xf0][0xc4][0x82]x[0xe0][0xd5]-7K[0x83]M[0xba][0xbc][0x86]-[0xff][0x0]ed[0x12]M[0xb8][0xe7][0xf7]f[0xb1]t[0x97][0x93]M[0x92][0xf4][0xcd]#[0xc1]o4[0x4]*[0x83][0xc9][0x1d][0x89][0xa2]0[0xbd][0xd2][0x93]~[0xbf][0xf0][0xc3]6N[0xbf][0xac][0xc9][0xe2][0x80][0xb2][0xeb][0xe][0x82][0x19][0x19]#2[0x11][0xb5]S[0xfb][0xbf]J[0xd1][0x9e][;[0xdd]qb[0xfb]d[\r]$[0x91][0x80][0xb]?[0xca][0xb8][0xcf][0xaf]N[0xb5][0xc2]i[0xfa]=[0xd5][0xdd][0xd5][0xa4][0xb7]E[0x97]O[0xb8][0x90][0x6][0x9f]#[0x85][0xcf]'[0xd8][0xd4][0xbe]'[0xf0][0xdc][0x9a]U[0xec][0x8d]b[0xc6][0xf7]K-[0x98][0xae][0x10]v[0xf4]>[0x84]c[0xf9]z[0xd7]S[0xc3]SrI[0xca][0xce][0xc5]X[0xe9]Rk[0xf4][0xfb]5[0x9d][0xbe][0xa5]dF[0x9e]$[0xb8][0x88][0xc8][0xea]Sqn[0x8a]O[0x1e][0xd8][0xe3][0xbd]q[0xba][0xec]^U[0xe4][0x97]-!y[0xa6]vv[0x7][0xd4][0x9c][0xe6][0xb3]v[0xe4][0xfd][0xc2][0x5]$[0xd8][0xda]0zW]<7[0xb3]wL[0x10][0x9]7py[0xcd]nhvz[0xad][0xd6][0x93][0xaa]O,[0x16][0xf6][\n]"

Error after about a minute on a Pi3 :
`Exception in thread "pool-42-thread-1" java.lang.OutOfMemoryError: Java heap space
Exception in thread "HTTP Refresh Service" java.lang.OutOfMemoryError: Java heap space
SLF4J: Failed toString() invocation on an object of type [org.eclipse.jetty.server.HttpConnection]
java.lang.OutOfMemoryError: Java heap space
at java.util.regex.Matcher.(Matcher.java:226)
at java.util.regex.Pattern.matcher(Pattern.java:1093)
at java.util.Formatter.parse(Formatter.java:2547)
at java.util.Formatter.format(Formatter.java:2501)
at java.util.Formatter.format(Formatter.java:2455)
at java.lang.String.format(String.java:2940)
at org.eclipse.jetty.io.SelectChannelEndPoint.toString(SelectChannelEndPoint.java:200)
at java.util.Formatter$FormatSpecifier.printString(Formatter.java:2886)
at java.util.Formatter$FormatSpecifier.print(Formatter.java:2763)
at java.util.Formatter.format(Formatter.java:2520)
at java.util.Formatter.format(Formatter.java:2455)
at java.lang.String.format(String.java:2940)
at org.eclipse.jetty.io.AbstractConnection.toString(AbstractConnection.java:261)
at org.eclipse.jetty.server.HttpConnection.toString(HttpConnection.java:494)
at org.slf4j.helpers.MessageFormatter.safeObjectAppend(MessageFormatter.java:297)
at org.slf4j.helpers.MessageFormatter.deeplyAppendParameter(MessageFormatter.java:269)
at org.slf4j.helpers.MessageFormatter.arrayFormat(MessageFormatter.java:227)
at org.eclipse.jetty.util.log.JettyAwareLogger.log(JettyAwareLogger.java:619)
at org.eclipse.jetty.util.log.JettyAwareLogger.debug(JettyAwareLogger.java:206)
at org.eclipse.jetty.util.log.Slf4jLog.debug(Slf4jLog.java:89)
at org.eclipse.jetty.io.AbstractConnection.next(AbstractConnection.java:275)
at org.eclipse.jetty.io.AbstractConnection.fillInterested(AbstractConnection.java:133)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:285)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
at java.lang.Thread.run(Thread.java:745)
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "fileinstall-/home/bhomeyer/openhab2/addons"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Scheduler-718329267"
Exception in thread "Karaf Lock Monitor Thread" java.lang.OutOfMemoryError: Java heap space
Exception in thread "HTTP Refresh Service" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Active Thread: Equinox Container: 20edab46-3c5e-0016-1e7d-f8b0cc984c31" java.lang.OutOfMemoryError: Java heap space
Exception in thread "pool-52-thread-1" java.lang.OutOfMemoryError: Java heap space
`
Also confirmed on an i5 machine, same issue. Tried both online and offline.

Workaround for now is to use a webview, and create a page to show the videos. This works without issue.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Maven build failing due to static code analysis

Is there a command option when calling mvn to disable static code analysis ?

[INFO] --- static-code-analysis:0.1.0:report (default) @ org.openhab.core.compat1x ---
[INFO] Individual report appended to summary report.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] openHAB ............................................ SUCCESS [  0.115 s]
[INFO] openHAB - Tycho settings ........................... SUCCESS [  0.258 s]
[INFO] openHAB Bundles .................................... SUCCESS [  0.013 s]
[INFO] openHAB Core ....................................... SUCCESS [01:27 min]
[INFO] openHAB Core 1.x Compatibility Layer ............... FAILURE [  7.907 s]
[INFO] openHAB Core 1.x Compatibility Layer Tests ......... SKIPPED
[INFO] openHAB Karaf Integration .......................... SKIPPED
[INFO] openHAB SSL Certificate Generator .................. SKIPPED
[INFO] openHAB Dashboard UI ............................... SKIPPED
[INFO] openHAB REST API Documentation ..................... SKIPPED
[INFO] openHAB Sound Support .............................. SKIPPED
[INFO] openHAB Basic UI Dashboard Integration ............. SKIPPED
[INFO] openHAB Classic UI Dashboard Integration ........... SKIPPED
[INFO] openHAB Paper UI Theme Fragment .................... SKIPPED
[INFO] openHAB Features ................................... SKIPPED
[INFO] openHAB Karaf Features ............................. SKIPPED
[INFO] openHAB Karaf Feature Verification ................. SKIPPED
[INFO] openHAB p2 Feature ................................. SKIPPED
[INFO] openHAB Core P2 Repository ......................... SKIPPED
[INFO] openHAB Target Platform ............................ SKIPPED
[INFO] openHAB ............................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:48 min
[INFO] Finished at: 2017-08-03T23:02:03+02:00
[INFO] Final Memory: 73M/818M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.openhab.tools:static-code-analysis:0.1.0:report (default) on project org.openhab.core.compat1x: Code Analysis Tool has found 57 error(s)!
[ERROR] Please fix the errors and rerun the build.
[ERROR] Errors list:
[ERROR] ERROR found by checkstyle: org.openhab.core.compat1x.internal.CompatibilityActivator.java:18 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.core.compat1x.internal.ItemMapper.java:25 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.core.compat1x.internal.TypeMapper.java:29 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.core.events.AbstractEventSubscriber.java:19 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.core.events.EventPublisherDelegate.java:21 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.core.items.GroupItem.java:23 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.core.items.internal.ItemUIRegistryDelegate.java:29 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.core.library.types.DateTimeType.java:21 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.core.library.types.IncreaseDecreaseType.java:14 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.core.library.types.OnOffType.java:15 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.core.library.types.OpenClosedType.java:15 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.core.library.types.StopMoveType.java:14 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.core.library.types.StringType.java:15 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.core.library.types.UpDownType.java:15 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.core.scriptengine.action.ActionDoc.java:17 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.core.scriptengine.action.ParamDoc.java:17 An author tag is missing
[ERROR] ERROR found by findbugs: org.openhab.core.service.AbstractActiveService$RefreshThread.java:165 Format should be constant. Use placeholder to reduce the needless cost of parameter construction. see http://www.slf4j.org/faq.html#logging_performance
[ERROR] ERROR found by findbugs: org.openhab.core.service.AbstractActiveService$RefreshThread.java:171 Format should be constant. Use placeholder to reduce the needless cost of parameter construction. see http://www.slf4j.org/faq.html#logging_performance
[ERROR] ERROR found by findbugs: org.openhab.core.service.AbstractActiveService$RefreshThread.java:177 Format should be constant. Use placeholder to reduce the needless cost of parameter construction. see http://www.slf4j.org/faq.html#logging_performance
[ERROR] ERROR found by findbugs: org.openhab.core.service.AbstractActiveService$RefreshThread.java:191 Format should be constant. Use placeholder to reduce the needless cost of parameter construction. see http://www.slf4j.org/faq.html#logging_performance
[ERROR] ERROR found by findbugs: org.openhab.core.transform.TransformationHelper.java:39 Format should be constant. Use placeholder to reduce the needless cost of parameter construction. see http://www.slf4j.org/faq.html#logging_performance
[ERROR] ERROR found by findbugs: org.openhab.core.transform.TransformationHelper.java:43 Format should be constant. Use placeholder to reduce the needless cost of parameter construction. see http://www.slf4j.org/faq.html#logging_performance
[ERROR] ERROR found by findbugs: org.openhab.core.transform.actions.Transformation.java:48 Format should be constant. Use placeholder to reduce the needless cost of parameter construction. see http://www.slf4j.org/faq.html#logging_performance
[ERROR] ERROR found by checkstyle: org.openhab.core.transform.TransformationHelper.java:19 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.io.multimedia.tts.TTSService.java:7 An author tag is missing
[ERROR] ERROR found by findbugs: org.openhab.core.transform.actions.Transformation.java:52 Format should be constant. Use placeholder to reduce the needless cost of parameter construction. see http://www.slf4j.org/faq.html#logging_performance
[ERROR] ERROR found by findbugs: org.openhab.io.net.exec.ExecUtil.java:67 Format should be constant. Use placeholder to reduce the needless cost of parameter construction. see http://www.slf4j.org/faq.html#logging_performance
[ERROR] ERROR found by findbugs: org.openhab.io.net.exec.ExecUtil.java:133 Format should be constant. Use placeholder to reduce the needless cost of parameter construction. see http://www.slf4j.org/faq.html#logging_performance
[ERROR] ERROR found by findbugs: org.openhab.io.net.http.HttpUtil.java:189 Format should be constant. Use placeholder to reduce the needless cost of parameter construction. see http://www.slf4j.org/faq.html#logging_performance
[ERROR] ERROR found by checkstyle: org.openhab.library.tel.items.CallItem.java:20 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.library.tel.types.CallType.java:22 An author tag is missing
[ERROR] ERROR found by findbugs: org.openhab.io.net.http.HttpUtil.java:191 Format should be constant. Use placeholder to reduce the needless cost of parameter construction. see http://www.slf4j.org/faq.html#logging_performance
[ERROR] ERROR found by findbugs: org.openhab.io.net.http.HttpUtil.java:199 Format should be constant. Use placeholder to reduce the needless cost of parameter construction. see http://www.slf4j.org/faq.html#logging_performance
[ERROR] ERROR found by findbugs: org.openhab.io.net.http.HttpUtil.java:204 Format should be constant. Use placeholder to reduce the needless cost of parameter construction. see http://www.slf4j.org/faq.html#logging_performance
[ERROR] ERROR found by findbugs: org.openhab.model.item.binding.AbstractGenericBindingProvider.java:126 Format should be constant. Use placeholder to reduce the needless cost of parameter construction. see http://www.slf4j.org/faq.html#logging_performance
[ERROR] ERROR found by checkstyle: org.openhab.model.item.binding.BindingConfigParseException.java:11 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.model.sitemap.Chart.java:31 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.model.sitemap.ColorArray.java:35 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.model.sitemap.Colorpicker.java:29 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.model.sitemap.Frame.java:23 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.model.sitemap.Group.java:23 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.model.sitemap.Image.java:33 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.model.sitemap.LinkableWidget.java:31 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.model.sitemap.List.java:29 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.model.sitemap.Mapping.java:32 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.model.sitemap.NonLinkableWidget.java:23 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.model.sitemap.Selection.java:31 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.model.sitemap.Setpoint.java:33 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.model.sitemap.Sitemap.java:34 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.model.sitemap.SitemapModel.java:25 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.model.sitemap.Slider.java:30 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.model.sitemap.Switch.java:31 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.model.sitemap.Text.java:23 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.model.sitemap.Video.java:29 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.model.sitemap.VisibilityRule.java:34 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.model.sitemap.Webview.java:30 An author tag is missing
[ERROR] ERROR found by checkstyle: org.openhab.model.sitemap.Widget.java:37 An author tag is missing
[ERROR] Detailed report can be found at: file:///D:\dev\openhab2\git\openhab-core\bundles\org.openhab.core.compat1x\target\code-analysis\report.html
[ERROR]

No transformation service available

Found an issue when migrating to openHAB 2, it looks like transformation are not working at least with the serial binding. I think it has to do with 1x compatibility layer because it works fine in 1.8.3.

Item:
Number Septic_Level_Sensor {serial="/dev/ttyPort3,REGEX(.?([0-9]+).)"}

Seeing:
2017-02-25 16:28:10.896 [ERROR] [binding.serial.internal.SerialDevice] - No transformation service available!

I have REGEX transform installed according to paper.

nrjavaserial 3.12.0 requires glibc > 2.13

tl;dr; fresh install of oh 2.0.0~20170111215718 which includes nrjavaserial 3.12.0 causes silent failure with zwave (and possibly rfxcom) binding.

After seeing the announcement of moving to Bintray, I went and ran the upgrade as described in the thread. The system immediately started crashing on startup when trying to open the serial port. After debugging for a bit, I decided to purge the install and start fresh. When I did, OH started fine. until I installed just the zwave binding. As soon as the binding tried to open the serial port, it started crashing again.

The only debug info I have been able to retrieve is this:

09:19:22.535 [INFO ] [ing.zwave.handler.ZWaveSerialHandler] - Connecting to serial port '/dev/ttyACM0'
/usr/bin/java: symbol lookup error: /var/lib/openhab2/tmp/libNRJavaSerial_HF_openhab_0/libNRJavaSerial_HF.so: undefined symbol: __fdelt_chk

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Unable to remove items using Karaf console

When I try to remove items from Karaf it first seems to work, but the items are never removed.

openhab> smarthome:items | grep tellstick_switch_1_13_timestamp
tellstick_switch_1_13_timestamp (Type=DateTimeItem, State=2017-01-27T08:10:05.624+0100, Label=null, Category=null)
openhab> smarthome:items remove tellstick_switch_1_13_timestamp
1 item(s) removed successfully.
openhab> smarthome:items | grep tellstick_switch_1_13_timestamp
tellstick_switch_1_13_timestamp (Type=DateTimeItem, State=2017-01-27T08:10:05.624+0100, Label=null, Category=null)

This is items created using smarthome inbox (in habmin) and that don't exist in any .item file. I get nothing in openhab log files when trying to remove them.

This is OH 2.0.0, installed from official repository on a Debian 8.7 server.

[Compat layer?] Dropbox I/O plugin won't start in OH 2.1

The Dropbox I/O plugin won't start under OH 2.1, but works fine under OH 2.0.

When using the 1.9.x version of the jar, the plugin works correctly, however, despite the fact that there are no code changes in the dropbox code after 1.9.x.

The following exceptions are thrown when using either the 1.10.0 or 1.11.0-SNAPSHOT versions of the jar:

22:30:19.955 [ERROR] [org.openhab.io.dropbox              ] - [org.openhab.io.dropbox(13)] Error during instantiation of the implementation object
java.lang.NoClassDefFoundError: Could not initialize class org.openhab.io.dropbox.internal.DropboxSynchronizer
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[:1.8.0_45]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)[:1.8.0_45]
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[:1.8.0_45]
        at java.lang.reflect.Constructor.newInstance(Constructor.java:422)[:1.8.0_45]
        at java.lang.Class.newInstance(Class.java:442)[:1.8.0_45]
        at org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:236)
        at org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:108)
        at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:906)
        at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:879)
        at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:823)
        at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse$1.run(ServiceFactoryUse.java:212)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_45]
        at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.factoryGetService(ServiceFactoryUse.java:210)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.getService(ServiceFactoryUse.java:111)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.serviceregistry.ServiceConsumer$2.getService(ServiceConsumer.java:45)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:496)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(ServiceRegistry.java:461)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.framework.BundleContextImpl.getService(BundleContextImpl.java:619)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at com.eclipsesource.jaxrs.publisher.internal.ResourceTracker.addingService(ResourceTracker.java:39)
        at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)[org.osgi.core-6.0.0.jar:]
        at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)[org.osgi.core-6.0.0.jar:]
        at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)[org.osgi.core-6.0.0.jar:]
        at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183)[org.osgi.core-6.0.0.jar:]
        at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:318)[org.osgi.core-6.0.0.jar:]
        at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261)[org.osgi.core-6.0.0.jar:]
        at com.eclipsesource.jaxrs.publisher.internal.Activator.openAllServiceTracker(Activator.java:91)[10:com.eclipsesource.jaxrs.publisher:5.3.1.201602281253]
        at com.eclipsesource.jaxrs.publisher.internal.Activator.start(Activator.java:55)[10:com.eclipsesource.jaxrs.publisher:5.3.1.201602281253]
        at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_45]
        at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:941)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:318)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.Module.doStart(Module.java:571)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.Module.start(Module.java:439)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
22:30:19.971 [WARN ] [org.openhab.io.dropbox              ] - FrameworkEvent WARNING - org.openhab.io.dropbox
org.osgi.framework.ServiceException: org.apache.felix.scr.impl.manager.SingleComponentManager.getService() returned a null service object
        at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.factoryGetService(ServiceFactoryUse.java:232)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.getService(ServiceFactoryUse.java:111)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.serviceregistry.ServiceConsumer$2.getService(ServiceConsumer.java:45)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:496)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(ServiceRegistry.java:461)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.framework.BundleContextImpl.getService(BundleContextImpl.java:619)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at com.eclipsesource.jaxrs.publisher.internal.ResourceTracker.addingService(ResourceTracker.java:39)
        at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)[org.osgi.core-6.0.0.jar:]
        at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)[org.osgi.core-6.0.0.jar:]
        at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)[org.osgi.core-6.0.0.jar:]
        at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183)[org.osgi.core-6.0.0.jar:]
        at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:318)[org.osgi.core-6.0.0.jar:]
        at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261)[org.osgi.core-6.0.0.jar:]
        at com.eclipsesource.jaxrs.publisher.internal.Activator.openAllServiceTracker(Activator.java:91)[10:com.eclipsesource.jaxrs.publisher:5.3.1.201602281253]
        at com.eclipsesource.jaxrs.publisher.internal.Activator.start(Activator.java:55)[10:com.eclipsesource.jaxrs.publisher:5.3.1.201602281253]
        at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_45]
        at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:941)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:318)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.Module.doStart(Module.java:571)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.Module.start(Module.java:439)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]

Item received command in 2.1.0-SNAPSHOT seems to be broken

Today I installed the latest 2.1.0-SNAPSHOT and had some problems with rules. I broke it down to the following test scenario.

Item
Switch Test

Rules

when
	Time cron "3/10 * * * * ?"
then
	if (Test.state == ON) {
		logInfo("Test Send Command", "Test Send Command - Sending command OFF to Test")
		Test.sendCommand(OFF)
	} else {
		logInfo("Test Send Command", "Test Send Command - Sending command ON to Test")
		Test.sendCommand(ON)
	}
end

rule "Test Log Command"
when
	Item Test received command
then
	logInfo("Test Log Command", "Test Log Command - Test.state is {}", Test.state)
end

Often it works as expected. But sometimes I get the following output:

08:35:03.012 [INFO ] [smarthome.event.ItemCommandEvent    ] - Item 'Test' received command ON
08:35:03.018 [INFO ] [rthome.model.script.Test Log Command] - Test Log Command - Test.state is OFF
08:35:03.024 [INFO ] [marthome.event.ItemStateChangedEvent] - Test changed from OFF to ON

The rule is executed, because Test received ON but Test.state is still OFF. Afterwards the ItemStateChangedEvent applied.

If I use changedor received update on the Item it works as expected.

If this is the expected behavior, please let me know and I will close this topic.

Cheers
BjΓΆrn

Rules in OH2.1.0-SNAPSHOT stop working

I was not able to find out a pattern, but rules in OH2.1.0-SNAPSHOT (and also OH2) suddenly stop working. But it seems not all of them. E.g. tonight all of my "Time cron" rules just stopped. At least some of the other rules were running. Sometimes it helps if you just save the rule again. Sometimes I have to restart openHAB.

See also this diksussion

habdroid causes exceptions

Not fully sure whether this is the right place to address this issue to, please move if needed.
Let me know if you need specific information for further debugging.

Running Habdroid (using Rest API 0.9.0.201704201358), it's choking on some sitemap pages. Habdroid gets stuck in a load loop because jetty/ESH keeps throwing exceptions when queried from habdroid. By the way: Classic UI and Basic UI work fine, meanwhile.
I'm running yesterday's OH2 snapshot (#889), but it's not related to that release, it happened with earlier versions (e.g. ~2 weeks old), too. Just installed Oracle Java 8 u131, this remedied some occurrences, but not all of them.

sitemap t label="unser Haus"
{
        Frame {
        Group item=Test label="Test" icon="hammer_screwdriver" {
                // either of these lines makes REST API throw exception with a string conversion error
                Text item=Luftguete label="Luftguete innen [%d ppm]" icon="co2" valuecolor=[>=1500="red",>=1000="orange",<=1000="green"]
//              Text item=Garten_Bewegung icon="camera"
        }
        }
}

I have reduced one of these maps down to 2 lines that are causing the crash. But I absolutely don't see anything wrong with it. No special chars, no special options, no whatsoever. After updating Java (to 8u131), this particular sitemap started working, but others (auto-generated for a group) still fail, showing the above behavior.

2017-04-24 21:52:53.379 [DEBUG] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'sitemaps/home/EG_Wohnen'
2017-04-24 21:52:53.436 [DEBUG] [io.rest.JSONResponse$ExceptionMapper] - exception during REST Handling
java.util.IllegalFormatConversionException: d != java.lang.String
        at java.util.Formatter$FormatSpecifier.failConversion(Formatter.java:4302)[:1.8.0_131]
        at java.util.Formatter$FormatSpecifier.printInteger(Formatter.java:2793)[:1.8.0_131]
        at java.util.Formatter$FormatSpecifier.print(Formatter.java:2747)[:1.8.0_131]
        at java.util.Formatter.format(Formatter.java:2520)[:1.8.0_131]
        at java.util.Formatter.format(Formatter.java:2455)[:1.8.0_131]
        at java.lang.String.format(String.java:2940)[:1.8.0_131]
        at org.eclipse.smarthome.core.transform.TransformationHelper.transform(TransformationHelper.java:80)[108:org.eclipse.smarthome.core.transform:0.9.0.201704011656]
        at org.eclipse.smarthome.io.rest.core.item.EnrichedItemDTOMapper.considerTransformation(EnrichedItemDTOMapper.java:95)[116:org.eclipse.smarthome.io.rest.core:0.9.0.201704011656]
        at org.eclipse.smarthome.io.rest.core.item.EnrichedItemDTOMapper.map(EnrichedItemDTOMapper.java:47)[116:org.eclipse.smarthome.io.rest.core:0.9.0.201704011656]
        at org.eclipse.smarthome.io.rest.core.item.EnrichedItemDTOMapper.map(EnrichedItemDTOMapper.java:41)[116:org.eclipse.smarthome.io.rest.core:0.9.0.201704011656]
        at org.eclipse.smarthome.io.rest.sitemap.internal.SitemapResource.createWidgetBean(SitemapResource.java:400)[118:org.eclipse.smarthome.io.rest.sitemap:0.9.0.201704011656]
        at org.eclipse.smarthome.io.rest.sitemap.internal.SitemapResource.createPageBean(SitemapResource.java:376)[118:org.eclipse.smarthome.io.rest.sitemap:0.9.0.201704011656]
        at org.eclipse.smarthome.io.rest.sitemap.internal.SitemapResource.getPageBean(SitemapResource.java:281)[118:org.eclipse.smarthome.io.rest.sitemap:0.9.0.201704011656]
        at org.eclipse.smarthome.io.rest.sitemap.internal.SitemapResource.getPageData(SitemapResource.java:216)[118:org.eclipse.smarthome.io.rest.sitemap:0.9.0.201704011656]
        at sun.reflect.GeneratedMethodAccessor146.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_131]
        at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_131]
        at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)[159:org.glassfish.jersey.core.jersey-server:2.22.2]
        at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)[159:org.glassfish.jersey.core.jersey-server:2.22.2]
        at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)[159:org.glassfish.jersey.core.jersey-server:2.22.2]
        at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160)[159:org.glassfish.jersey.core.jersey-server:2.22.2]
        at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)[159:org.glassfish.jersey.core.jersey-server:2.22.2]
        at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)[159:org.glassfish.jersey.core.jersey-server:2.22.2]
        at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)[159:org.glassfish.jersey.core.jersey-server:2.22.2]
        at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)[159:org.glassfish.jersey.core.jersey-server:2.22.2]
        at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326)[159:org.glassfish.jersey.core.jersey-server:2.22.2]
        at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)[158:org.glassfish.jersey.core.jersey-common:2.22.2]
        at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)[158:org.glassfish.jersey.core.jersey-common:2.22.2]
        at org.glassfish.jersey.internal.Errors.process(Errors.java:315)[158:org.glassfish.jersey.core.jersey-common:2.22.2]
        at org.glassfish.jersey.internal.Errors.process(Errors.java:297)[158:org.glassfish.jersey.core.jersey-common:2.22.2]
        at org.glassfish.jersey.internal.Errors.process(Errors.java:267)[158:org.glassfish.jersey.core.jersey-common:2.22.2]
        at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)[158:org.glassfish.jersey.core.jersey-common:2.22.2]
        at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)[159:org.glassfish.jersey.core.jersey-server:2.22.2]
        at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)[159:org.glassfish.jersey.core.jersey-server:2.22.2]
        at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473)[156:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427)[156:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388)[156:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341)[156:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228)[156: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)[82:org.eclipse.jetty.servlet:9.2.19.v20160908]
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)[82:org.eclipse.jetty.servlet:9.2.19.v20160908]
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)[173:org.ops4j.pax.web.pax-web-jetty:4.3.0]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)[81:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)[80:org.eclipse.jetty.security:9.2.19.v20160908]
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)[81:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)[81:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:287)[173:org.ops4j.pax.web.pax-web-jetty:4.3.0]
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)[82:org.eclipse.jetty.servlet:9.2.19.v20160908]
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)[81:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)[81:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)[81:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)[173:org.ops4j.pax.web.pax-web-jetty:4.3.0]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)[81:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.Server.handle(Server.java:499)[81:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)[81:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)[81:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)[72:org.eclipse.jetty.io:9.2.19.v20160908]
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)[84:org.eclipse.jetty.util:9.2.19.v20160908]
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)[84:org.eclipse.jetty.util:9.2.19.v20160908]
        at java.lang.Thread.run(Thread.java:748)[:1.8.0_131]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.