org.springframework.http.converter.HttpMessageNotWritableException: Could not write content: No serializer found for class groovy.lang.GroovyClassLoader$1 and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: java.util.LinkedHashMap["applicationConfig: [classpath:/application.groovy]#development"]->java.util.LinkedHashMap["a"]->_run_closure1["delegate"]->script14676936485701338056614["binding"]->groovy.util.ConfigBinding["callable"]->groovy.util._parse_closure6["delegate"]->groovy.util.ConfigSlurper["classLoader"]->groovy.lang.GroovyClassLoader["resourceLoader"]); nested exception is com.fasterxml.jackson.databind.JsonMappingException: No serializer found for class groovy.lang.GroovyClassLoader$1 and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: java.util.LinkedHashMap["applicationConfig: [classpath:/application.groovy]#development"]->java.util.LinkedHashMap["a"]->_run_closure1["delegate"]->script14676936485701338056614["binding"]->groovy.util.ConfigBinding["callable"]->groovy.util._parse_closure6["delegate"]->groovy.util.ConfigSlurper["classLoader"]->groovy.lang.GroovyClassLoader["resourceLoader"])

Stack Overflow | Matthew Long | 11 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

    Spring Boot Actuator /env endpoint response malformed when closure specified in application.groovy

    Stack Overflow | 11 months ago | Matthew Long
    org.springframework.http.converter.HttpMessageNotWritableException: Could not write content: No serializer found for class groovy.lang.GroovyClassLoader$1 and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: java.util.LinkedHashMap["applicationConfig: [classpath:/application.groovy]#development"]->java.util.LinkedHashMap["a"]->_run_closure1["delegate"]->script14676936485701338056614["binding"]->groovy.util.ConfigBinding["callable"]->groovy.util._parse_closure6["delegate"]->groovy.util.ConfigSlurper["classLoader"]->groovy.lang.GroovyClassLoader["resourceLoader"]); nested exception is com.fasterxml.jackson.databind.JsonMappingException: No serializer found for class groovy.lang.GroovyClassLoader$1 and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: java.util.LinkedHashMap["applicationConfig: [classpath:/application.groovy]#development"]->java.util.LinkedHashMap["a"]->_run_closure1["delegate"]->script14676936485701338056614["binding"]->groovy.util.ConfigBinding["callable"]->groovy.util._parse_closure6["delegate"]->groovy.util.ConfigSlurper["classLoader"]->groovy.lang.GroovyClassLoader["resourceLoader"])
  2. 0

    Spring Rest - Exception Producing Json Data

    Stack Overflow | 2 years ago | Damien Gallagher
    org.springframework.http.converter.HttpMessageNotWritableException: Could not write content: No serializer found for class org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: com.test.domain.dao.CompanyVO_$$_jvstb99_6["handler"]); nested exception is com.fasterxml.jackson.databind.JsonMappingException: No serializer found for class org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: com.test.domain.dao.CompanyVO_$$_jvstb99_6["handler"])
  3. 0

    @JsonIgnoreProperties fails on a property when a property value references its own bean

    GitHub | 3 years ago | benze
    com.fasterxml.jackson.databind.JsonMappingException: Direct self-reference leading to cycle (through reference chain: java.util.HashMap["user"]->com.ia.domain.User["createdBy"])
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Option Module not working with Spring MVC 3.x

    GitHub | 4 years ago | yairogen
    com.fasterxml.jackson.databind.JsonMappingException: (None,None) (of class scala.Tuple2) (through reference chain: com.foo.Instance["product"]->com.cisco.vcs.foundation.scope.model.Product["foundationMachineId"])
  6. 0

    Infinite recursion error when using JaxbAnnotationIntrospector with JavaTypeXmlAdapter that does not change entity class.

    GitHub | 5 years ago | mosyda
    com.fasterxml.jackson.databind.JsonMappingException: Infinite recursion (StackOverflowError) (through reference chain: test.jackson.Entity["relatedEntities"]->test.jackson.RelatedEntities["relatedEntity"])

    10 unregistered visitors
    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

      No serializer found for class groovy.lang.GroovyClassLoader$1 and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: java.util.LinkedHashMap["applicationConfig: [classpath:/application.groovy]#development"]->java.util.LinkedHashMap["a"]->_run_closure1["delegate"]->script14676936485701338056614["binding"]->groovy.util.ConfigBinding["callable"]->groovy.util._parse_closure6["delegate"]->groovy.util.ConfigSlurper["classLoader"]->groovy.lang.GroovyClassLoader["resourceLoader"])

      at com.fasterxml.jackson.databind.ser.impl.UnknownSerializer.failForEmpty()
    2. Jackson
      ObjectMapper.writeValue
      1. com.fasterxml.jackson.databind.ser.impl.UnknownSerializer.failForEmpty(UnknownSerializer.java:59)[jackson-databind-2.4.6.jar:2.4.6]
      2. com.fasterxml.jackson.databind.ser.impl.UnknownSerializer.serialize(UnknownSerializer.java:26)[jackson-databind-2.4.6.jar:2.4.6]
      3. com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:505)[jackson-databind-2.4.6.jar:2.4.6]
      4. com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:639)[jackson-databind-2.4.6.jar:2.4.6]
      5. com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:152)[jackson-databind-2.4.6.jar:2.4.6]
      6. com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:505)[jackson-databind-2.4.6.jar:2.4.6]
      7. com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:639)[jackson-databind-2.4.6.jar:2.4.6]
      8. com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:152)[jackson-databind-2.4.6.jar:2.4.6]
      9. com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:505)[jackson-databind-2.4.6.jar:2.4.6]
      10. com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:639)[jackson-databind-2.4.6.jar:2.4.6]
      11. com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:152)[jackson-databind-2.4.6.jar:2.4.6]
      12. com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:505)[jackson-databind-2.4.6.jar:2.4.6]
      13. com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:639)[jackson-databind-2.4.6.jar:2.4.6]
      14. com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:152)[jackson-databind-2.4.6.jar:2.4.6]
      15. com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:505)[jackson-databind-2.4.6.jar:2.4.6]
      16. com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:639)[jackson-databind-2.4.6.jar:2.4.6]
      17. com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:152)[jackson-databind-2.4.6.jar:2.4.6]
      18. com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:505)[jackson-databind-2.4.6.jar:2.4.6]
      19. com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:639)[jackson-databind-2.4.6.jar:2.4.6]
      20. com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:152)[jackson-databind-2.4.6.jar:2.4.6]
      21. com.fasterxml.jackson.databind.ser.std.MapSerializer.serializeFields(MapSerializer.java:491)[jackson-databind-2.4.6.jar:2.4.6]
      22. com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:412)[jackson-databind-2.4.6.jar:2.4.6]
      23. com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:27)[jackson-databind-2.4.6.jar:2.4.6]
      24. com.fasterxml.jackson.databind.ser.std.MapSerializer.serializeFields(MapSerializer.java:491)[jackson-databind-2.4.6.jar:2.4.6]
      25. com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:412)[jackson-databind-2.4.6.jar:2.4.6]
      26. com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:27)[jackson-databind-2.4.6.jar:2.4.6]
      27. com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:128)[jackson-databind-2.4.6.jar:2.4.6]
      28. com.fasterxml.jackson.databind.ObjectMapper.writeValue(ObjectMapper.java:1902)[jackson-databind-2.4.6.jar:2.4.6]
      28 frames
    3. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_51]
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_51]
      3. java.lang.Thread.run(Thread.java:745)[na:1.8.0_51]
      3 frames