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

Pierre Villard resolved NIFI-10197.
-----------------------------------
    Resolution: Feedback Received

Apache NiFi 1.x is no longer maintained and no new release is planned on the 
1.x release line. Marking as resolved as part of a cleanup operation. Please 
open a new one with an updated description if this is still relevant for NiFi 
2.x.

> ExecuteScript(ECMAScript) fails to log the null object
> ------------------------------------------------------
>
>                 Key: NIFI-10197
>                 URL: https://issues.apache.org/jira/browse/NIFI-10197
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core UI
>    Affects Versions: 1.16.3
>         Environment: Dev
>            Reporter: Mahendra hegde
>            Priority: Major
>         Attachments: image-2022-07-06-11-19-36-403.png
>
>
> I am trying to upgrade nifi from 1.12.1 version to 1.16.3.
> I have a script 'ECMAScript' which was working fine in 1.12.1and now behaving 
> different in 1.16.3.
> Below is the portion of code giving error in 1.16 version when 'xyzId' is 
> null.
> But it just logs null as expected in 1.12 version
>  
> var xyzId = flowFile.getAttribute('xyzId');
> log.info(xyzId);
>  
> Below is the error in 1.16 version when null value received for above line 
> (log.info() line throws below error)
> imer-Driven Process Thread-8] o.a.nifi.processors.script.ExecuteScript 
> ExecuteScript[id=bae38131-0181-1000-29af-196312cdd9d9] 
> ExecuteScript[id=bae38131-0181-1000-29af-196312cdd9d9] failed to process due 
> to org.apache.nifi.processor.exception.ProcessException: 
> java.lang.RuntimeException: java.lang.NoSuchMethodException: Can't 
> unambiguously select between fixed arity signatures 
> [(org.apache.nifi.logging.LogMessage), (java.lang.String)] of the method 
> org.apache.nifi.controller.TerminationAwareLogger.info for argument types 
> [null]; rolling back session
> org.apache.nifi.processor.exception.ProcessException: 
> java.lang.RuntimeException: java.lang.NoSuchMethodException: Can't 
> unambiguously select between fixed arity signatures 
> [(org.apache.nifi.logging.LogMessage), (java.lang.String)] of the method 
> org.apache.nifi.controller.TerminationAwareLogger.info for argument types 
> [null]
> at 
> org.apache.nifi.processors.script.ExecuteScript.onTrigger(ExecuteScript.java:245)
> at 
> org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1283)
> at 
> org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:214)
> at........
> Thanks
> Mahendra
> !image-2022-07-06-11-19-36-403.png!



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

Reply via email to