[ 
https://issues.apache.org/jira/browse/NIFI-1636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15198194#comment-15198194
 ] 

ASF GitHub Bot commented on NIFI-1636:
--------------------------------------

GitHub user rickysaltzer opened a pull request:

    https://github.com/apache/nifi/pull/285

    NIFI-1636: Print Stacktrace When Unepected OnTrigger Exception Caught

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/rickysaltzer/nifi NIFI-1636

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/nifi/pull/285.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #285
    
----
commit e82464694435ee2e5f27cfbb00c0e6d7b53d89ce
Author: ricky <[email protected]>
Date:   2016-03-16T20:43:05Z

    NIFI-1636: Print Stacktrace When Unepected OnTrigger Exception Caught

----


> Print entire stacktrace when unexpected exception occurs during onTrigger
> -------------------------------------------------------------------------
>
>                 Key: NIFI-1636
>                 URL: https://issues.apache.org/jira/browse/NIFI-1636
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Ricky Saltzer
>            Assignee: Ricky Saltzer
>
> 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*
> {code}
> java.lang.NumberFormatException: For input string: "five"
> {code}
> *After*
> {code}
> 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)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to