[jira] [Commented] (ATLAS-4093) "NullPointerException" is thrown when mandatory attribute is missing endDef-name

2021-01-11 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/ATLAS-4093?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17262949#comment-17262949
 ] 

ASF subversion and git services commented on ATLAS-4093:


Commit 8d8859946951fbd9c5c23a90c92f93ede1d8f372 in atlas's branch 
refs/heads/branch-2.0 from chaitali borole
[ https://gitbox.apache.org/repos/asf?p=atlas.git;h=8d88599 ]

ATLAS-4093: Fix NullPointerException thrown when mandatory attribute is missing 
in endDef-name

Signed-off-by: Sarath Subramanian 
(cherry picked from commit ec1a7cdc7dd813b9e2dc238192010d9e66f09ab7)


> "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
>Affects Versions: 3.0.0
>Reporter: chaitali borole
>Assignee: chaitali borole
>Priority: Major
> Fix For: 3.0.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()
>  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()
>  at 
> org.apache.atlas.web.rest.TypesREST.createAtlasTypeDefs(TypesREST.java:381)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (ATLAS-4093) "NullPointerException" is thrown when mandatory attribute is missing endDef-name

2021-01-11 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/ATLAS-4093?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17262948#comment-17262948
 ] 

ASF subversion and git services commented on ATLAS-4093:


Commit ec1a7cdc7dd813b9e2dc238192010d9e66f09ab7 in atlas's branch 
refs/heads/master from chaitali borole
[ https://gitbox.apache.org/repos/asf?p=atlas.git;h=ec1a7cd ]

ATLAS-4093: Fix NullPointerException thrown when mandatory attribute is missing 
in endDef-name

Signed-off-by: Sarath Subramanian 


> "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
>Affects Versions: 3.0.0
>Reporter: chaitali borole
>Assignee: chaitali borole
>Priority: Major
> Fix For: 3.0.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()
>  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()
>  at 
> org.apache.atlas.web.rest.TypesREST.createAtlasTypeDefs(TypesREST.java:381)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)