Skip to content

[huesync] Scheduled runnable ended with an exception #19079

@pgfeller

Description

@pgfeller

Expected Behavior

The binding operates without any warnings or errors. If there is a warning the information has to be clear, what exactly did not work as expected.

Current Behavior

The binding reports a warning - but without enough details (too generic); but the binding continues to work (recovers).

2025-07-29 08:59:44.729 [WARN ] [mmon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception: 
java.util.NoSuchElementException: No value present
	at java.util.Optional.orElseThrow(Unknown Source) ~[?:?]
	at org.openhab.binding.huesync.internal.handler.HueSyncHandler.handleUpdate(HueSyncHandler.java:239) ~[?:?]
	at org.openhab.binding.huesync.internal.handler.HueSyncHandler.lambda$2(HueSyncHandler.java:204) ~[?:?]
	at org.openhab.binding.huesync.internal.handler.tasks.HueSyncUpdateTask.run(HueSyncUpdateTask.java:66) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[?:?]
	at java.util.concurrent.FutureTask.runAndReset(Unknown Source) ~[?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[?:?]
	at java.lang.Thread.run(Unknown Source) [?:?]

Possible Solution

I'll run the binding with TRACE reporting to get more details; but the code should be updated to produce a more descriptive message (to simplify troubleshooting).

Your Environment

  • openHAB 5.0.0 Release Build

    • javaVersion: 21.0.8
    • javaVendor: Eclipse Adoptium
    • javaVendorVersion: Temurin-21.0.8+9
    • osName: Linux
    • osVersion: 6.8.0-60-generic
  • Hue Sync

    • API Version 10
    • Firmware 2.5.3

Metadata

Metadata

Assignees

Labels

bugAn unexpected problem or unintended behavior of an add-on

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions