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 | 5 months ago
  1. 0

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

    Stack Overflow | 5 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

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

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

    I see ClientHandlerException when I am trying to write a POJO

    GitHub | 2 years ago | sravanr
    com.sun.jersey.api.client.ClientHandlerException: org.apache.http.client.ClientProtocolException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    RabbitMQ firehose can't be serialized

    GitHub | 2 years ago | gianm
    com.fasterxml.jackson.databind.JsonMappingException: No serializer found for class com.rabbitmq.client.impl.LongStringHelper$ByteArrayLongString and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: io.druid.indexing.common.task.RealtimeIndexTask["spec"]->io.druid.segment.realtime.FireDepartment["ioConfig"]->io.druid.segment.indexing.RealtimeIOConfig["firehose"]->io.druid.firehose.rabbitmq.RabbitMQFirehoseFactory["connectionFactory"]->io.druid.firehose.rabbitmq.JacksonifiedConnectionFactory["clientProperties"]->java.util.HashMap["product"])
  6. 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"])

    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