title: Exception in thread "SimpleMessageListenerContainer-2" java.lang.NoSuchFieldError: logger
body: <p>I am doing a PoC with spring cloud stream and routing from consumer for <code>SQS</code> using library <code>https://github.com/idealo/spring-cloud-stream-binder-sqs</code>. I am getting error like
  <code>Exception in thread &quot;SimpleMessageListenerContainer-2&quot; java.lang.NoSuchFieldError: logger</code></p>
  <p>Below is the code and stack trace: can anyone help me in this?</p>
  <pre><code> @Override
      public Message&lt;String&gt; apply(Message&lt;String&gt; studioIntegrationEventMessage) {
          
              return MessageBuilder.withPayload(&quot;Success from messagebuilder&quot;)
                      .setHeader(&quot;spring.cloud.stream.sendto.destination&quot;, &quot;amos-out-0&quot;).build();
  //            sender.send(&quot;amos-out-0&quot;,&quot;success&quot;);
  
         
  
      }
  </code></pre>
  <p>I also tried with <code>StreamBridge</code> and I get exact same issue.</p>
  <pre><code>Exception in thread &quot;SimpleMessageListenerContainer-2&quot; java.lang.NoSuchFieldError: logger
      at org.springframework.cloud.stream.function.FunctionConfiguration$FunctionToDestinationBinder$1.doSendMessage(FunctionConfiguration.java:602)
      at org.springframework.cloud.stream.function.FunctionConfiguration$FunctionToDestinationBinder$1.handleMessageInternal(FunctionConfiguration.java:594)
      at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:69)
      at org.springframework.integration.dispatcher.AbstractDispatcher.tryOptimizedDispatch(AbstractDispatcher.java:115)
      at org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:133)
      at org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:106)
      at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:72)
      at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:570)
      at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:520)
      at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:187)
      at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:166)
      at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:47)
      at org.springframework.messaging.core.AbstractMessageSendingTemplate.send(AbstractMessageSendingTemplate.java:109)
      at org.springframework.integration.endpoint.MessageProducerSupport.sendMessage(MessageProducerSupport.java:208)
      at org.springframework.integration.aws.inbound.SqsMessageDrivenChannelAdapter.access$400(SqsMessageDrivenChannelAdapter.java:60)
      at org.springframework.integration.aws.inbound.SqsMessageDrivenChannelAdapter$IntegrationQueueMessageHandler.handleMessageInternal(SqsMessageDrivenChannelAdapter.java:194)
      at org.springframework.messaging.handler.invocation.AbstractMethodMessageHandler.handleMessage(AbstractMethodMessageHandler.java:454)
      at io.awspring.cloud.messaging.listener.SimpleMessageListenerContainer.executeMessage(SimpleMessageListenerContainer.java:222)
      at io.awspring.cloud.messaging.listener.SimpleMessageListenerContainer$MessageGroupExecutor.run(SimpleMessageListenerContainer.java:426)
      at io.awspring.cloud.messaging.listener.SimpleMessageListenerContainer$SignalExecutingRunnable.run(SimpleMessageListenerContainer.java:310)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)
  
  </code></pre>