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

Added a option to let camel netty take the message body as byte buffer

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.16.0
    • Component/s: camel-netty4
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      When using the camel-netty to send the syslog server we need to convert the message body into ChannelBuffer otherwise we will get complain from Netty just like this.

      [org.jboss.netty.channel.socket.nio.AbstractNioSelector] Unexpected exception in the selector loop.
      java.lang.IllegalArgumentException: unsupported message type: class [B
      	at org.jboss.netty.channel.socket.nio.SocketSendBufferPool.acquire(SocketSendBufferPool.java:52)
      	at org.jboss.netty.channel.socket.nio.NioDatagramWorker.write0(NioDatagramWorker.java:260)
      	at org.jboss.netty.channel.socket.nio.AbstractNioWorker.writeFromTaskLoop(AbstractNioWorker.java:151)
      	at org.jboss.netty.channel.socket.nio.AbstractNioChannel$WriteTask.run(AbstractNioChannel.java:335)
      	at org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:372)
      	at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:296)
      	at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89)
      	at org.jboss.netty.channel.socket.nio.NioDatagramWorker.run(NioDatagramWorker.java:343)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_71]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_71]
      	at java.lang.Thread.run(Thread.java:745)[:1.7.0_71]
      

      It could be handy if we just have a option in the netty endpoint for it.

        Attachments

          Activity

            People

            • Assignee:
              njiang Willem Jiang
              Reporter:
              njiang Willem Jiang
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: