Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-4093

"NullPointerException" is thrown when mandatory attribute is missing endDef-name

    XMLWordPrintableJSON

Details

    Description

      { "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)

      Attachments

        Issue Links

          Activity

            People

              chaitali chaitali borole
              chaitali chaitali borole
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: