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

Entity submit fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.6-incubating
    • 0.6-incubating
    • None
    • None

    Description

      2015-07-02 16:28:25,044 ERROR - [503025921@qtp-1044962984-8 - e842c8ce-58ce-4b3f-a083-81dbbb9902b2:] ~ Unable to persist entity instance due to a desrialization error  (EntityResource:109)
      org.apache.atlas.typesystem.types.ValueConversionException: Cannot convert value 'org.apache.atlas.typesystem.Referenceable@7a50b790' to datatype hive_storagedesc
      	at org.apache.atlas.typesystem.types.ClassType.convert(ClassType.java:143)
      	at org.apache.atlas.services.DefaultMetadataService.deserializeClassInstance(DefaultMetadataService.java:251)
      	at org.apache.atlas.services.DefaultMetadataService.createEntity(DefaultMetadataService.java:229)
      	at org.apache.atlas.web.resources.EntityResource.submit(EntityResource.java:96)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
      	at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
      	at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
      	at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
      	at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
      	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
      	at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
      	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)
      	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)
      	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)
      	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)
      	at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)
      	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)
      	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      	at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:287)
      	at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:277)
      	at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:182)
      	at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)
      	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:85)
      	at org.apache.atlas.web.filters.AuditFilter.doFilter(AuditFilter.java:67)
      	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
      	at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:119)
      	at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:133)
      	at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:130)
      	at com.google.inject.servlet.GuiceFilter$Context.call(GuiceFilter.java:203)
      	at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:130)
      	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
      	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
      	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
      	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
      	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
      	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      	at org.mortbay.jetty.Server.handle(Server.java:326)
      	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
      	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945)
      	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
      	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
      	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
      	at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
      	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
      Caused by: org.apache.atlas.typesystem.types.ValueConversionException: Cannot convert value 'org.apache.atlas.typesystem.Struct@7b8f4267' to datatype hive_serde
      	at org.apache.atlas.typesystem.types.TypedStructHandler.convert(TypedStructHandler.java:67)
      	at org.apache.atlas.typesystem.types.StructType.convert(StructType.java:168)
      	at org.apache.atlas.typesystem.types.StructType.convert(StructType.java:31)
      	at org.apache.atlas.typesystem.persistence.StructInstance.set(StructInstance.java:118)
      	at org.apache.atlas.typesystem.types.ClassType.convert(ClassType.java:141)
      	... 49 more
      Caused by: org.apache.atlas.typesystem.types.ValueConversionException$NullConversionException: Null value not allowed for multiplicty Multiplicity{lower=1, upper=1, isUnique=false}
      	at org.apache.atlas.typesystem.types.AbstractDataType.convertNull(AbstractDataType.java:27)
      	at org.apache.atlas.typesystem.types.DataTypes$StringType.convert(DataTypes.java:461)
      	at org.apache.atlas.typesystem.types.DataTypes$StringType.convert(DataTypes.java:444)
      	at org.apache.atlas.typesystem.types.DataTypes$MapType.convert(DataTypes.java:598)
      	at org.apache.atlas.typesystem.types.DataTypes$MapType.convert(DataTypes.java:554)
      	at org.apache.atlas.typesystem.persistence.StructInstance.set(StructInstance.java:118)
      	at org.apache.atlas.typesystem.types.TypedStructHandler.convert(TypedStructHandler.java:65)
      	... 53 more
      

      for entity value

      "serdeInfo":{
            "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Struct",
            "typeName":"hive_serde",
            "values":{
              "serializationLib":"org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe",
              "parameters":{
                "serialization.format":"\t",
                "field.delim":"\t"
              },
              "name":null
            }
          },
      

      Attachments

        1. ATLAS-45.patch
          2 kB
          Suma Shivaprasad

        Activity

          People

            suma.shivaprasad Suma Shivaprasad
            shwethags Shwetha GS
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: