Re: java.lang.IllegalArgumentException: Could not instantiate implementation: org.janusgraph.diskstorage.es.ElasticSearchIndex


Kalaiyarasi Thandavarayan <tkalai...@...>
 

1. JAVA version information : 
java -version
openjdk version "11.0.8" 2020-07-14
OpenJDK Runtime Environment (build 11.0.8+10-post-Ubuntu-0ubuntu120.04)
OpenJDK 64-Bit Server VM (build 11.0.8+10-post-Ubuntu-0ubuntu120.04, mixed mode, sharing)

2. also additional error message on this subject  



2020-10-26 15:44:59,444 WARN  - [main:] ~ Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.event.internalEventListenerProc
essor': BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'graphTransactionAdvisor' defined in URL [jar:file:/home/e2eadmin/atlas_with_elk_hbase/apach
e-atlas-3.0.0-SNAPSHOT/server/webapp/atlas/WEB-INF/lib/atlas-repository-3.0.0-SNAPSHOT.jar!/org/apache/atlas/GraphTransactionAdvisor.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.Unsatisfie
dDependencyException: Error creating bean with name 'graphTransactionInterceptor' defined in URL [jar:file:/home/e2eadmin/atlas_with_elk_hbase/apache-atlas-3.0.0-SNAPSHOT/server/webapp/atlas/WEB-INF/lib/atlas-repository-3.0.0-SNAPSHOT.jar!/org/apache/atlas/GraphTransacti
onInterceptor.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'get' defined in org.apache.atlas.repository.graph.AtlasGraphProvider: Bean
instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.atlas.repository.graphdb.AtlasGraph]: Factory method 'get' threw exception; nested exception is org.apache.atlas.repositor
y.RepositoryException: Max retries exceeded. Failed to obtain graph instance after 3 retries (AbstractApplicationContext:550)
2020-10-26 15:44:59,444 DEBUG - [main:] ~ Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@93824eb: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.an
notation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.event.internalEventListenerProcessor,org.springfr
amework.context.event.internalEventListenerFactory,org.springframework.aop.config.internalAutoProxyCreator,glossaryService,searchTracker,atlasMetricsUtil,graphTransactionInterceptor,entityDiscoveryService,entityLineageService,fullTextMapperV2,graphBackedSearchIndexer,atl
asGraphProvider,userProfileService,atlasGlossaryDTO,atlasGlossaryCategoryDTO,atlasGlossaryTermDTO,atlasServerDTO,atlasAuditEntryDTO,DTORegistry,dataAccess,atlasSavedSearchDTO,atlasUserProfileDTO,exportImportAuditEntryDTO,entityAuditListenerV2,HBaseBasedAuditRepository,en
tityAuditListener,typeDefAuditListener,atlasAuditService,atlasPatchService,atlasPatchManager,atlasInstanceConverter,atlasFormatConverters,migrationProgressService,tableReplicationRequestProcessor,atlasServerService,importService,hdfsPathEntityCreator,importTransformsShap
er,exportImportAuditService,auditsWriter,exportService,dataMigrationService,entityGraphRetriever,entityStateChecker,atlasEntityStoreV2,atlasEntityChangeNotifier,entityGraphMapper,classificationAssociator,bulkImporterImpl,atlasRelationshipStoreV2,atlasTypeDefGraphStoreV2,
deleteHandlerDelegate,atlasTypeDefStoreInitializer,metricsService,graphTransactionAdvisor,atlasJsonProvider,atlasAuthenticationFilter,auditFilter,headersUtil,activeServerFilter,atlasAuthenticationEntryPoint,staleTransactionCleanupFilter,atlasCSRFPreventionFilter,ssoAuthe
nticationFilter,atlasAuthenticationSuccessHandler,atlasAuthenticationFailureHandler,atlasKeycloakAuthenticationProvider,atlasLdapAuthenticationProvider,atlasSecurityConfig,atlasPamAuthenticationProvider,atlasAuthenticationProvider,atlasFileAuthenticationProvider,atlasADA
uthenticationProvider,allExceptionMapper,notFoundExceptionMapper,atlasBaseExceptionMapper,activeInstanceState,userService,curatorFactory,activeInstanceElectorService,serviceState,userDao,typesREST,discoveryREST,relationshipREST,lineageREST,glossaryREST,entityREST,typesRe
source,dataSetLineageResource,metadataDiscoveryResource,entityResource,lineageResource,adminResource,notificationHookConsumer,notificationEntityChangeListener,entityNotificationListenerV2,graphDBGraphSONMigrator,services,commonConfiguration,embeddedKafkaServer,kafkaNotif
ication,atlasTypeRegistry,httpSessionManager,keycloakClientRequestFactory,get,org.springframework.security.config.annotation.configuration.ObjectPostProcessorConfiguration,objectPostProcessor,org.springframework.security.config.annotation.authentication.configuration.Aut
henticationConfiguration,authenticationManagerBuilder,enableGlobalAuthenticationAutowiredConfigurer,initializeUserDetailsBeanManagerConfigurer,initializeAuthenticationProviderBeanManagerConfigurer,org.springframework.security.config.annotation.web.configuration.WebSecuri
tyConfiguration,delegatingApplicationListener,webSecurityExpressionHandler,springSecurityFilterChain,privilegeEvaluator,autowiredWebSecurityConfigurersIgnoreParents,org.springframework.security.config.annotation.web.configuration.WebMvcSecurityConfiguration,requestDataVa
lueProcessor,org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration,methodSecurityInterceptor,methodSecurityMetadataSource,preInvocationAuthorizationAdvice,sessionAuthenticationStrategy,adapterDeploymentContext,keycloakPreAu
thActionsFilter,keycloakSecurityContextRequestFilter,keycloakAuthenticatedActionsRequestFilter,keycloakAuthenticationProcessingFilter,metaDataSourceAdvisor,getAtlasConfig]; root of factory hierarchy (DefaultSingletonBeanRegistry:505)
2020-10-26 15:44:59,444 DEBUG - [main:] ~ Retrieved dependent beans for bean 'objectPostProcessor': [org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration] (DefaultSingletonBeanRegistry:573)
2020-10-26 15:44:59,444 DEBUG - [main:] ~ Invoking destroy() on bean with name 'objectPostProcessor' (DisposableBeanAdapter:259)
2020-10-26 15:44:59,445 ERROR - [main:] ~ Context initialization failed (ContextLoader:350)
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.event.internalEventListenerProcessor': BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.Unsatis
fiedDependencyException: Error creating bean with name 'graphTransactionAdvisor' defined in URL [jar:file:/home/e2eadmin/atlas_with_elk_hbase/apache-atlas-3.0.0-SNAPSHOT/server/webapp/atlas/WEB-INF/lib/atlas-repository-3.0.0-SNAPSHOT.jar!/org/apache/atlas/GraphTransactio
nAdvisor.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'graphTransactionInterceptor' defined in URL [jar:file:/home/e2eadmin/at
las_with_elk_hbase/apache-atlas-3.0.0-SNAPSHOT/server/webapp/atlas/WEB-INF/lib/atlas-repository-3.0.0-SNAPSHOT.jar!/org/apache/atlas/GraphTransactionInterceptor.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframew
ork.beans.factory.BeanCreationException: Error creating bean with name 'get' defined in org.apache.atlas.repository.graph.AtlasGraphProvider: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to
instantiate [org.apache.atlas.repository.graphdb.AtlasGraph]: Factory method 'get' threw exception; nested exception is org.apache.atlas.repository.RepositoryException: Max retries exceeded. Failed to obtain graph instance after 3 retries
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:477)
       at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
       at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
       at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)
       at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
       at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:756)
       at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
       at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)
       at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)
       at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)
       at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
       at org.apache.atlas.web.setup.KerberosAwareListener.contextInitialized(KerberosAwareListener.java:31)
       at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:843)
       at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:533)
       at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:816)
       at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:345)
       at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1404)
       at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1366)
       at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:778)
       at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:262)
       at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:520)
       at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
       at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)
       at org.eclipse.jetty.server.Server.start(Server.java:422)
       at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105)
       at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
       at org.eclipse.jetty.server.Server.doStart(Server.java:389)
       at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
       at org.apache.atlas.web.service.EmbeddedServer.start(EmbeddedServer.java:98)
       at org.apache.atlas.Atlas.main(Atlas.java:133)
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'graphTransactionAdvisor' defined in URL [jar:file:/home/e2eadmin/atlas_with_elk_hbase/apache-atlas-3.0.0-SNAPSHOT/server/webapp/atlas/WEB-INF/lib/atlas-repository-
3.0.0-SNAPSHOT.jar!/org/apache/atlas/GraphTransactionAdvisor.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'graphTransactionInt
erceptor' defined in URL [jar:file:/home/e2eadmin/atlas_with_elk_hbase/apache-atlas-3.0.0-SNAPSHOT/server/webapp/atlas/WEB-INF/lib/atlas-repository-3.0.0-SNAPSHOT.jar!/org/apache/atlas/GraphTransactionInterceptor.class]: Unsatisfied dependency expressed through construct
or parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'get' defined in org.apache.atlas.repository.graph.AtlasGraphProvider: Bean instantiation via factory method failed; nested exception is org.springf
ramework.beans.BeanInstantiationException: Failed to instantiate [org.apache.atlas.repository.graphdb.AtlasGraph]: Factory method 'get' threw exception; nested exception is org.apache.atlas.repository.RepositoryException: Max retries exceeded. Failed to obtain graph inst
ance after 3 retries
       at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)
       at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:189)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1196)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1098)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)
       at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
       at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
       at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)
       at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
       at org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:89)
       at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:102)
       at org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator.shouldSkip(AspectJAwareAdvisorAutoProxyCreator.java:103)
       at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessBeforeInstantiation(AbstractAutoProxyCreator.java:245)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:1041)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:1015)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:471)
       ... 29 more
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'graphTransactionInterceptor' defined in URL [jar:file:/home/e2eadmin/atlas_with_elk_hbase/apache-atlas-3.0.0-SNAPSHOT/server/webapp/atlas/WEB-INF/lib/atlas-reposit
ory-3.0.0-SNAPSHOT.jar!/org/apache/atlas/GraphTransactionInterceptor.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'get' defined in org.
apache.atlas.repository.graph.AtlasGraphProvider: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.atlas.repository.graphdb.AtlasGraph]: Factory method 'get' threw ex
ception; nested exception is org.apache.atlas.repository.RepositoryException: Max retries exceeded. Failed to obtain graph instance after 3 retries
       at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)
       at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:189)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1196)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1098)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)
       at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
       at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
       at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)
       at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
       at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:211)
       at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1134)
       at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1062)
       at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:835)
       at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)
       ... 45 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'get' defined in org.apache.atlas.repository.graph.AtlasGraphProvider: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstan
tiationException: Failed to instantiate [org.apache.atlas.repository.graphdb.AtlasGraph]: Factory method 'get' threw exception; nested exception is org.apache.atlas.repository.RepositoryException: Max retries exceeded. Failed to obtain graph instance after 3 retries
       at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1176)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1071)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)
       at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
       at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
       at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)
       at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
       at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:211)
       at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1134)
       at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1062)
       at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:835)
       at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)
       ... 59 more
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.atlas.repository.graphdb.AtlasGraph]: Factory method 'get' threw exception; nested exception is org.apache.atlas.repository.RepositoryException: Max retries exceeded. Faile
d to obtain graph instance after 3 retries
       at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
       at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
       ... 72 more
Caused by: org.apache.atlas.repository.RepositoryException: Max retries exceeded. Failed to obtain graph instance after 3 retries
       at org.apache.atlas.repository.graph.AtlasGraphProvider.retry(AtlasGraphProvider.java:127)
       at org.apache.atlas.repository.graph.AtlasGraphProvider.get(AtlasGraphProvider.java:102)
       at org.apache.atlas.repository.graph.AtlasGraphProvider$$EnhancerBySpringCGLIB$$de43023c.CGLIB$get$0(<generated>)
       at org.apache.atlas.repository.graph.AtlasGraphProvider$$EnhancerBySpringCGLIB$$de43023c$$FastClassBySpringCGLIB$$e607602c.invoke(<generated>)
       at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
       at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:358)
       at org.apache.atlas.repository.graph.AtlasGraphProvider$$EnhancerBySpringCGLIB$$de43023c.get(<generated>)
       at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
       at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.base/java.lang.reflect.Method.invoke(Method.java:566)
       at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
       ... 73 more



On Mon, Oct 26, 2020 at 3:46 PM <nicolas...@...> wrote:
hi,
are you using java 8 (as there is java.base in the stack trace, I don't think so)

Nicolas

--
You received this message because you are subscribed to the Google Groups "JanusGraph users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to janusgra...@....
To view this discussion on the web visit https://groups.google.com/d/msgid/janusgraph-users/abacb703-af6f-488f-b65f-2504988fa6d2o%40googlegroups.com.

Join {janusgraph-users@lists.lfaidata.foundation to automatically receive all group messages.