java.lang.ClassCastException: org.piwik.java.tracking.EcommerceItem cannot be cast to javax.json.JsonArray

GitHub | jahudi | 1 year ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    ClassCastException when trying to send PiwikRequest with EcommeceItem

    GitHub | 1 year ago | jahudi
    java.lang.ClassCastException: org.piwik.java.tracking.EcommerceItem cannot be cast to javax.json.JsonArray

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.piwik.java.tracking.EcommerceItem cannot be cast to javax.json.JsonArray

      at org.glassfish.json.JsonGeneratorImpl.write()
    2. JSR 353 (JSON Processing) Default Provider
      JsonArrayBuilderImpl$JsonArrayImpl.toString
      1. org.glassfish.json.JsonGeneratorImpl.write(JsonGeneratorImpl.java:275)
      2. org.glassfish.json.JsonWriterImpl.writeArray(JsonWriterImpl.java:102)
      3. org.glassfish.json.JsonWriterImpl.write(JsonWriterImpl.java:141)
      4. org.glassfish.json.JsonArrayBuilderImpl$JsonArrayImpl.toString(JsonArrayBuilderImpl.java:266)
      4 frames
    3. org.piwik.java
      PiwikTracker.sendRequest
      1. org.piwik.java.tracking.PiwikJsonArray.toString(PiwikJsonArray.java:61)
      2. org.piwik.java.tracking.PiwikRequest.getUrlEncodedQueryString(PiwikRequest.java:1469)
      3. org.piwik.java.tracking.PiwikTracker.sendRequest(PiwikTracker.java:49)
      3 frames