[ https://issues.apache.org/jira/browse/ATLAS-3358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17063377#comment-17063377 ]
Nikhil Bonte commented on ATLAS-3358: ------------------------------------- Committed to branch-0.8 - 4099b072c70f1480f7c4f1f494b2b400dea7df59 > NPE when Atlas is trying to read from graphDB > --------------------------------------------- > > Key: ATLAS-3358 > URL: https://issues.apache.org/jira/browse/ATLAS-3358 > Project: Atlas > Issue Type: Bug > Affects Versions: 0.8.4 > Reporter: Nikhil Bonte > Assignee: Nikhil Bonte > Priority: Major > Attachments: > ATLAS-3358-NPE-when-Atlas-is-trying-to-read-from-gra.patch > > > Reading vertex which has '__type.category' as null & Atlas fails to startup. > > {noformat} > 2019-07-31 17:47:46,717 INFO - [main:] ~ Restoring type > CLASS.fs_path.fs_path (GraphBackedTypeStore:257) > 2019-07-31 17:47:46,756 DEBUG - [main:] ~ Reading property __type.category > from vertex[id=496386248 type=null guid=null] (GraphHelper:433) > 2019-07-31 17:47:46,757 DEBUG - [main:] ~ Reading property __type.name from > vertex[id=496386248 type=null guid=null] (GraphHelper:433) > 2019-07-31 17:47:46,757 DEBUG - [main:] ~ Reading property __type.description > from vertex[id=496386248 type=null guid=null] (GraphHelper:433) > 2019-07-31 17:47:46,757 INFO - [main:] ~ Restoring type null.null.null > (GraphBackedTypeStore:257) > 2019-07-31 17:47:46,758 ERROR - [main:] ~ graph rollback due to exception > (GraphTransactionInterceptor:71) > java.lang.NullPointerException > at > org.apache.atlas.repository.typestore.GraphBackedTypeStore.getTypesFromVertices(GraphBackedTypeStore.java:258) > at > org.apache.atlas.repository.typestore.GraphBackedTypeStore.restore(GraphBackedTypeStore.java:233) > at > org.apache.atlas.repository.typestore.GraphBackedTypeStore$$FastClassBySpringCGLIB$$89e4b665.invoke(<generated>) > at > org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) > at > org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:738) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) > at > org.apache.atlas.GraphTransactionInterceptor.invoke(GraphTransactionInterceptor.java:60) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) > at > org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:673) > at > org.apache.atlas.repository.typestore.GraphBackedTypeStore$$EnhancerBySpringCGLIB$$95613fc.restore(<generated>) > at > org.apache.atlas.services.DefaultMetadataService.restoreTypeSystem(DefaultMetadataService.java:143) > at > org.apache.atlas.services.DefaultMetadataService.<init>(DefaultMetadataService.java:132) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > at java.lang.reflect.Constructor.newInstance(Constructor.java:423) > at > org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:142) > at > org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:122) > at > org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:271) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1193) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1095) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) > at > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) > at > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) > at > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) > at > org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208) > at > org.springframework.beans.factory.support.DefaultListableBeanFactory.addCandidateEntry(DefaultListableBeanFactory.java:1309) > at > org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1275) > at > org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveMultipleBeans(DefaultListableBeanFactory.java:1180) > at > org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1096) > at > org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066) > at > org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:835) > at > org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741) > at > org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:189) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1193) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1095) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) > at > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) > at > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) > at > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) > at > org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208) > at > org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138) > at > org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066) > at > org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:835) > at > org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741) > at > org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:189) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1193) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1095) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) > at > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) > at > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) > at > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) > at > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761) > at > org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866) > 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:782) > at > org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424) > at > org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:774) > at > org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249) > at > org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242) > at > org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717) > at > org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494) > at > org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) > at > org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95) > at org.eclipse.jetty.server.Server.doStart(Server.java:282) > at > org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) > at > org.apache.atlas.web.service.EmbeddedServer.start(EmbeddedServer.java:92) > at org.apache.atlas.Atlas.main(Atlas.java:118) > 2019-07-31 17:47:46,761 DEBUG - [main:] ~ ==> releaseLockedObjects(): > lockedGuids.size: 0 (GraphTransactionInterceptor:187) > 2019-07-31 17:47:46,761 DEBUG - [main:] ~ <== releaseLockedObjects(): > lockedGuids.size: 0 (GraphTransactionInterceptor:197) > 2019-07-31 17:47:46,764 WARN - [main:] ~ Exception encountered during > context initialization - cancelling refresh attempt: > {noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005)