Support Questions

Find answers, ask questions, and share your expertise

Custom Processor extending from PutSFTP results in NoClassDefFoundError

avatar
New Contributor

Hello everyone,

I try to create a custom PutSFTP processor to add different failure Relationships to further improve my error handling and go different routes if an error occurs.

Im using NiFi-2.3.0 and a Java 21 shaded JAR for my custom processors

my issue is that i get java.lang.NoClassDefFoundError: org/apache/nifi/processors/standard/PutSFTP message when loading my custom processor in Nifi. 

I already tried:

  • adding the standard processors to my shaded jar but that only made things worse and some standard processors stopped working
  • adding nifi-file-transfer dependency to shaded jar but then the default PutSFTP stopped working
  • use extends PutFileTransfer<SFTPTransfer> instead of PutSFTP but again NoClassDefFound only this time for PutFileTransfer

Is there a way to add the missing Class without breaking anything else?

I really want to avoid rebuilding the whole PutSFTP to a custom PutSFTP when i only need to change small parts of it.

 

2 REPLIES 2

avatar
Community Manager

@LSchneider,  Welcome to our community! To help you get the best possible answer, I have tagged in our NiFi experts  @MattWho @Shelton, and @SAMSAL, who may be able to assist you further.

Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.



Regards,

Vidya Sargur,
Community Manager


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community:

avatar
New Contributor

Hello everyone,

Unfortunatly im still looking for a solution to this issue. I would appreciate any information that might solve this issue

Thank you in advance for your support.

Best regards