com.fasterxml.jackson.databind.JsonMappingException: No serializer found for class org.jgrapht.graph.AbstractBaseGraph$ArrayListFactory and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: org.jgrapht.graph.SimpleDirectedGraph["edgeSetFactory"])

Stack Overflow | yann89 | 8 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    How can I serialize a jgrapht simple graph to json?

    Stack Overflow | 8 months ago | yann89
    com.fasterxml.jackson.databind.JsonMappingException: No serializer found for class org.jgrapht.graph.AbstractBaseGraph$ArrayListFactory and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: org.jgrapht.graph.SimpleDirectedGraph["edgeSetFactory"])
  2. 0

    How to send Multipart form data with restTemplate Spring 4-mvc

    Stack Overflow | 1 year ago | Tornike Gegeshidze
    org.springframework.http.converter.HttpMessageNotWritableException: Could not write content: No serializer found for class java.io.FileDescriptor and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: java.io.FileInputStream["fd"]); nested exception is com.fasterxml.jackson.databind.JsonMappingException: No serializer found for class java.io.FileDescriptor and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: java.io.FileInputStream["fd"])
  3. 0

    change master to slave

    GitHub | 2 years ago | wenxueliu
    com.fasterxml.jackson.databind.JsonMappingException: No serializer found for class java.io.ByteArrayInputStream and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationConfig.SerializationFeature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: org.restlet.data.Status["throwable"]->com.fasterxml.jackson.databind.JsonMappingException["location"]->com.fasterxml.jackson.core.JsonLocation["sourceRef"])
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    After upgrade from Jersey 2.4 to Jersey 2.5.1, we have problems with resource methods which return collections. For example when invoking the following method: {code:java} @GET @Path("test") public List<Task> test() { throw new javax.ws.rs.WebApplicationException(Response .status(Response.Status.CONFLICT) .entity(new ErrorPayload("a")) .type(MediaType.APPLICATION_JSON_TYPE) .build() ); } {code} JsonMappingException is thrown: {noformat} com.fasterxml.jackson.databind.JsonMappingException: Incompatible types: declared root type ([collection type; class java.util.List, contains [simple type, class com.odesk.editorial.evaluation.to.Task]]) vs com.odesk.editorial.evaluation.to.payloads.ErrorPayload at com.fasterxml.jackson.databind.SerializerProvider._reportIncompatibleRootType(SerializerProvider.java:790) at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:208) at com.fasterxml.jackson.databind.ObjectWriter.writeValue(ObjectWriter.java:496) at com.fasterxml.jackson.jaxrs.base.ProviderBase.writeTo(ProviderBase.java:542) at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.invokeWriteTo(WriterInterceptorExecutor.java:243) at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.aroundWriteTo(WriterInterceptorExecutor.java:230) at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:149) at org.glassfish.jersey.server.internal.JsonWithPaddingInterceptor.aroundWriteTo(JsonWithPaddingInterceptor.java:103) at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:149) at org.glassfish.jersey.server.internal.MappableExceptionWrapperInterceptor.aroundWriteTo(MappableExceptionWrapperInterceptor.java:88) at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:149) at org.glassfish.jersey.message.internal.MessageBodyFactory.writeTo(MessageBodyFactory.java:1139) at org.glassfish.jersey.server.ServerRuntime$Responder.writeResponse(ServerRuntime.java:574) at org.glassfish.jersey.server.ServerRuntime$Responder.processResponse(ServerRuntime.java:381) at org.glassfish.jersey.server.ServerRuntime$Responder.process(ServerRuntime.java:421) at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:265) at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) at org.glassfish.jersey.internal.Errors.process(Errors.java:315) at org.glassfish.jersey.internal.Errors.process(Errors.java:297) at org.glassfish.jersey.internal.Errors.process(Errors.java:267) at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:318) {noformat} Expected result: serialized ErrorPayload is JSON format is sent to browser. If I change method definition to {code:java} @GET @Path("test") public Task test() { .... } {code} it works as expected

    Java.net JIRA | 3 years ago | ymakhno
    com.fasterxml.jackson.databind.JsonMappingException: Incompatible types: declared root type ([collection type; class java.util.List, contains [simple type, class com.odesk.editorial.evaluation.to.Task]]) vs com.odesk.editorial.evaluation.to.payloads.ErrorPayload
  6. 0

    InputState refactoring broke /system/inputs REST endpoint

    GitHub | 2 years ago | bernd
    org.glassfish.jersey.server.internal.process.MappableException: com.fasterxml.jackson.databind.JsonMappingException: No serializer found for class org.graylog2.inputs.codecs.GelfChunkAggregator and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: com.google.common.collect.RegularImmutableMap["inputs"]->java.util.ArrayList[1]->org.graylog2.plugin.IOState["stoppable"]->org.graylog2.inputs.gelf.tcp.GELFTCPInput["codec"]->org.graylog2.inputs.codecs.GelfCodec["aggregator"])

  1. Axelo 1 times, last 4 weeks ago
  2. qavid 1 times, last 12 months ago
9 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 org.jgrapht.graph.AbstractBaseGraph$ArrayListFactory and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: org.jgrapht.graph.SimpleDirectedGraph["edgeSetFactory"])

    at com.fasterxml.jackson.databind.ser.impl.UnknownSerializer.failForEmpty()
  2. Jackson
    ObjectWriter.writeValue
    1. com.fasterxml.jackson.databind.ser.impl.UnknownSerializer.failForEmpty(UnknownSerializer.java:69)
    2. com.fasterxml.jackson.databind.ser.impl.UnknownSerializer.serialize(UnknownSerializer.java:32)
    3. com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:693)
    4. com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:675)
    5. com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:157)
    6. com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:130)
    7. com.fasterxml.jackson.databind.ObjectWriter$Prefetch.serialize(ObjectWriter.java:1387)
    8. com.fasterxml.jackson.databind.ObjectWriter._configAndWriteValue(ObjectWriter.java:1088)
    9. com.fasterxml.jackson.databind.ObjectWriter.writeValue(ObjectWriter.java:909)
    9 frames
  3. ms.fragment
    JSONTreeGenerator.main
    1. ms.fragment.JSONTreeGenerator.main(JSONTreeGenerator.java:45)
    1 frame
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:497)
    4 frames
  5. IDEA
    AppMain.main
    1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
    1 frame