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 | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Cannot serialize option of anyval in a collection

    GitHub | 7 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 | 3 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

    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