If you edit a thing the Paper UI itself allows to edit the label, the
bridge and the configuration.
The JavaScript does not send a changed Bridge UID.
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
Refactorings in Paper UI:
- Things are created using the /rest/things endpoint
- Channel enablement/disablement is done through /rest/links
- Control UI now uses thing structure instead of tagged items
- Preferences "advanced" flag has been removed and is now determined from the server through /rest/links/auto
Refactored link handling in core.things:
- removed Thing links
- removed usage of ThingSetupManager
- made ThingLinkManager a service
- implemented auto-creation and deletion of links for managed things
- implemented ChannelItemProvider, which creates items for links that point to non-existent items
Also-by: Kai Kreuzer <kai@openhab.org>
Signed-off-by: Aoun Bukhari <bukhari@itemis.de>
If the minimum / maximim is set to some value that evaluates to false
(e.g. 0, 0.0, ...) then the minimum / maximum text is not shown.
The slider element is shown only if the minimum and maximum text
evaluates to true.
So with the current test no slider is shown if the min / max is e.g. 0,
0.0, ...
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
Without this start-level tuning you can run in a
HTTP ERROR 503: Jersey is not ready yet!
The OSGi console log could look similar to this one:
```text
2016-05-04 17:27:10,704 | ERROR | lixDispatchQueue | sse | 172 - org.eclipse.smarthome.io.rest.sse - 0.8.0.a16 | FrameworkEvent ERROR - org.eclipse.smarthome.io.rest.sse
org.osgi.framework.BundleException: Activator start error in bundle org.eclipse.smarthome.io.rest.sse [172].
at org.apache.felix.framework.Felix.activateBundle(Felix.java:2276)[org.apache.felix.framework-5.4.0.jar:]
at org.apache.felix.framework.Felix.startBundle(Felix.java:2144)[org.apache.felix.framework-5.4.0.jar:]
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371)[org.apache.felix.framework-5.4.0.jar:]
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)[org.apache.felix.framework-5.4.0.jar:]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_74]
Caused by: java.lang.ExceptionInInitializerError
at org.eclipse.smarthome.io.rest.sse.internal.SseActivator.start(SseActivator.java:44)
at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:2226)
... 4 more
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: Provider org.glassfish.jersey.server.internal.RuntimeDelegateImpl could not be instantiated: java.lang.IllegalStateException: No generator was provided and there is no default generator registered
at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:152)[34:javax.ws.rs-api:2.0.1]
at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:120)[34:javax.ws.rs-api:2.0.1]
at javax.ws.rs.core.MediaType.valueOf(MediaType.java:179)[34:javax.ws.rs-api:2.0.1]
at org.glassfish.jersey.media.sse.SseFeature.<clinit>(SseFeature.java:62)[218:org.glassfish.jersey.media.jersey-media-sse:2.22.2]
... 7 more
Caused by: java.lang.ClassNotFoundException: Provider org.glassfish.jersey.server.internal.RuntimeDelegateImpl could not be instantiated: java.lang.IllegalStateException: No generator was provided and there is no default generator registered
at javax.ws.rs.ext.FactoryFinder.newInstance(FactoryFinder.java:122)[34:javax.ws.rs-api:2.0.1]
at javax.ws.rs.ext.FactoryFinder.find(FactoryFinder.java:213)[34:javax.ws.rs-api:2.0.1]
at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:135)[34:javax.ws.rs-api:2.0.1]
... 10 more
Caused by: java.lang.IllegalStateException: No generator was provided and there is no default generator registered
at org.glassfish.hk2.internal.ServiceLocatorFactoryImpl.internalCreate(ServiceLocatorFactoryImpl.java:308)[205:org.glassfish.hk2.api:2.4.0.b34]
at org.glassfish.hk2.internal.ServiceLocatorFactoryImpl.create(ServiceLocatorFactoryImpl.java:293)[205:org.glassfish.hk2.api:2.4.0.b34]
at org.glassfish.jersey.internal.inject.Injections._createLocator(Injections.java:138)[215:org.glassfish.jersey.core.jersey-common:2.22.2]
at org.glassfish.jersey.internal.inject.Injections.createLocator(Injections.java:109)[215:org.glassfish.jersey.core.jersey-common:2.22.2]
at org.glassfish.jersey.server.internal.RuntimeDelegateImpl.<init>(RuntimeDelegateImpl.java:64)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[:1.8.0_74]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)[:1.8.0_74]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[:1.8.0_74]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)[:1.8.0_74]
at java.lang.Class.newInstance(Class.java:442)[:1.8.0_74]
at javax.ws.rs.ext.FactoryFinder.newInstance(FactoryFinder.java:118)[34:javax.ws.rs-api:2.0.1]
... 12 more
```
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
Rewritten digitalSTROM-Binding of the openHAB1-Binding from Alexander Betker.
Differences/Updates:
* The functionality and concept is completely revised and updated
* reorganized structure
* updated digtalSTROM-API and constant classes
* supports the new ESH-Features e.g. discovery
For the supported devices and so on please have a look at the readme.md.
Also-By: Alexander Betker <alexanderbetker@gmail.com>
Also-By: Alex Maier <alex.maier@th-koeln.de>
Also-by: Matthias Siegele <digitalSTROM-ESH-binding@web.de>
Signed-off-by: Michael Ochel <michael.ochel@koeln.de>
If the jersey modules are initiated on the same level as the ones that
registered the ServletContainer class, this could lead to errors using
asyncrhonous processing:
javax.servlet.ServletException: java.lang.UnsupportedOperationException:
Asynchronous processing not supported on Servlet 2.x container.
See e.g.
https://gist.github.com/maggu2810/ef57c2656fa9f76052042da5f70d9d2f
This could be worked around to start the Jersey components in front of
the usage.
The important module is jersey-core-server, that adds support for
servlet 3.x.
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>