org.springframework.integration.transformer.MessageTransformationException: failed to transform message

GitHub | marcelalburg | 2 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Problems serializing Avro Schema object

    GitHub | 2 years ago | marcelalburg
    org.springframework.integration.transformer.MessageTransformationException: failed to transform message

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      Can not create generator for character-based (not byte-based) target

      at com.fasterxml.jackson.dataformat.avro.AvroFactory._nonByteTarget()
    2. Jackson-dataformat-Avro
      AvroFactory._createGenerator
      1. com.fasterxml.jackson.dataformat.avro.AvroFactory._nonByteTarget(AvroFactory.java:384)
      2. com.fasterxml.jackson.dataformat.avro.AvroFactory._createGenerator(AvroFactory.java:355)
      2 frames
    3. Jackson-core
      JsonFactory.createGenerator
      1. com.fasterxml.jackson.core.JsonFactory.createGenerator(JsonFactory.java:1051)
      1 frame
    4. Jackson
      ObjectMapper.writeValueAsString
      1. com.fasterxml.jackson.databind.ObjectMapper.writeValueAsString(ObjectMapper.java:2323)
      1 frame
    5. Spring Integration Core
      ErrorHandlingTaskExecutor$1.run
      1. org.springframework.integration.support.json.Jackson2JsonObjectMapper.toJson(Jackson2JsonObjectMapper.java:59)
      2. org.springframework.integration.json.ObjectToJsonTransformer.doTransform(ObjectToJsonTransformer.java:96)
      3. org.springframework.integration.transformer.AbstractTransformer.transform(AbstractTransformer.java:33)
      4. org.springframework.integration.transformer.MessageTransformingHandler.handleRequestMessage(MessageTransformingHandler.java:68)
      5. org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleMessageInternal(AbstractReplyProducingMessageHandler.java:170)
      6. org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:78)
      7. org.springframework.integration.endpoint.PollingConsumer.handleMessage(PollingConsumer.java:74)
      8. org.springframework.integration.endpoint.AbstractPollingEndpoint.doPoll(AbstractPollingEndpoint.java:219)
      9. org.springframework.integration.endpoint.AbstractPollingEndpoint.access$000(AbstractPollingEndpoint.java:55)
      10. org.springframework.integration.endpoint.AbstractPollingEndpoint$1.call(AbstractPollingEndpoint.java:149)
      11. org.springframework.integration.endpoint.AbstractPollingEndpoint$1.call(AbstractPollingEndpoint.java:146)
      12. org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller$1.run(AbstractPollingEndpoint.java:298)
      13. org.springframework.integration.util.ErrorHandlingTaskExecutor$1.run(ErrorHandlingTaskExecutor.java:52)
      13 frames
    6. Spring Core
      SyncTaskExecutor.execute
      1. org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:50)
      1 frame
    7. Spring Integration Core
      AbstractPollingEndpoint$Poller.run
      1. org.springframework.integration.util.ErrorHandlingTaskExecutor.execute(ErrorHandlingTaskExecutor.java:49)
      2. org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller.run(AbstractPollingEndpoint.java:292)
      2 frames
    8. Spring Context
      ReschedulingRunnable.run
      1. org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
      2. org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81)
      2 frames
    9. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:262)
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
      5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      7. java.lang.Thread.run(Thread.java:744)
      7 frames