Nixon Rodrigues created ATLAS-3459:
--------------------------------------

             Summary: JsonSyntaxException while processing Atlas hook message.
                 Key: ATLAS-3459
                 URL: https://issues.apache.org/jira/browse/ATLAS-3459
             Project: Atlas
          Issue Type: Bug
    Affects Versions: 0.8.3
            Reporter: Nixon Rodrigues
            Assignee: Nixon Rodrigues
             Fix For: 0.8.4


Atlas hook message processing is stopped with below exception.

{noformat}
019-10-09 01:46:49,764 WARN  - [NotificationHookConsumer thread-0:] ~ Exception 
in NotificationHookConsumer (NotificationHookConsumer:392)
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected 
BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:221)
at com.google.gson.Gson.fromJson(Gson.java:861)
at com.google.gson.Gson.fromJson(Gson.java:826)
at com.google.gson.Gson.fromJson(Gson.java:775)
at com.google.gson.Gson.fromJson(Gson.java:747)
at 
org.apache.atlas.notification.AtlasNotificationMessageDeserializer.deserialize(AtlasNotificationMessageDeserializer.java:102)
at org.apache.atlas.kafka.AtlasKafkaConsumer.receive(AtlasKafkaConsumer.java:75)
at org.apache.atlas.kafka.AtlasKafkaConsumer.receive(AtlasKafkaConsumer.java:55)
at 
org.apache.atlas.notification.NotificationHookConsumer$HookConsumer.doWork(NotificationHookConsumer.java:384)
at kafka.utils.ShutdownableThread.run(ShutdownableThread.scala:64)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was 
BEGIN_ARRAY at line 1 column 2 path $
at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:388)
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:210)
{noformat}



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

Reply via email to