com.fasterxml.jackson.core.JsonGenerationException: Current context not Array but Object

GitHub | szaccaria | 2 months ago
  1. 0

    GitHub comment 19#250904810

    GitHub | 2 months ago | szaccaria
    com.fasterxml.jackson.core.JsonGenerationException: Current context not Array but Object
  2. 0

    Combination of JsonUnwrapped and JsonTypeInfo(include=As.WRAPPER_OBJECT) fails

    GitHub | 4 years ago | pgelinas
    com.fasterxml.jackson.core.JsonGenerationException: Can not start an object, expecting field name
  3. 0

    @JsonTypeInfo (de)serialization fails for polymorphic array types and external property

    GitHub | 2 years ago | dashorst
    com.fasterxml.jackson.core.JsonGenerationException: Can not write a field name, expecting a value
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 21872#263716278

    GitHub | 3 days ago | jasontedor
    com.fasterxml.jackson.core.JsonGenerationException: Can not write a field name, expecting a value
  6. 0

    jackson-dataformat-xml 2.4.1 (ex 2.2.2) tests failure

    GitHub | 3 years ago | puntogil
    com.fasterxml.jackson.core.JsonGenerationException: Underlying Stax XMLStreamWriter (of type com.sun.xml.internal.stream.writers.XMLStreamWriterImpl) does not implement Stax2 API natively and is missing method 'writeRaw': this breaks functionality such as indentation that relies on it. You need to upgrade to using compliant Stax implementation like Woodstox or Aalto

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.fasterxml.jackson.core.JsonGenerationException

      Current context not Array but Object

      at com.fasterxml.jackson.core.JsonGenerator._reportError()
    2. Jackson-core
      WriterBasedJsonGenerator.writeEndArray
      1. com.fasterxml.jackson.core.JsonGenerator._reportError(JsonGenerator.java:1897)
      2. com.fasterxml.jackson.core.json.WriterBasedJsonGenerator.writeEndArray(WriterBasedJsonGenerator.java:233)
      2 frames
    3. Jackson
      ObjectWriter.writeValueAsString
      1. com.fasterxml.jackson.databind.ser.std.ObjectArraySerializer.serialize(ObjectArraySerializer.java:217)
      2. com.fasterxml.jackson.databind.ser.std.ObjectArraySerializer.serialize(ObjectArraySerializer.java:26)
      3. com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:292)
      4. com.fasterxml.jackson.databind.ObjectWriter$Prefetch.serialize(ObjectWriter.java:1419)
      5. com.fasterxml.jackson.databind.ObjectWriter._configAndWriteValue(ObjectWriter.java:1147)
      6. com.fasterxml.jackson.databind.ObjectWriter.writeValueAsString(ObjectWriter.java:1020)
      6 frames
    4. com.cesaco.jackson
      Test.main
      1. com.cesaco.jackson.Test.main(Test.java:25)
      1 frame