Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-13528

Ops dashboard handler have problem with deserializing schedule info

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 5.0.0
    • Component/s: None
    • Labels:
      None
    • Rank:
      1|i00d9r:

      Description

      When ops dashboard handler tries to return results with scheduled pipeline, the following error occurs:

      2018-06-11 14:13:38,617 - ERROR [appfabric-executor-15:c.c.c.c.HttpExceptionHandler@70] - Unexpected error: request=GET /v3/dashboard?duration=86400&namespace=default&start=1528668818 user=<null>:
      java.lang.RuntimeException: Unable to invoke no-args constructor for interface co.cask.cdap.api.schedule.TriggeringScheduleInfo. Register an InstanceCreator with Gson for this type may fix this problem.
      	at com.google.gson.internal.ConstructorConstructor$12.construct(ConstructorConstructor.java:210) ~[com.google.code.gson.gson-2.2.4.jar:na]
      	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:162) ~[com.google.code.gson.gson-2.2.4.jar:na]
      	at com.google.gson.Gson.fromJson(Gson.java:803) ~[com.google.code.gson.gson-2.2.4.jar:na]
      	at com.google.gson.Gson.fromJson(Gson.java:768) ~[com.google.code.gson.gson-2.2.4.jar:na]
      	at com.google.gson.Gson.fromJson(Gson.java:717) ~[com.google.code.gson.gson-2.2.4.jar:na]
      	at com.google.gson.Gson.fromJson(Gson.java:689) ~[com.google.code.gson.gson-2.2.4.jar:na]
      	at co.cask.cdap.gateway.handlers.OperationsDashboardHttpHandler.runRecordToDashboardRecord(OperationsDashboardHttpHandler.java:104) ~[na:na]
      

      This is error is caused by the lack of JSON deserializer for TriggeringScheduleInfo class in OperationsDashboardHttpHandler. Once the deserializer is added, the error will be fixed.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mao Chengfeng Mao
                Reporter:
                mao Chengfeng Mao
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: