SuperOok / openhab-vallox

Openhab interface to a vallox central venting unit
Eclipse Public License 1.0
1 stars 1 forks source link

llegal status INITIALIZING #4

Closed majherek closed 7 years ago

majherek commented 7 years ago

Hi,

I had to upgrade OH2 installation due too some problem with other bindings.

After upgrade to snapshot version, vallox addons doesn't work any more.

openhab> bundle:list  |grep -i vall
218 | Active   |  80 | 2.0.0.201612011838    | Vallox

After upgrade there are some errors.

2016-12-11 23:55:14.077 [INFO ] [g.vallox.service.ValloxSerialHandler] - initialize()
2016-12-11 23:55:14.079 [ERROR] [ome.core.thing.internal.ThingManager] - Exception occured while initializing handler of thing 'vallox:kwl90se:vallox': java.lang.I
llegalArgumentException: Illegal status INITIALIZING. Bindings only may set UNKNOWN, ONLINE, OFFLINE or REMOVED.
java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Illegal status INITIALIZING. Bindings only may set UNKNOWN, ONLINE, OFFLINE or REMOVED
.
        at java.util.concurrent.FutureTask.report(FutureTask.java:122)[:1.8.0_111]
        at java.util.concurrent.FutureTask.get(FutureTask.java:206)[:1.8.0_111]
        at org.eclipse.smarthome.core.common.SafeMethodCaller.callAsynchronous(SafeMethodCaller.java:188)[96:org.eclipse.smarthome.core:0.9.0.201612091054]
        at org.eclipse.smarthome.core.common.SafeMethodCaller.call(SafeMethodCaller.java:81)[96:org.eclipse.smarthome.core:0.9.0.201612091054]
        at org.eclipse.smarthome.core.common.SafeMethodCaller.call(SafeMethodCaller.java:65)[96:org.eclipse.smarthome.core:0.9.0.201612091054]
        at org.eclipse.smarthome.core.thing.internal.ThingManager$9.run(ThingManager.java:743)[103:org.eclipse.smarthome.core.thing:0.9.0.201612091054]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_111]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_111]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)[:1.8.0_111]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[:1.8.0_111]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_111]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_111]
        at java.lang.Thread.run(Thread.java:745)[:1.8.0_111]
Caused by: java.lang.IllegalArgumentException: Illegal status INITIALIZING. Bindings only may set UNKNOWN, ONLINE, OFFLINE or REMOVED.
        at org.eclipse.smarthome.core.thing.internal.ThingManager$1.ensureValidStatus(ThingManager.java:185)[103:org.eclipse.smarthome.core.thing:0.9.0.20161209105
4]
        at org.eclipse.smarthome.core.thing.internal.ThingManager$1.statusUpdated(ThingManager.java:150)[103:org.eclipse.smarthome.core.thing:0.9.0.201612091054]
        at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.updateStatus(BaseThingHandler.java:386)[103:org.eclipse.smarthome.core.thing:0.9.0.20161209105
4]
        at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.updateStatus(BaseThingHandler.java:415)[103:org.eclipse.smarthome.core.thing:0.9.0.20161209105
4]
        at org.eclipse.smarthome.binding.vallox.service.ValloxSerialHandler.initialize(ValloxSerialHandler.java:52)[218:org.eclipse.smarthome.binding.vallox:2.0.0.
201612011838]
        at org.eclipse.smarthome.core.thing.internal.ThingManager$9$1.call(ThingManager.java:746)[103:org.eclipse.smarthome.core.thing:0.9.0.201612091054]
        at org.eclipse.smarthome.core.thing.internal.ThingManager$9$1.call(ThingManager.java:1)[103:org.eclipse.smarthome.core.thing:0.9.0.201612091054]
        at org.eclipse.smarthome.core.common.SafeMethodCaller$CallableWrapper.call(SafeMethodCaller.java:179)[96:org.eclipse.smarthome.core:0.9.0.201612091054]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_111]
        ... 3 more

When I try to create new maven package, I had errors to:

majherek@atom:~$ git clone https://github.com/SuperOok/openhab-vallox.git
Cloning into 'openhab-vallox'...
remote: Counting objects: 222, done.
remote: Total 222 (delta 0), reused 0 (delta 0), pack-reused 222
Receiving objects: 100% (222/222), 57.08 KiB | 0 bytes/s, done.
Resolving deltas: 100% (75/75), done.
Checking connectivity... done.

majherek@atom:~/openhab-vallox/src$ mvn package
[INFO] Scanning for projects...
[INFO] Computing target platform for MavenProject: org.eclipse.smarthome.binding.vallox:org.eclipse.smarthome.binding.vallox:2.0.0-SNAPSHOT @ /home/majherek/openhab-vallox/src/org.eclipse.smarthome.binding.vallox/pom.xml
[INFO] Adding repository http://download.eclipse.org/smarthome/updates-stable
[INFO] Fetching p2.index from http://download.eclipse.org/releases/luna/201502271000/
[INFO] Fetching p2.index from http://download.eclipse.org/releases/luna/201502271000/
[INFO] Adding repository http://download.eclipse.org/releases/luna/201502271000
[INFO] Adding repository https://dl.bintray.com/openhab/p2/openhab-core/2.0.0.x
[INFO] Adding repository https://dl.bintray.com/openhab/p2/openhab-deps-repo/1.0.8
[INFO] Adding repository http://eclipse.github.io/smarthome/third-party/target/repository
[ERROR] Cannot resolve target definition:
[ERROR]   Software being installed: org.eclipse.smarthome.feature.runtime.rest.feature.group 0.9.0.201612091054
[ERROR]   Missing requirement: org.eclipse.smarthome.io.rest.auth 0.9.0.201612091054 requires 'package com.eclipsesource.jaxrs.provider.security 0.0.0' but it could not be found
[ERROR]   Cannot satisfy dependency: org.eclipse.smarthome.feature.runtime.rest.feature.group 0.9.0.201612091054 depends on: org.eclipse.smarthome.io.rest.auth [0.9.0.201612091054]
[ERROR]
[ERROR] Failed to resolve target definition /home/majherek/openhab-vallox/src/org.eclipse.smarthome.binding.vallox.target/org.eclipse.smarthome.binding.vallox.target.target: See log for details -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MavenExecutionException