Frank Greguska created SDAP-46: ---------------------------------- Summary: Job Fails with no bean found exception Key: SDAP-46 URL: https://issues.apache.org/jira/browse/SDAP-46 Project: Apache Science Data Analytics Platform Issue Type: Bug Reporter: Frank Greguska
Error with ningester job while trying to execute on server Command used: {{java -Dspring.batch.enabled=false -Dspring.profiles.active=deepdata,solr,cassandra -Dspring.config.location=/usr/local/sdeploy/sdap/SWOTJob.yml -jar ~/sdap/incubator-sdap-ningester/build/libs/incubator-sdap-ningester-1.0.0-SNAPSHOT.jar granule=file:/data/share/datasets/SWOT_Hydro/latest/Qout_WSWM_729days_p0_dtR900s_n1_preonly_20160416.nc}} Exception raised: {{Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'pythonChainProcessor' available}}{{ at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:687) ~[spring-beans-4.3.13.RELEASE.jar!/:4.3.13.RELEASE]}}{{ at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1207) ~[spring-beans-4.3.13.RELEASE.jar!/:4.3.13.RELEASE]}}{{ at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:284) ~[spring-beans-4.3.13.RELEASE.jar!/:4.3.13.RELEASE]}}{{ at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-4.3.13.RELEASE.jar!/:4.3.13.RELEASE]}}{{ at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1086) ~[spring-context-4.3.13.RELEASE.jar!/:4.3.13.RELEASE]}}{{ at org.apache.sdap.ningester.processors.CompositeItemProcessor.afterPropertiesSet(CompositeItemProcessor.java:44) ~[classes!/:na]}}{{ at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1687) ~[spring-beans-4.3.13.RELEASE.jar!/:4.3.13.RELEASE]}}{{ at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624) ~[spring-beans-4.3.13.RELEASE.jar!/:4.3.13.RELEASE]}} {{ }} Looks like the conditional load is not catching the bean for some reason: {{ BatchConfig#pythonChainProcessor:}}{{ }} {{Did not match:}} {{ - @ConditionalOnBean (types: org.apache.sdap.ningester.processors.PythonChainProcessor; SearchStrategy: all) did not find any beans (OnBeanCondition)}}{{ }} -- This message was sent by Atlassian JIRA (v7.6.3#76005)