Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-1636

Print entire stacktrace when unexpected exception occurs during onTrigger

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.5.0
    • Component/s: None
    • Labels:
      None

      Description

      As of now the try/catch clause in the AbstractProcessor class doesn't print the entire stacktrace when a processor throws an unexpected exception.

      Printing the entire stacktrace comes especially in handy when users are creating custom processors for internal use.

      The difference in information can be seen below:

      Before

      java.lang.NumberFormatException: For input string: "five"
      

      After

      java.lang.NumberFormatException: For input string: "five"
      	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
      	at java.lang.Integer.parseInt(Integer.java:580)
      	at java.lang.Integer.parseInt(Integer.java:615)
      	at TestException.main(TestException.java:5)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rickysaltzer Ricky Saltzer
                Reporter:
                rickysaltzer Ricky Saltzer
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: