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

JsonSyntaxException while processing Atlas hook message.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.8.3
    • Fix Version/s: 0.8.4
    • Component/s: None
    • Labels:
      None

      Description

      Atlas hook message processing is stopped with below exception.

      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)
      

        Attachments

        1. ATLAS-3459-0.8.patch
          2 kB
          Nixon Rodrigues

          Activity

            People

            • Assignee:
              nixon Nixon Rodrigues
              Reporter:
              nixon Nixon Rodrigues
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: