com.fasterxml.jackson.core.JsonGenerationException

Can not write a field name, expecting a value

Solutions on the web43

  • via GitHub by victornoel
    , 6 months ago
    Can not write a field name, expecting a value
  • via GitHub by jasontedor
    , 7 months ago
    Can not write a field name, expecting a value
  • Can not write a field name, expecting a value
  • Stack trace

    • com.fasterxml.jackson.core.JsonGenerationException: Can not write a field name, expecting a value at com.fasterxml.jackson.core.JsonGenerator._reportError(JsonGenerator.java:1886) at com.fasterxml.jackson.core.json.UTF8JsonGenerator.writeFieldName(UTF8JsonGenerator.java:235) at org.elasticsearch.common.xcontent.json.JsonXContentGenerator.writeFieldName(JsonXContentGenerator.java:152) at org.elasticsearch.common.xcontent.XContentBuilder.field(XContentBuilder.java:264) at org.elasticsearch.common.xcontent.XContentBuilder.field(XContentBuilder.java:255) at org.elasticsearch.common.xcontent.XContentBuilder.startObject(XContentBuilder.java:169) at org.elasticsearch.action.ActionWriteResponse$ShardInfo.toXContent(ActionWriteResponse.java:147) at org.elasticsearch.common.Strings.toString(Strings.java:1103) at org.elasticsearch.common.Strings.toString(Strings.java:1089) at org.elasticsearch.action.ActionWriteResponse$ShardInfo.toString(ActionWriteResponse.java:164) at java.lang.String.valueOf(String.java:2982) at java.lang.StringBuilder.append(StringBuilder.java:131) at org.elasticsearch.action.index.IndexResponse.toString(IndexResponse.java:118) at com.hophman.onlineshop.behavior.impex.DefaultProductImporter.importCSV(DefaultProductImporter.java:69) at OnlineShopApplication.main(OnlineShopApplication.java:13)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    5 times, 6 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    2 more bugmates