java.lang.ClassCastException: com.google.gson.JsonArray cannot be cast to com.google.gson.JsonObject

GitHub | DavidLeoni | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Entity export doesn't work anymore

    GitHub | 1 year ago | DavidLeoni
    java.lang.ClassCastException: com.google.gson.JsonArray cannot be cast to com.google.gson.JsonObject

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.google.gson.JsonArray cannot be cast to com.google.gson.JsonObject

      at eu.trentorise.opendata.disiclient.services.EntityExportService.semantifyJsonObject()
    2. eu.trentorise.opendata
      CommitProcess.run
      1. eu.trentorise.opendata.disiclient.services.EntityExportService.semantifyJsonObject(EntityExportService.java:101)[disi-open-data-client-0.11.1-SNAPSHOT.jar:na]
      2. eu.trentorise.opendata.disiclient.services.EntityExportService.convertToJsonLd(EntityExportService.java:84)[disi-open-data-client-0.11.1-SNAPSHOT.jar:na]
      3. eu.trentorise.opendata.disiclient.services.EntityService.exportToJsonLd(EntityService.java:698)[disi-open-data-client-0.11.1-SNAPSHOT.jar:na]
      4. eu.trentorise.opendata.opendatarise.ekb.EntityServiceController.exportToJsonLd(EntityServiceController.java:48)[classes/:na]
      5. eu.trentorise.opendata.opendatarise.model.CommitProcess.run(CommitProcess.java:125)[classes/:na]
      5 frames
    3. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)[na:1.7.0_80]
      1 frame