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

ASF subversion and git services commented on NIFI-12740:
--------------------------------------------------------

Commit 4094c7f59940b628ac268921b64971bfbc148e39 in nifi's branch 
refs/heads/main from Mark Payne
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=4094c7f599 ]

NIFI-12740 Fixed Threading Bug with Java to Python Bound Objects

Fixed a threading bug where Java makes a call to Python, Python create a Java 
object to return (ArrayList), Python returns the object and then cleans it up, 
notifying Java to remove it from 'bound objects', and then Java process the 
response and returns a null object because it's no longer bound

This closes #8356

Signed-off-by: David Handermann <[email protected]>


> Python Processors sometimes stuck in invalid state: 'Initializing runtime 
> environment'
> --------------------------------------------------------------------------------------
>
>                 Key: NIFI-12740
>                 URL: https://issues.apache.org/jira/browse/NIFI-12740
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 2.0.0-M1, 2.0.0-M2
>            Reporter: Mark Payne
>            Assignee: Mark Payne
>            Priority: Blocker
>             Fix For: 2.0.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> When creating a Python processor, sometimes the Processor remains in an 
> invalid state with the message "Initializing runtime environment"
> In the logs, we see the following error/stack trace:
> {code:java}
> 2024-02-05 17:23:30,308 ERROR [Initialize SetRecordField] 
> org.apache.nifi.NiFi An Unknown Error Occurred in Thread 
> VirtualThread[#123,Initialize 
> SetRecordField]/runnable@ForkJoinPool-1-worker-5: 
> java.lang.NullPointerException: Cannot invoke "java.util.List.stream()" 
> because "processorTypes" is null
> java.lang.NullPointerException: Cannot invoke "java.util.List.stream()" 
> because "processorTypes" is null
>       at 
> org.apache.nifi.py4j.StandardPythonBridge.findExtensionId(StandardPythonBridge.java:322)
>       at 
> org.apache.nifi.py4j.StandardPythonBridge.createProcessorBridge(StandardPythonBridge.java:99)
>       at 
> org.apache.nifi.py4j.StandardPythonBridge.lambda$createProcessor$3(StandardPythonBridge.java:142)
>       at 
> org.apache.nifi.python.processor.PythonProcessorProxy.lambda$new$0(PythonProcessorProxy.java:73)
>       at java.base/java.lang.VirtualThread.run(VirtualThread.java:309) {code}



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

Reply via email to