You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Daniel Stieglitz (Jira)" <ji...@apache.org> on 2025/11/24 19:44:00 UTC

[jira] [Updated] (NIFI-15250) IllegalArgumentException thrown in LogMessage if the value for Log Level is not a valid log level

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

Daniel Stieglitz updated NIFI-15250:
------------------------------------
    Description: 
Currently the log level value in LogMessage is entered by hand. If it does not match the accepted log levels irrelevant of case, an IllegalArgumentException is thrown as seen in the error message below
{code:java}
ERROR
LogMessage[id=b74f1a87-019a-1000-e69c-2f8a246b2b0f] Processing failed: org.apache.nifi.processor.exception.ProcessException: java.lang.IllegalArgumentException: No enum constant org.apache.nifi.processors.standard.LogMessage.MessageLogLevel.whatever
- Caused by: java.lang.IllegalArgumentException: No enum constant org.apache.nifi.processors.standard.LogMessage.MessageLogLevel.whatever{code}

  was:
Currently the log level value in LogMessage is entered by hand. If it does not match the accepted log levels irrelevant of case an IllegalArgumentException is thrown as seen in the error message below
{code:java}
ERROR
LogMessage[id=b74f1a87-019a-1000-e69c-2f8a246b2b0f] Processing failed: org.apache.nifi.processor.exception.ProcessException: java.lang.IllegalArgumentException: No enum constant org.apache.nifi.processors.standard.LogMessage.MessageLogLevel.whatever
- Caused by: java.lang.IllegalArgumentException: No enum constant org.apache.nifi.processors.standard.LogMessage.MessageLogLevel.whatever{code}


> IllegalArgumentException thrown in LogMessage if the value for Log Level is not a valid log level
> -------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-15250
>                 URL: https://issues.apache.org/jira/browse/NIFI-15250
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Daniel Stieglitz
>            Assignee: Daniel Stieglitz
>            Priority: Minor
>
> Currently the log level value in LogMessage is entered by hand. If it does not match the accepted log levels irrelevant of case, an IllegalArgumentException is thrown as seen in the error message below
> {code:java}
> ERROR
> LogMessage[id=b74f1a87-019a-1000-e69c-2f8a246b2b0f] Processing failed: org.apache.nifi.processor.exception.ProcessException: java.lang.IllegalArgumentException: No enum constant org.apache.nifi.processors.standard.LogMessage.MessageLogLevel.whatever
> - Caused by: java.lang.IllegalArgumentException: No enum constant org.apache.nifi.processors.standard.LogMessage.MessageLogLevel.whatever{code}



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