com.fasterxml.jackson.databind.JsonMappingException: Not a >> map: >> {"type":"enum","name":"device_platform_type_enum","namespace":"com.shopkick.data","symbols":["ios","android","web"]} >> (through reference chain: >> org.apache.avro.generic.EnumSymbol["schema"]->org.apache.avro.EnumSchema["valueType"]) >> >> at >> com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:210) >> ~[com.fasterxml.jackson.core.jackson-databind-2.4.6.jar:2.4.6] >> >> at >> com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:177) >> ~[com.fasterxml.jackson.core.jackson-databind-2.4.6.jar:2.4.6] >> >> at >> com.fasterxml.jackson.databind.ser.std.StdSerializer.wrapAndThrow(StdSerializer.java:187) >> ~[com.fasterxml.jackson.core.jackson-databind-2.4.6.jar:2.4.6] >> >> at >> com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:647) >> ~[com.fasterxml.jackson.core.jackson-databind-2.4.6.jar:2.4.6] >> >> at >> com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:152) >> ~[com.fasterxml.jackson.core.jackson-databind-2.4.6.jar:2.4.6] >> >> at >> com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:505) >> ~[com.fasterxml.jackson.core.jackson-databind-2.4.6.jar:2.4.6] >> >> at >> com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:639) >> ~[com.fasterxml.jackson.core.jackson-databind-2.4.6.jar:2.4.6] >> >> at >> com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:152) >> ~[com.fasterxml.jackson.core.jackson-databind-2.4.6.jar:2.4.6] >> >> at >> com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:128) >> ~[com.fasterxml.jackson.core.jackson-databind-2.4.6.jar:2.4.6] >> >> at >> com.fasterxml.jackson.databind.ObjectMapper.writeValue(ObjectMapper.java:1902) >> ~[com.fasterxml.jackson.core.jackson-databind-2.4.6.jar:2.4.6] >> >> at >> com.fasterxml.jackson.core.base.GeneratorBase.writeObject(GeneratorBase.java:280) >> ~[com.fasterxml.jackson.core.jackson-core-2.4.6.jar:2.4.6] >> >> at >> com.fasterxml.jackson.core.JsonGenerator.writeObjectField(JsonGenerator.java:1255) >> ~[com.fasterxml.jackson.core.jackson-core-2.4.6.jar:2.4.6] >> >> at >> com.metamx.tranquility.druid.input.InputRowObjectWriter$$anonfun$com$metamx$tranquility$druid$input$InputRowObjectWriter$$writeJson$2.apply(InputRowObjectWriter.scala:86) >> ~[io.druid.tranquility-core-0.8.0.jar:0.8.0] >> >> at >> com.metamx.tranquility.druid.input.InputRowObjectWriter$$anonfun$com$metamx$tranquility$druid$input$InputRowObjectWriter$$writeJson$2.apply(InputRowObjectWriter.scala:84) >> ~[io.druid.tranquility-core-0.8.0.jar:0.8.0] >> >> at scala.collection.Iterator$class.foreach(Iterator.scala:742)

Google Groups | Ben Vogan | 10 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    AvroRuntimeException serializing Avro parsed messages

    Google Groups | 10 months ago | Ben Vogan
    com.fasterxml.jackson.databind.JsonMappingException: Not a >> map: >> {"type":"enum","name":"device_platform_type_enum","namespace":"com.shopkick.data","symbols":["ios","android","web"]} >> (through reference chain: >> org.apache.avro.generic.EnumSymbol["schema"]->org.apache.avro.EnumSchema["valueType"]) >> >> at >> com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:210) >> ~[com.fasterxml.jackson.core.jackson-databind-2.4.6.jar:2.4.6] >> >> at >> com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:177) >> ~[com.fasterxml.jackson.core.jackson-databind-2.4.6.jar:2.4.6] >> >> at >> com.fasterxml.jackson.databind.ser.std.StdSerializer.wrapAndThrow(StdSerializer.java:187) >> ~[com.fasterxml.jackson.core.jackson-databind-2.4.6.jar:2.4.6] >> >> at >> com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:647) >> ~[com.fasterxml.jackson.core.jackson-databind-2.4.6.jar:2.4.6] >> >> at >> com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:152) >> ~[com.fasterxml.jackson.core.jackson-databind-2.4.6.jar:2.4.6] >> >> at >> com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:505) >> ~[com.fasterxml.jackson.core.jackson-databind-2.4.6.jar:2.4.6] >> >> at >> com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:639) >> ~[com.fasterxml.jackson.core.jackson-databind-2.4.6.jar:2.4.6] >> >> at >> com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:152) >> ~[com.fasterxml.jackson.core.jackson-databind-2.4.6.jar:2.4.6] >> >> at >> com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:128) >> ~[com.fasterxml.jackson.core.jackson-databind-2.4.6.jar:2.4.6] >> >> at >> com.fasterxml.jackson.databind.ObjectMapper.writeValue(ObjectMapper.java:1902) >> ~[com.fasterxml.jackson.core.jackson-databind-2.4.6.jar:2.4.6] >> >> at >> com.fasterxml.jackson.core.base.GeneratorBase.writeObject(GeneratorBase.java:280) >> ~[com.fasterxml.jackson.core.jackson-core-2.4.6.jar:2.4.6] >> >> at >> com.fasterxml.jackson.core.JsonGenerator.writeObjectField(JsonGenerator.java:1255) >> ~[com.fasterxml.jackson.core.jackson-core-2.4.6.jar:2.4.6] >> >> at >> com.metamx.tranquility.druid.input.InputRowObjectWriter$$anonfun$com$metamx$tranquility$druid$input$InputRowObjectWriter$$writeJson$2.apply(InputRowObjectWriter.scala:86) >> ~[io.druid.tranquility-core-0.8.0.jar:0.8.0] >> >> at >> com.metamx.tranquility.druid.input.InputRowObjectWriter$$anonfun$com$metamx$tranquility$druid$input$InputRowObjectWriter$$writeJson$2.apply(InputRowObjectWriter.scala:84) >> ~[io.druid.tranquility-core-0.8.0.jar:0.8.0] >> >> at scala.collection.Iterator$class.foreach(Iterator.scala:742)
  2. 0

    Loading JSON Dataset fails with com.fasterxml.jackson.databind.JsonMappingException

    mail-archive.com | 2 years ago
    com.fasterxml.jackson.databind.JsonMappingException: Can not instantiate value of type [map type; class java.util.LinkedHashMap, [simple type, class java.lang.Object] -> [simple type, class java.lang.Object]] from String value; no single-String constructor/factory method at com.fasterxml.jackson.databind.deser.std.StdValueInstantiator._createFromStringFallbacks(StdValueInstantiator.java:428) at com.fasterxml.jackson.databind.deser.std.StdValueInstantiator.createFromString(StdValueInstantiator.java:299) at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:306) at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:26) at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:2993) at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2098) at org.apache.spark.sql.json.JsonRDD$$anonfun$parseJson$1$$anonfun$apply$5.apply(JsonRDD.scala:275) at org.apache.spark.sql.json.JsonRDD$$anonfun$parseJson$1$$anonfun$apply$5.apply(JsonRDD.scala:274)
  3. 0

    Loading JSON Dataset fails with com.fasterxml.jackson.databind.JsonMappingException

    apache.org | 2 years ago
    com.fasterxml.jackson.databind.JsonMappingException: Can not instantiate value of type [map type; class java.util.LinkedHashMap, [simple type, class java.lang.Object] -> [simple type, class java.lang.Object]] from String value; no single-String constructor/factory method at com.fasterxml.jackson.databind.deser.std.StdValueInstantiator._createFromStringFallbacks(StdValueInstantiator.java:428) at com.fasterxml.jackson.databind.deser.std.StdValueInstantiator.createFromString(StdValueInstantiator.java:299) at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:306) at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:26) at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:2993) at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2098) at org.apache.spark.sql.json.JsonRDD$$anonfun$parseJson$1$$anonfun$apply$5.apply(JsonRDD.scala:275) at org.apache.spark.sql.json.JsonRDD$$anonfun$parseJson$1$$anonfun$apply$5.apply(JsonRDD.scala:274)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.fasterxml.jackson.databind.JsonMappingException

      Not a >> map: >> {"type":"enum","name":"device_platform_type_enum","namespace":"com.shopkick.data","symbols":["ios","android","web"]} >> (through reference chain: >> org.apache.avro.generic.EnumSymbol["schema"]->org.apache.avro.EnumSchema["valueType"]) >> >> at >> com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:210) >> ~[com.fasterxml.jackson.core.jackson-databind-2.4.6.jar:2.4.6] >> >> at >> com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:177) >> ~[com.fasterxml.jackson.core.jackson-databind-2.4.6.jar:2.4.6] >> >> at >> com.fasterxml.jackson.databind.ser.std.StdSerializer.wrapAndThrow(StdSerializer.java:187) >> ~[com.fasterxml.jackson.core.jackson-databind-2.4.6.jar:2.4.6] >> >> at >> com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:647) >> ~[com.fasterxml.jackson.core.jackson-databind-2.4.6.jar:2.4.6] >> >> at >> com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:152) >> ~[com.fasterxml.jackson.core.jackson-databind-2.4.6.jar:2.4.6] >> >> at >> com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:505) >> ~[com.fasterxml.jackson.core.jackson-databind-2.4.6.jar:2.4.6] >> >> at >> com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:639) >> ~[com.fasterxml.jackson.core.jackson-databind-2.4.6.jar:2.4.6] >> >> at >> com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:152) >> ~[com.fasterxml.jackson.core.jackson-databind-2.4.6.jar:2.4.6] >> >> at >> com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:128) >> ~[com.fasterxml.jackson.core.jackson-databind-2.4.6.jar:2.4.6] >> >> at >> com.fasterxml.jackson.databind.ObjectMapper.writeValue(ObjectMapper.java:1902) >> ~[com.fasterxml.jackson.core.jackson-databind-2.4.6.jar:2.4.6] >> >> at >> com.fasterxml.jackson.core.base.GeneratorBase.writeObject(GeneratorBase.java:280) >> ~[com.fasterxml.jackson.core.jackson-core-2.4.6.jar:2.4.6] >> >> at >> com.fasterxml.jackson.core.JsonGenerator.writeObjectField(JsonGenerator.java:1255) >> ~[com.fasterxml.jackson.core.jackson-core-2.4.6.jar:2.4.6] >> >> at >> com.metamx.tranquility.druid.input.InputRowObjectWriter$$anonfun$com$metamx$tranquility$druid$input$InputRowObjectWriter$$writeJson$2.apply(InputRowObjectWriter.scala:86) >> ~[io.druid.tranquility-core-0.8.0.jar:0.8.0] >> >> at >> com.metamx.tranquility.druid.input.InputRowObjectWriter$$anonfun$com$metamx$tranquility$druid$input$InputRowObjectWriter$$writeJson$2.apply(InputRowObjectWriter.scala:84) >> ~[io.druid.tranquility-core-0.8.0.jar:0.8.0] >> >> at scala.collection.Iterator$class.foreach(Iterator.scala:742)

      at scala.collection.AbstractIterator.foreach()
    2. Scala
      AbstractIterator.foreach
      1. scala.collection.AbstractIterator.foreach(Iterator.scala:1194)
      1 frame