Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-6921

camel-netty - producer channel pool should not close channel on destroy from pool, but noop

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.10.7, 2.11.2, 2.12.1
    • Fix Version/s: 2.11.3, 2.12.2, 2.13.0
    • Component/s: camel-netty
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      This can lead to a NPE in message received in ClientChannelHandler

      2013-10-31 13:03:18,046 | DEBUG | w I/O  worker #1 | NettyProducer                    | ?                                   ? | 234 - org.apache.camel.camel-netty - 2.10.6 | Closing channel as an exception was thrown from Netty
      java.lang.NullPointerException
      	at org.apache.camel.util.ExchangeHelper.isOutCapable(ExchangeHelper.java:370)
      	at org.apache.camel.component.netty.handlers.ClientChannelHandler.messageReceived(ClientChannelHandler.java:145)
      	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)
      	at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:458)
      	at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:439)
      	at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303)
      	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)
      	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)
      	at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:84)
      	at org.jboss.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(AbstractNioWorker.java:471)
      	at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:332)
      	at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:35)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_45]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_45]
      	at java.lang.Thread.run(Thread.java:744)[:1.7.0_45]
      

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              davsclaus Claus Ibsen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: