[
https://issues.apache.org/jira/browse/ATLAS-4093?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sarath Subramanian updated ATLAS-4093:
--------------------------------------
Labels: TypesAPI relationshipDef (was: )
> "NullPointerException" is thrown when mandatory attribute is missing
> endDef-name
> --------------------------------------------------------------------------------
>
> Key: ATLAS-4093
> URL: https://issues.apache.org/jira/browse/ATLAS-4093
> Project: Atlas
> Issue Type: Improvement
> Components: atlas-core
> Affects Versions: 2.1.0
> Reporter: chaitali borole
> Assignee: chaitali borole
> Priority: Major
> Labels: TypesAPI, relationshipDef
> Fix For: 3.0.0, 2.2.0
>
>
> { "relationshipDefs": [
> { "category": "RELATIONSHIP", "name": "create_rel_1",
> "relationshipCategory": "ASSOCIATION", "endDef1": { "type":
> "rel_type_1" }, "endDef2": { "type": "rel_type_2"
> }
> },
> { "category": "RELATIONSHIP", "name": "create_rel_2",
> "relationshipCategory": "ASSOCIATION", "endDef1": { "type":
> "rel_type_1" }, "endDef2": { "type": "rel_type_2"
> }
> }
> ]
> }
> Exception :
> 18:01:23,265 ERROR - [etp238564722-17 -
> ad9e1d0a-2302-40fb-91b0-077f7ddd8f9c:] ~ graph rollback due to exceptionÂ
> (GraphTransactionInterceptor:192)java.lang.NullPointerException at
> org.apache.atlas.type.AtlasRelationshipType.addRelationshipEdgeDirection(AtlasRelationshipType.java:171)
> at
> org.apache.atlas.type.AtlasRelationshipType.resolveReferencesPhase2(AtlasRelationshipType.java:141)
> at
> org.apache.atlas.type.AtlasTypeRegistry$AtlasTransientTypeRegistry.resolveReferences(AtlasTypeRegistry.java:447)
> at
> org.apache.atlas.type.AtlasTypeRegistry$AtlasTransientTypeRegistry.addTypes(AtlasTypeRegistry.java:517)
> at
> org.apache.atlas.repository.store.graph.AtlasTypeDefGraphStore.tryTypeCreation(AtlasTypeDefGraphStore.java:1193)
> at
> org.apache.atlas.repository.store.graph.AtlasTypeDefGraphStore.createTypesDef(AtlasTypeDefGraphStore.java:395)
> at
> org.apache.atlas.repository.store.graph.AtlasTypeDefGraphStore$$FastClassBySpringCGLIB$$5226c80b.invoke(<generated>)
> at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
> at
> org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:737)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
> at
> org.apache.atlas.GraphTransactionInterceptor.invoke(GraphTransactionInterceptor.java:107)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
> at
> org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:672)
> at
> org.apache.atlas.repository.store.graph.v2.AtlasTypeDefGraphStoreV2$$EnhancerBySpringCGLIB$$377d7b16.createTypesDef(<generated>)
> at
> org.apache.atlas.web.rest.TypesREST.createAtlasTypeDefs(TypesREST.java:381)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)