com.fasterxml.jackson.databind.JsonMappingException: tests.TestAny cannot be cast to java.lang.String (through reference chain: scala.collection.convert.IterableWrapper[0]->tests.AnyHolder["testAny"])

GitHub | devshorts | 4 months ago
  1. 0

    Cannot serialize option of anyval in a collection

    GitHub | 4 months ago | devshorts
    com.fasterxml.jackson.databind.JsonMappingException: tests.TestAny cannot be cast to java.lang.String (through reference chain: scala.collection.convert.IterableWrapper[0]->tests.AnyHolder["testAny"])
  2. 0

    Jackson / JSON Custom Serializers for polymorphic classes in collections

    Stack Overflow | 2 years ago | fbl
    com.fasterxml.jackson.databind.JsonMappingException: Type id handling not implemented for type com.example.Cat (through reference chain: com.example.PolyZoo["animals"]->scala.collection.convert.IterableWrapper[0])
  3. 0

    endless loop in production - database access

    GitHub | 2 years ago | Gateway85
    org.glassfish.jersey.server.internal.process.MappableException: com.fasterxml.jackson.databind.JsonMappingException: Infinite recursion (StackOverflowError) (through reference chain: com._37coins.persistence.dao.OauthAccess["owner"]->com._37coins.persistence.dao.Account["oauthAccessTokens"]->org.datanucleus.store.types.wrappers.backed.Collection[0]->com._37coins.persistence.dao.OauthAccess["owner"]->com._37coins.persistence.dao.Account["oauthAccessTokens"]->org.datanucleus.store.types.wrappers.backed.Collection[0]->com._37coins.persistence.dao.OauthAccess["owner"]->com._37coins.persistence.dao.Account["oauthAccessTokens"]->org.datanucleus.store.types.wrappers.backed.Collection[0]->com._37coins.persistence.dao.OauthAccess["owner"]->com._37coins.persistence.dao.Account["oauthAccessTokens"]->org.datanucleus.store.types.wrappers.backed.Collection[0]->com._37coins.persistence.dao.OauthAccess["owner"]->com._37coins.persistence.dao.Account["oauthAccessTokens"]->org.datanucleus.store.types.wrappers.backed.Collection[0]->com._37coins.persistence.dao.OauthAccess["owner"]->com._37coins.persistence.dao.Account["oauthAccessTokens"]->org.datanucleus.store.types.wrappers.backed.Collection[0]->com._37coins.persistence.dao.OauthAccess["owner"]->com._37coins.persistence.dao.Account["oauthAccessTokens"]->org.datanucleus.store.types.wrappers.backed.Collection[0]->com._37coins.persistence.dao.OauthAccess["owner"]->com._37coins.persistence.dao.Account["oauthAccessTokens"]->org.datanucleus.store.types.wrappers.backed.Collection[0]->com._37coins.persistence.dao.OauthAccess["owner"]->com._37coins.persistence.dao.Account["oauthAccessTokens"]->org.datanucleus.store.types.wrappers.backed.Collection[0]->com._37coins.persistence.dao.OauthAccess["owner"]->com._37coins.persistence.dao.Account["oauthAccessTokens"]->org.datanucleus.store.types.wrappers. .... "oauthAccessTokens"]->org.datanucleus.store.types.wrappers.backed.Collection[0]->com._37coins.persistence.dao.OauthAccess["owner"]->com._37coins.persistence.dao.Account["oauthAccessTokens"]->org.datanucleus.store.types.wrappers.backed.Collection[0]->com._37coins.persistence.dao.OauthAccess["owner"]->com._37coins.persistence.dao.Account["oauthAccessTokens"]->org.datanucleus.store.types.wrappers.backed.Collection[0]->com._37coins.persistence.dao.OauthAccess["owner"])
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    mapping java.util.Date

    Google Groups | 4 years ago | Claudio Miranda
    org.jongo.marshall.MarshallingException: Unable to unmarshall result to class publifacil.model.Publicidade from content { "_id" : { "$oid" : "5197b29afce9c6b092185c92"} , "cliente" : "5197af4bfce9c6b092185c8f" , "lastaccess" : "new ISODate()" , "nome" : "Campanha Promo Java 1" , "palavras" : [ "java" , "javaee"] , "texto" : "Campanha promocional de curso Java 1, texto extendido" , "texto_peq" : "Campanha promocional de curso Java 1" , "tipo" : 1.0 , "url" : "http://lab1.claudius.com/campanha1"}
  6. 0

    com.fasterxml.jackson.databind.JsonMappingException: [Ljava.lang.String; cannot be cast to java.lang.String (through reference chain: java.util.Properties["names"])

    GitHub | 8 months ago | ljubad
    com.fasterxml.jackson.databind.JsonMappingException: [Ljava.lang.String; cannot be cast to java.lang.String (through reference chain: java.util.Properties["names"])

    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.databind.JsonMappingException

      tests.TestAny cannot be cast to java.lang.String (through reference chain: scala.collection.convert.IterableWrapper[0]->tests.AnyHolder["testAny"])

      at com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath()
    2. Jackson
      CollectionSerializer.serializeContents
      1. com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:378)
      2. com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:338)
      3. com.fasterxml.jackson.databind.ser.std.StdSerializer.wrapAndThrow(StdSerializer.java:342)
      4. com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:686)
      5. com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:157)
      6. com.fasterxml.jackson.databind.ser.std.CollectionSerializer.serializeContents(CollectionSerializer.java:149)
      6 frames
    3. jackson-module-scala
      UnresolvedIterableSerializer.serializeContents
      1. com.fasterxml.jackson.module.scala.ser.IterableSerializer$class.serializeContents(IterableSerializerModule.scala:28)
      2. com.fasterxml.jackson.module.scala.ser.UnresolvedIterableSerializer.serializeContents(IterableSerializerModule.scala:56)
      2 frames