atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suma Shivaprasad (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ATLAS-888) NPE in NotificationHookConsumer
Date Thu, 09 Jun 2016 21:56:21 GMT

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

Suma Shivaprasad commented on ATLAS-888:
----------------------------------------

This is occurring due to UriInfo being null when LocalAtlasClent is used in NotificationHookConsumer

> NPE in NotificationHookConsumer
> -------------------------------
>
>                 Key: ATLAS-888
>                 URL: https://issues.apache.org/jira/browse/ATLAS-888
>             Project: Atlas
>          Issue Type: Bug
>    Affects Versions: 0.7-incubating
>            Reporter: Suma Shivaprasad
>            Assignee: Suma Shivaprasad
>            Priority: Blocker
>             Fix For: 0.7-incubating
>
>
> 2016-06-08 15:54:22,375 ERROR - [NotificationHookConsumer thread-0:] ~ Unable to persist
entity instance (EntityResource:137)
> java.lang.NullPointerException
>         at org.apache.atlas.web.resources.EntityResource.submit(EntityResource.java:122)
>         at org.apache.atlas.LocalAtlasClient$1.invoke(LocalAtlasClient.java:82)
>         at org.apache.atlas.LocalAtlasClient$EntityOperation.run(LocalAtlasClient.java:118)
>         at org.apache.atlas.LocalAtlasClient.createEntity(LocalAtlasClient.java:85)
>         at org.apache.atlas.AtlasClient.createEntity(AtlasClient.java:652)
>         at org.apache.atlas.notification.NotificationHookConsumer$HookConsumer.handleMessage(NotificationHookConsumer.java:203)
>         at org.apache.atlas.notification.NotificationHookConsumer$HookConsumer.run(NotificationHookConsumer.java:187)
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:745)
> 2016-06-08 15:54:22,376 WARN  - [NotificationHookConsumer thread-0:] ~ Error handling
message org.apache.atlas.notification.hook.HookNotification$EntityCreateRequest@6b8492f1 (NotificationHookConsumer:233)
> org.apache.atlas.AtlasServiceException: Metadata service API CREATE_ENTITY failed with
status 500(Internal Server Error) Response Body (java.lang.NullPointerException
>         at org.apache.atlas.web.resources.EntityResource.submit(EntityResource.java:122)
>         at org.apache.atlas.LocalAtlasClient$1.invoke(LocalAtlasClient.java:82)
>         at org.apache.atlas.LocalAtlasClient$EntityOperation.run(LocalAtlasClient.java:118)
>         at org.apache.atlas.LocalAtlasClient.createEntity(LocalAtlasClient.java:85)
>         at org.apache.atlas.AtlasClient.createEntity(AtlasClient.java:652)
>         at org.apache.atlas.notification.NotificationHookConsumer$HookConsumer.handleMessage(NotificationHookConsumer.java:203)
>         at org.apache.atlas.notification.NotificationHookConsumer$HookConsumer.run(NotificationHookConsumer.java:187)
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:745)
> )
>         at org.apache.atlas.LocalAtlasClient$EntityOperation.run(LocalAtlasClient.java:122)
>         at org.apache.atlas.LocalAtlasClient.createEntity(LocalAtlasClient.java:85)
>         at org.apache.atlas.AtlasClient.createEntity(AtlasClient.java:652)
>         at org.apache.atlas.notification.NotificationHookConsumer$HookConsumer.handleMessage(NotificationHookConsumer.java:203)
>         at org.apache.atlas.notification.NotificationHookConsumer$HookConsumer.run(NotificationHookConsumer.java:187)
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message