[ 
https://issues.apache.org/jira/browse/SLING-12702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Konrad Windszus updated SLING-12702:
------------------------------------
    Description: 
The error message emitted from 
https://github.com/apache/sling-org-apache-sling-commons-scheduler/blob/7fa8f8061448e32bab1373e65ec5dd36183bd1cb/src/main/java/org/apache/sling/commons/scheduler/impl/WhiteboardHandler.java#L274
 does not really help with debugging/fixing as it always looks like this:

{code}
*ERROR* [FelixStartLevel] 
org.apache.sling.commons.scheduler.impl.WhiteboardHandler Scheduling service 
[java.lang.Runnable] failed.
{code}

This is a poor error message as

# it does not contain the reason
# it does not say which object exactly failed, as all scheduler services 
implement {{Runnable}} by contract

  was:
The error message emitted from 
https://github.com/apache/sling-org-apache-sling-commons-scheduler/blob/7fa8f8061448e32bab1373e65ec5dd36183bd1cb/src/main/java/org/apache/sling/commons/scheduler/impl/WhiteboardHandler.java#L274
 does not really help with debugging/fixing as

# it does not contain the reason
# it does not say which object exactly failed, as all scheduler services 
implement {{Runnable}} by contract


> Improve error message "Scheduling service [java.lang.Runnable] failed"
> ----------------------------------------------------------------------
>
>                 Key: SLING-12702
>                 URL: https://issues.apache.org/jira/browse/SLING-12702
>             Project: Sling
>          Issue Type: Bug
>          Components: Commons
>    Affects Versions: Commons Scheduler 2.7.14
>            Reporter: Konrad Windszus
>            Assignee: Konrad Windszus
>            Priority: Major
>
> The error message emitted from 
> https://github.com/apache/sling-org-apache-sling-commons-scheduler/blob/7fa8f8061448e32bab1373e65ec5dd36183bd1cb/src/main/java/org/apache/sling/commons/scheduler/impl/WhiteboardHandler.java#L274
>  does not really help with debugging/fixing as it always looks like this:
> {code}
> *ERROR* [FelixStartLevel] 
> org.apache.sling.commons.scheduler.impl.WhiteboardHandler Scheduling service 
> [java.lang.Runnable] failed.
> {code}
> This is a poor error message as
> # it does not contain the reason
> # it does not say which object exactly failed, as all scheduler services 
> implement {{Runnable}} by contract



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to