io.netty.handler.codec.DecoderException: java.lang.NegativeArraySizeException

JIRA | suibin zhang | 1 year ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    following exception is caught when trying OVS SSL connection to onos: (Als tested with openssl s_client -debug -cipher aNULL -connect 10.128.8.11:9876) Also tried with ovs ssl connection with same exception. 2015-11-18 16:22:18,252 | ERROR | entLoopGroup-3-1 | MessageDecoder | 148 - org.onosproject.onlab-netty - 1.4.0.SNAPSHOT | Exception inside channel handling pipeline. io.netty.handler.codec.DecoderException: java.lang.NegativeArraySizeException at io.netty.handler.codec.ReplayingDecoder.callDecode(ReplayingDecoder.java:425)[50:io.netty.codec:4.0.23.Final] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:149)[50:io.netty.codec:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)[48:io.netty.transport:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)[48:io.netty.transport:4.0.23.Final] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787)[48:io.netty.transport:4.0.23.Final] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:130)[48:io.netty.transport:4.0.23.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)[48:io.netty.transport:4.0.23.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)[48:io.netty.transport:4.0.23.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)[48:io.netty.transport:4.0.23.Final] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)[48:io.netty.transport:4.0.23.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)[46:io.netty.common:4.0.23.Final] at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)[46:io.netty.common:4.0.23.Final] at java.lang.Thread.run(Thread.java:745)[:1.8.0_25] Caused by: java.lang.NegativeArraySizeException at org.onlab.netty.MessageDecoder.decode(MessageDecoder.java:77)[148:org.onosproject.onlab-netty:1.4.0.SNAPSHOT] at io.netty.handler.codec.ReplayingDecoder.callDecode(ReplayingDecoder.java:370)[50:io.netty.codec:4.0.23.Final] ... 12 more

    JIRA | 1 year ago | suibin zhang
    io.netty.handler.codec.DecoderException: java.lang.NegativeArraySizeException

    Root Cause Analysis

    1. java.lang.NegativeArraySizeException

      No message provided

      at org.onlab.netty.MessageDecoder.decode()
    2. org.onlab.netty
      MessageDecoder.decode
      1. org.onlab.netty.MessageDecoder.decode(MessageDecoder.java:77)[148:org.onosproject.onlab-netty:1.4.0.SNAPSHOT]
      1 frame
    3. Netty
      DefaultThreadFactory$DefaultRunnableDecorator.run
      1. io.netty.handler.codec.ReplayingDecoder.callDecode(ReplayingDecoder.java:370)[50:io.netty.codec:4.0.23.Final]
      2. io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:149)[50:io.netty.codec:4.0.23.Final]
      3. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)[48:io.netty.transport:4.0.23.Final]
      4. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)[48:io.netty.transport:4.0.23.Final]
      5. io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787)[48:io.netty.transport:4.0.23.Final]
      6. io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:130)[48:io.netty.transport:4.0.23.Final]
      7. io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)[48:io.netty.transport:4.0.23.Final]
      8. io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)[48:io.netty.transport:4.0.23.Final]
      9. io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)[48:io.netty.transport:4.0.23.Final]
      10. io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)[48:io.netty.transport:4.0.23.Final]
      11. io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)[46:io.netty.common:4.0.23.Final]
      12. io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)[46:io.netty.common:4.0.23.Final]
      12 frames
    4. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)[:1.8.0_25]
      1 frame