Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[digitalstrom] Scheduled runnable ended with an exception: java.util.NoSuchElementException: No value present #11054

Closed
alexf2015 opened this issue Jul 24, 2021 · 0 comments · Fixed by #11434
Labels
bug An unexpected problem or unintended behavior of an add-on

Comments

@alexf2015
Copy link
Contributor

alexf2015 commented Jul 24, 2021

2021-07-24 17:52:05.361 [WARN ] [mmon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception:
java.util.NoSuchElementException: No value present
        at java.util.Optional.get(Optional.java:148) ~[?:?]
        at org.openhab.binding.digitalstrom.internal.lib.structure.devices.impl.DeviceImpl.getFunctionalColorGroup(DeviceImpl.java:410) ~[?:?]
        at org.openhab.binding.digitalstrom.internal.lib.manager.impl.DeviceStatusManagerImpl.checkDeviceConfig(DeviceStatusManagerImpl.java:635) ~[?:?]
        at org.openhab.binding.digitalstrom.internal.lib.manager.impl.DeviceStatusManagerImpl$PollingRunnable.run(DeviceStatusManagerImpl.java:284) ~[?:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) ~[?:?]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
        at java.lang.Thread.run(Thread.java:829) [?:?]
2021-07-24 17:52:08.283 [WARN ] [e.internal.SseItemStatesEventBuilder] - Attempting to send a state update of an item which doesn't exist: undefined
2021-07-24 17:52:22.865 [WARN ] [mmon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception:
java.util.NoSuchElementException: No value present
        at java.util.Optional.get(Optional.java:148) ~[?:?]
        at org.openhab.binding.digitalstrom.internal.lib.structure.devices.impl.DeviceImpl.getFunctionalColorGroup(DeviceImpl.java:410) ~[?:?]
        at org.openhab.binding.digitalstrom.internal.lib.manager.impl.DeviceStatusManagerImpl.checkDeviceConfig(DeviceStatusManagerImpl.java:635) ~[?:?]
        at org.openhab.binding.digitalstrom.internal.lib.manager.impl.DeviceStatusManagerImpl$PollingRunnable.run(DeviceStatusManagerImpl.java:284) ~[?:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) ~[?:?]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
        at java.lang.Thread.run(Thread.java:829) [?:?]
2021-07-24 17:52:38.991 [WARN ] [mmon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception:
java.util.NoSuchElementException: No value present
        at java.util.Optional.get(Optional.java:148) ~[?:?]
        at org.openhab.binding.digitalstrom.internal.lib.structure.devices.impl.DeviceImpl.getFunctionalColorGroup(DeviceImpl.java:410) ~[?:?]
        at org.openhab.binding.digitalstrom.internal.lib.manager.impl.DeviceStatusManagerImpl.checkDeviceConfig(DeviceStatusManagerImpl.java:635) ~[?:?]
        at org.openhab.binding.digitalstrom.internal.lib.manager.impl.DeviceStatusManagerImpl$PollingRunnable.run(DeviceStatusManagerImpl.java:284) ~[?:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) ~[?:?]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
        at java.lang.Thread.run(Thread.java:829) [?:?]

Randomly this error occours and it does not stop until the binding is restarted. It seems that this error does not break any functionality of the binding. Things stay online and status is still updated.
Tested with openhab 3.1 + dss11 v1.19.0

@alexf2015 alexf2015 added the bug An unexpected problem or unintended behavior of an add-on label Jul 24, 2021
ardanedh added a commit to ardanedh/openhab-addons that referenced this issue Oct 22, 2021
… set

Signed-off-by: Rouven Schürch <r.schuerch@gmx.ch>
ardanedh added a commit to ardanedh/openhab-addons that referenced this issue Oct 22, 2021
…tException

Fixes openhab#11054: NoSuchElementException when no functional groups set
lolodomo pushed a commit that referenced this issue Oct 25, 2021
…11434)

Signed-off-by: Rouven Schürch <r.schuerch@gmx.ch>
dschoepel pushed a commit to dschoepel/openhab-addons that referenced this issue Nov 9, 2021
… set (openhab#11434)

Signed-off-by: Rouven Schürch <r.schuerch@gmx.ch>
Signed-off-by: Dave J Schoepel <dave@theschoepels.com>
NickWaterton pushed a commit to NickWaterton/openhab-addons that referenced this issue Dec 30, 2021
… set (openhab#11434)

Signed-off-by: Rouven Schürch <r.schuerch@gmx.ch>
Signed-off-by: Nick Waterton <n.waterton@outlook.com>
nemerdaud pushed a commit to nemerdaud/openhab-addons that referenced this issue Jan 28, 2022
… set (openhab#11434)

Signed-off-by: Rouven Schürch <r.schuerch@gmx.ch>
volkmarnissen pushed a commit to volkmarnissen/openhab-addons that referenced this issue Mar 3, 2022
… set (openhab#11434)

Signed-off-by: Rouven Schürch <r.schuerch@gmx.ch>
marcfischerboschio pushed a commit to bosch-io/openhab-addons that referenced this issue May 5, 2022
… set (openhab#11434)

Signed-off-by: Rouven Schürch <r.schuerch@gmx.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant