Uploaded image for project: 'Lucee Development'
  1. LDEV-893

Thread.stop semantics hide errors and throw messages on console

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: New
    • Resolution: Fixed
    • Affects Version/s: 5.0.0.252
    • Fix Version/s: 5.0.1.19
    • Labels:
      None
    • Environment:

      lucee 5.0.0.252, reproduced on 5.0.1.10-SNAPSHOT
      Macos

      Description

      Use of thread.stop0 will only work on java.lang.Thread directly - fix reflection to use the parent class.

      Specific cases of this - reported by @mjhagen on lucee channel on Slack... Related to database errors within a scheduled task. Errors on the console are non-descript, and hide the actual error returned from the code. stop0 isn't able to be executed on a TaskThread, so stop() is the only recourse, which sends ThreadDeath instead of the appropriate exception.

      May be related to other tickets, i.e. LDEV-792 Being Investigated/Triaged

      Pull request #25
      https://github.com/lucee/Lucee/pull/25

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                michaeloffner Michael Offner
                Reporter:
                whitemystic Joseph Gooch
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: