Oleg Zhurakousky created NIFI-1523:
--------------------------------------

             Summary: Improve exception message when trying to connect to 
output port that is not started.
                 Key: NIFI-1523
                 URL: https://issues.apache.org/jira/browse/NIFI-1523
             Project: Apache NiFi
          Issue Type: Improvement
            Reporter: Oleg Zhurakousky
            Priority: Trivial
             Fix For: 0.6.0


Basically what I have now is  a simple flow where GenerateFlowFile sends to 
output Port named _toSpark_. When trying to connect to port which is not 
started I see the following exception message:
{code}
org.apache.nifi.remote.exception.PortNotRunningException: 
Peer[url=nifi://localhost:8888,CLOSED] indicates that port 
35c61f87-6a57-4aab-ac77-34006fc7ab68 is not running
        at 
org.apache.nifi.remote.client.socket.EndpointConnectionPool.getEndpointConnection(EndpointConnectionPool.java:351)
        at 
org.apache.nifi.remote.client.socket.SocketClient.createTransaction(SocketClient.java:129)
        at 
org.apache.nifi.spark.NiFiReceiver$ReceiveRunnable.run(NiFiReceiver.java:149)
        at java.lang.Thread.run(Thread.java:745)
{code}
Since port's generated id (35c61f87-6a57-4aab-ac77-34006fc7ab68) is not 
immediately visible from the UI it could be more difficult then it need to be 
to track it in a multi port system. 
So adding port name to the message would help



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

Reply via email to