Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

NiFi - java.lang.NoSuchMethodError

NiFi - java.lang.NoSuchMethodError

Contributor

Hi Team,

I am seeing some weird error in my nifi cluster, i have a 3node secured nifi cluster and we have some custom library nars when we deploying in all nodes 2 nodes starting up without any issues but in one node i am seeing the below errors.

2017-04-20 23:43:34,516 ERROR [main] org.apache.nifi.NiFi Failure to launch NiFi due to java.lang.NoSuchMethodError: org.apache.nifi.processor.util.StandardValidators.createControllerServiceExistsValidator(Ljava/lang/Class;)Lorg/apache/nifi/components/Validator;
java.lang.NoSuchMethodError: org.apache.nifi.processor.util.StandardValidators.createControllerServiceExistsValidator(Ljava/lang/Class;)Lorg/apache/nifi/components/Validator;
        at o

Kinldy help on this issues.

14 REPLIES 14

Re: NiFi - java.lang.NoSuchMethodError

Contributor

@Matt Clarke Please provide your input.

Re: NiFi - java.lang.NoSuchMethodError

Contributor

@Bryan Bende Please provide your inputs for this issues. Thanks.

Re: NiFi - java.lang.NoSuchMethodError

Have you added any JARs to NiFi's lib directory?

Re: NiFi - java.lang.NoSuchMethodError

Contributor
@Bryan Bende

yes. in a cluster 2 nodes working but in one node not starting up.

Re: NiFi - java.lang.NoSuchMethodError

Contributor

@Matt Clarke no other trace... only this i am getting in nifi-app log and in boot strap log.

2017-04-27 00:02:55,922 INFO [main] o.a.n.b.NotificationServiceManager Successfully loaded the following 0 services: []
2017-04-27 00:02:55,932 INFO [main] org.apache.nifi.bootstrap.RunNiFi Registered no Notification Services for Notification Type NIFI_STARTED
2017-04-27 00:02:55,932 INFO [main] org.apache.nifi.bootstrap.RunNiFi Registered no Notification Services for Notification Type NIFI_STOPPED
2017-04-27 00:02:55,932 INFO [main] org.apache.nifi.bootstrap.RunNiFi Registered no Notification Services for Notification Type NIFI_DIED
2017-04-27 00:02:55,970 INFO [main] org.apache.nifi.bootstrap.Command Starting Apache NiFi...
2017-04-27 00:02:55,970 INFO [main] org.apache.nifi.bootstrap.Command Working Directory: /opt/install/nifi/Cluster/nifi-1.1.0.2.1.1.0-2
2017-04-27 00:02:55,970 INFO [main] org.apache.nifi.bootstrap.Command Command: /usr/jdk64/jdk1.8.0_60/bin/java -classpath /opt/install/nifi/Cluster/nifi-1.1.0.2.1.1.0-2/./conf:/opt/install/nifi/Cluster/nifi-1.1.0.2.1.1.0-2/./lib/jcl-over-slf4j-1.7.12.jar:/opt/install/nifi/Cluster/nifi-1.1.0.2.1.1.0-2/./lib/nifi-runtime-1.1.0.2.1.1.0-2.jar:/opt/install/nifi/Cluster/nifi-1.1.0.2.1.1.0-2/./lib/nifi-properties-1.1.0.2.1.1.0-2.jar:/opt/install/nifi/Cluster/nifi-1.1.0.2.1.1.0-2/./lib/nifi-documentation-1.1.0.2.1.1.0-2.jar:/opt/install/nifi/Cluster/nifi-1.1.0.2.1.1.0-2/./lib/slf4j-api-1.7.12.jar:/opt/install/nifi/Cluster/nifi-1.1.0.2.1.1.0-2/./lib/nifi-api-1.1.0.2.1.1.0-2.jar:/opt/install/nifi/Cluster/nifi-1.1.0.2.1.1.0-2/./lib/nifi-nar-utils-1.1.0.2.1.1.0-2.jar:/opt/install/nifi/Cluster/nifi-1.1.0.2.1.1.0-2/./lib/logback-core-1.1.3.jar:/opt/install/nifi/Cluster/nifi-1.1.0.2.1.1.0-2/./lib/log4j-over-slf4j-1.7.12.jar:/opt/install/nifi/Cluster/nifi-1.1.0.2.1.1.0-2/./lib/jul-to-slf4j-1.7.12.jar:/opt/install/nifi/Cluster/nifi-1.1.0.2.1.1.0-2/./lib/nifi-framework-api-1.1.0.2.1.1.0-2.jar:/opt/install/nifi/Cluster/nifi-1.1.0.2.1.1.0-2/./lib/logback-classic-1.1.3.jar -Dorg.apache.jasper.compiler.disablejsr199=true -Xmx512m -Xms512m -Dsun.net.http.allowRestrictedHeaders=true -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -XX:+UseG1GC -Djava.protocol.handler.pkgs=sun.net.www.protocol -Dnifi.properties.file.path=/opt/install/nifi/Cluster/nifi-1.1.0.2.1.1.0-2/./conf/nifi.properties -Dnifi.bootstrap.listen.port=39661 -Dapp=NiFi -Dorg.apache.nifi.bootstrap.config.log.dir=/opt/install/nifi/Cluster/nifi-1.1.0.2.1.1.0-2/logs org.apache.nifi.NiFi
2017-04-27 00:02:56,786 INFO [NiFi Bootstrap Command Listener] org.apache.nifi.bootstrap.RunNiFi Apache NiFi now running and listening for Bootstrap requests on port 38229
2017-04-27 00:03:52,997 INFO [main] org.apache.nifi.bootstrap.RunNiFi NiFi never started. Will not restart NiFi

Re: NiFi - java.lang.NoSuchMethodError

Master Guru

Any additional log output in either the bootstrap or app log? Any stack traces following the

above error?

Re: NiFi - java.lang.NoSuchMethodError

Contributor
@Matt Clarke

yeah no other trace only this error i am seeing in nifi app log. and in bootstrap log

2017-04-27 00:02:55,922 INFO [main] o.a.n.b.NotificationServiceManager Successfully loaded the following 0 services: []
2017-04-27 00:02:55,932 INFO [main] org.apache.nifi.bootstrap.RunNiFi Registered no Notification Services for Notification Type NIFI_STARTED
2017-04-27 00:02:55,932 INFO [main] org.apache.nifi.bootstrap.RunNiFi Registered no Notification Services for Notification Type NIFI_STOPPED
2017-04-27 00:02:55,932 INFO [main] org.apache.nifi.bootstrap.RunNiFi Registered no Notification Services for Notification Type NIFI_DIED
2017-04-27 00:02:55,970 INFO [main] org.apache.nifi.bootstrap.Command Starting Apache NiFi...
2017-04-27 00:02:55,970 INFO [main] org.apache.nifi.bootstrap.Command Working Directory: /opt/install/nifi/Cluster/nifi-1.1.0.2.1.1.0-2
2017-04-27 00:02:55,970 INFO [main] org.apache.nifi.bootstrap.Command Command: /usr/jdk64/jdk1.8.0_60/bin/java -classpath /opt/install/nifi/Cluster/nifi-1.1.0.2.1.1.0-2/./conf:/opt/install/nifi/Cluster/nifi-1.1.0.2.1.1.0-2/./lib/jcl-over-slf4j-1.7.12.jar:/opt/install/nifi/Cluster/nifi-1.1.0.2.1.1.0-2/./lib/nifi-runtime-1.1.0.2.1.1.0-2.jar:/opt/install/nifi/Cluster/nifi-1.1.0.2.1.1.0-2/./lib/nifi-properties-1.1.0.2.1.1.0-2.jar:/opt/install/nifi/Cluster/nifi-1.1.0.2.1.1.0-2/./lib/nifi-documentation-1.1.0.2.1.1.0-2.jar:/opt/install/nifi/Cluster/nifi-1.1.0.2.1.1.0-2/./lib/slf4j-api-1.7.12.jar:/opt/install/nifi/Cluster/nifi-1.1.0.2.1.1.0-2/./lib/nifi-api-1.1.0.2.1.1.0-2.jar:/opt/install/nifi/Cluster/nifi-1.1.0.2.1.1.0-2/./lib/nifi-nar-utils-1.1.0.2.1.1.0-2.jar:/opt/install/nifi/Cluster/nifi-1.1.0.2.1.1.0-2/./lib/logback-core-1.1.3.jar:/opt/install/nifi/Cluster/nifi-1.1.0.2.1.1.0-2/./lib/log4j-over-slf4j-1.7.12.jar:/opt/install/nifi/Cluster/nifi-1.1.0.2.1.1.0-2/./lib/jul-to-slf4j-1.7.12.jar:/opt/install/nifi/Cluster/nifi-1.1.0.2.1.1.0-2/./lib/nifi-framework-api-1.1.0.2.1.1.0-2.jar:/opt/install/nifi/Cluster/nifi-1.1.0.2.1.1.0-2/./lib/logback-classic-1.1.3.jar -Dorg.apache.jasper.compiler.disablejsr199=true -Xmx512m -Xms512m -Dsun.net.http.allowRestrictedHeaders=true -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -XX:+UseG1GC -Djava.protocol.handler.pkgs=sun.net.www.protocol -Dnifi.properties.file.path=/opt/install/nifi/Cluster/nifi-1.1.0.2.1.1.0-2/./conf/nifi.properties -Dnifi.bootstrap.listen.port=39661 -Dapp=NiFi -Dorg.apache.nifi.bootstrap.config.log.dir=/opt/install/nifi/Cluster/nifi-1.1.0.2.1.1.0-2/logs org.apache.nifi.NiFi
2017-04-27 00:02:56,786 INFO [NiFi Bootstrap Command Listener] org.apache.nifi.bootstrap.RunNiFi Apache NiFi now running and listening for Bootstrap requests on port 38229
2017-04-27 00:03:52,997 INFO [main] org.apache.nifi.bootstrap.RunNiFi NiFi never started. Will not restart NiFi

Re: NiFi - java.lang.NoSuchMethodError

Master Guru

@Anishkumar Valsalam

The above seems to indicate that NiFi spent almost an hour trying to start. You are saying there isn't any logging occurring in the nifi-app.log file between 00:02:56 and 00:03:52?

Re: NiFi - java.lang.NoSuchMethodError

Master Guru

@Anishkumar Valsalam

Try putting "org.apache.nifi" in DEBUG in the logback.xml file in to see if you get anymore output when the above NoSuchMethod error is thrown.