Uploaded image for project: 'Commons Daemon'
  1. Commons Daemon
  2. DAEMON-344

prunsrv swallows uncaught exceptions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • 1.0.10, 1.0.15
    • None
    • Procrun
    • None

    Description

      This seems to be similar to DAEMON-165, but I do not have the right to reopen it.

      Write a main method like this:

      public static void main(String[] args) throws Exception {
        throw new Exception("bad luck");
      }
      

      If started as a service, the service will keep running as if everything is ok.

      Workaround: wrap all code into a try/catch(Throwable) and print/log the throwable in the Java code itself. Then exit normally, which will then actually prompt prunsrv to exit.

      Attachments

        Activity

          People

            Unassigned Unassigned
            haraldk Harald Kirsch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: