Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

PutFTP NullPointerException

avatar
Explorer

Hi everyone,

I hope everything is fine with you.

I'm having an issue with my nifi flow, I'm using nifi 1.26.0 and a PutFTP processor.

In queue, my files have attributes and everything is ok, but when the file goes to PutFTP it seems like it loses his attributes.

71e918d5-1fb4-407b-8514-40e7c8c455a5.jpg

My processor gives this error

PutFTP[id=0193100b-ea3b-104f-002c-f975c98b8819] Processing halted: yielding [1 sec]: java.lang.NullPointerException: Cannot invoke "String.startsWith(String)" because "fullPathWithSlash" is null

 

Does anyone face something like that?

 

Thanks in advance.

2 REPLIES 2

avatar
Explorer

Can you please share absolute path details? I am guessing error in that string statement. 

avatar
Master Mentor

@dan_lucas 

From the exception, this appears to be a configuration issue most likely.
You'll want to verify the NiFi Expression Language statement used in the putFTP processor's "Remote Path" property.

I assume you have something configured there like ${absolute.path}/${airlinename} in that property?

If you manually connect to the FTP server can you successfully navigate the path?

Please help our community grow. If you found any of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "Accept as Solution" on one or more of them that helped.

Thank you,
Matt