You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Mahendra hegde (Jira)" <ji...@apache.org> on 2022/07/06 05:50:00 UTC
[jira] [Created] (NIFI-10197) ExecuteScript(ECMAScript) fails to log the null object
Mahendra hegde created NIFI-10197:
-------------------------------------
Summary: 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
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)