Hello

While it is clearly a very poor error/log it appears that some
property was not set in the nifi.properties file.  Can you share as
much of the properties file you can - specifically around cluster
configuration?

Thanks
Joe

On Thu, May 19, 2016 at 3:00 PM, Igor Kravzov <[email protected]> wrote:
> NiFi 0.6.1
> I followed simple cluster setup guide. But when i start NCM it shuts down
> and this is what I found in application log. What can be wrong?
>
>
> 2016-05-19 14:41:56,703 WARN [Thread-1]
> o.e.j.util.component.AbstractLifeCycle FAILED
> org.eclipse.jetty.server.Server@37b2e53f:
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'niFiWebApiSecurityConfiguration': Injection of autowired
> dependencies failed; nested exception is
> org.springframework.beans.factory.BeanCreationException: Could not autowire
> method: public void
> org.apache.nifi.web.NiFiWebApiSecurityConfiguration.setJwtService(org.apache.nifi.web.security.jwt.JwtService);
> nested exception is org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'jwtService' defined in class path resource
> [nifi-web-security-context.xml]: Cannot resolve reference to bean
> 'userService' while setting constructor argument; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'userService' defined in class path resource
> [nifi-administration-context.xml]: Cannot resolve reference to bean
> 'userTransactionBuilder' while setting bean property 'transactionBuilder';
> nested exception is org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'userTransactionBuilder' defined in class path
> resource [nifi-administration-context.xml]: Cannot resolve reference to bean
> 'authorityProvider' while setting bean property 'authorityProvider'; nested
> exception is org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'clusterManager': FactoryBean threw exception on
> object creation; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'clusterManagerProtocolSenderListener' defined in class path
> resource [nifi-cluster-protocol-context.xml]: Cannot resolve reference to
> bean 'clusterManagerProtocolListener' while setting constructor argument;
> nested exception is
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error
> creating bean with name 'clusterManagerProtocolListener' defined in class
> path resource [nifi-cluster-protocol-context.xml]: Unsatisfied dependency
> expressed through constructor argument with index 1 of type [int]: Could not
> convert constructor argument value of type [null] to required type [int]:
> Failed to convert value of type [null] to required type [int]; nested
> exception is java.lang.IllegalArgumentException: Cannot convert value of
> type [null] to required type [int]: PropertyEditor
> [org.springframework.beans.propertyeditors.CustomNumberEditor] returned
> inappropriate value of type [null]
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'niFiWebApiSecurityConfiguration': Injection of autowired
> dependencies failed; nested exception is
> org.springframework.beans.factory.BeanCreationException: Could not autowire
> method: public void
> org.apache.nifi.web.NiFiWebApiSecurityConfiguration.setJwtService(org.apache.nifi.web.security.jwt.JwtService);
> nested exception is org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'jwtService' defined in class path resource
> [nifi-web-security-context.xml]: Cannot resolve reference to bean
> 'userService' while setting constructor argument; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'userService' defined in class path resource
> [nifi-administration-context.xml]: Cannot resolve reference to bean
> 'userTransactionBuilder' while setting bean property 'transactionBuilder';
> nested exception is org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'userTransactionBuilder' defined in class path
> resource [nifi-administration-context.xml]: Cannot resolve reference to bean
> 'authorityProvider' while setting bean property 'authorityProvider'; nested
> exception is org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'clusterManager': FactoryBean threw exception on
> object creation; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'clusterManagerProtocolSenderListener' defined in class path
> resource [nifi-cluster-protocol-context.xml]: Cannot resolve reference to
> bean 'clusterManagerProtocolListener' while setting constructor argument;
> nested exception is
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error
> creating bean with name 'clusterManagerProtocolListener' defined in class
> path resource [nifi-cluster-protocol-context.xml]: Unsatisfied dependency
> expressed through constructor argument with index 1 of type [int]: Could not
> convert constructor argument value of type [null] to required type [int]:
> Failed to convert value of type [null] to required type [int]; nested
> exception is java.lang.IllegalArgumentException: Cannot convert value of
> type [null] to required type [int]: PropertyEditor
> [org.springframework.beans.propertyeditors.CustomNumberEditor] returned
> inappropriate value of type [null]
> at
> org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
> ~[na:na]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)
> ~[na:na]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
> ~[na:na]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
> ~[na:na]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
> ~[na:na]
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
> ~[na:na]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
> ~[na:na]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
> ~[na:na]
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
> ~[na:na]
> at
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)
> ~[na:na]
> at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)
> ~[na:na]
> at
> org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:446)
> ~[na:na]
> at
> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:328)
> ~[na:na]
> at
> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
> ~[na:na]
> at
> org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:800)
> ~[na:na]
> at
> org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:444)
> ~[na:na]
> at
> org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:791)
> ~[na:na]
> at
> org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:294)
> ~[na:na]
> at
> org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349)
> ~[na:na]
> at
> org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342)
> ~[na:na]
> at
> org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741)
> ~[na:na]
> at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505)
> ~[na:na]
> at
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
> ~[na:na]
> at
> org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
> ~[na:na]
> at
> org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
> ~[na:na]
> at
> org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
> ~[na:na]
> at
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
> ~[na:na]
> at
> org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
> ~[na:na]
> at org.eclipse.jetty.server.Server.start(Server.java:387) ~[na:na]
> at
> org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
> ~[na:na]
> at
> org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
> ~[na:na]
> at org.eclipse.jetty.server.Server.doStart(Server.java:354) ~[na:na]
> at
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
> ~[na:na]
> at org.apache.nifi.web.server.JettyServer.start(JettyServer.java:662)
> ~[na:na]
> at org.apache.nifi.NiFi.<init>(NiFi.java:137)
> ~[nifi-runtime-0.6.1.jar:0.6.1]
> at org.apache.nifi.NiFi.main(NiFi.java:227) ~[nifi-runtime-0.6.1.jar:0.6.1]
>

Reply via email to