com.esotericsoftware.kryo.KryoException

tip

Kryo doesn't accept multi-threaded data access, there's a few workarounds for this, such as duplicating the buffer, but they sacrifice a bit of performance.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • During intent-pref test, uncaught exception 2016-07-25 15:04:01,480 | ERROR | agingEvt-nioC-48 | NettyMessagingManager | 78 - org.onosproject.onos-core-dist - 1.7.0.SNAPSHOT | Exception inside channel handling pipeline. com.esotericsoftware.kryo.KryoException: Buffer underflow. at com.esotericsoftware.kryo.io.Input.require(Input.java:199) at com.esotericsoftware.kryo.io.Input.readVarInt(Input.java:373) at com.esotericsoftware.kryo.util.DefaultClassResolver.readClass(DefaultClassResolver.java:127) at com.esotericsoftware.kryo.Kryo.readClass(Kryo.java:670)[57:com.esotericsoftware.kryo:3.0.3] at com.esotericsoftware.kryo.Kryo.readClassAndObject(Kryo.java:781)[57:com.esotericsoftware.kryo:3.0.3] at com.esotericsoftware.kryo.serializers.MapSerializer.read(MapSerializer.java:153)[57:com.esotericsoftware.kryo:3.0.3] at com.esotericsoftware.kryo.serializers.MapSerializer.read(MapSerializer.java:39)[57:com.esotericsoftware.kryo:3.0.3] at com.esotericsoftware.kryo.Kryo.readObject(Kryo.java:708)[57:com.esotericsoftware.kryo:3.0.3] at org.onosproject.store.serializers.ImmutableMapSerializer.read(ImmutableMapSerializer.java:55) at org.onosproject.store.serializers.ImmutableMapSerializer.read(ImmutableMapSerializer.java:32) at com.esotericsoftware.kryo.Kryo.readClassAndObject(Kryo.java:790)[57:com.esotericsoftware.kryo:3.0.3] at com.esotericsoftware.kryo.serializers.MapSerializer.read(MapSerializer.java:161)[57:com.esotericsoftware.kryo:3.0.3] at com.esotericsoftware.kryo.serializers.MapSerializer.read(MapSerializer.java:39)[57:com.esotericsoftware.kryo:3.0.3] at com.esotericsoftware.kryo.Kryo.readClassAndObject(Kryo.java:790)[57:com.esotericsoftware.kryo:3.0.3] at org.onlab.util.KryoNamespace.deserialize(KryoNamespace.java:347)[72:org.onosproject.onlab-misc:1.7.0.SNAPSHOT] at org.onosproject.store.serializers.StoreSerializer$1.decode(StoreSerializer.java:128)[81:org.onosproject.onos-core-serializers:1.7.0.SNAPSHOT] at org.onosproject.store.cluster.messaging.impl.ClusterCommunicationManager$1.apply(ClusterCommunicationManager.java:278)[78:org.onosproject.onos-core-dist:1.7.0.SNAPSHOT] at org.onosproject.store.cluster.messaging.impl.ClusterCommunicationManager$InternalMessageResponder.apply(ClusterCommunicationManager.java:322)[78:org.onosproject.onos-core-dist:1.7.0.SNAPSHOT] at org.onosproject.store.cluster.messaging.impl.ClusterCommunicationManager$InternalMessageResponder.apply(ClusterCommunicationManager.java:306)[78:org.onosproject.onos-core-dist:1.7.0.SNAPSHOT] at org.onosproject.store.cluster.messaging.impl.NettyMessagingManager.lambda$registerHandler$7(NettyMessagingManager.java:311)[78:org.onosproject.onos-core-dist:1.7.0.SNAPSHOT] at org.onosproject.store.cluster.messaging.impl.NettyMessagingManager.dispatchLocally(NettyMessagingManager.java:544)[78:org.onosproject.onos-core-dist:1.7.0.SNAPSHOT] at org.onosproject.store.cluster.messaging.impl.NettyMessagingManager.access$900(NettyMessagingManager.java:95)[78:org.onosproject.onos-core-dist:1.7.0.SNAPSHOT] at org.onosproject.store.cluster.messaging.impl.NettyMessagingManager$InboundMessageDispatcher.channelRead0(NettyMessagingManager.java:499)[78:org.onosproject.onos-core-dist:1.7.0.SNAPSHOT] at org.onosproject.store.cluster.messaging.impl.NettyMessagingManager$InboundMessageDispatcher.channelRead0(NettyMessagingManager.java:493)[78:org.onosproject.onos-core-dist:1.7.0.SNAPSHOT] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)[47:io.netty.transport:4.0.36.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:292)[47:io.netty.transport:4.0.36.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:278)[47:io.netty.transport:4.0.36.Final] at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:277)[49:io.netty.codec:4.0.36.Final] at io.netty.handler.codec.ReplayingDecoder.callDecode(ReplayingDecoder.java:368)[49:io.netty.codec:4.0.36.Final] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:245)[49:io.netty.codec:4.0.36.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:292)[47:io.netty.transport:4.0.36.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:278)[47:io.netty.transport:4.0.36.Final] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:962)[47:io.netty.transport:4.0.36.Final] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)[47:io.netty.transport:4.0.36.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:528)[47:io.netty.transport:4.0.36.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:485)[47:io.netty.transport:4.0.36.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:399)[47:io.netty.transport:4.0.36.Final] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:371)[47:io.netty.transport:4.0.36.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)[45:io.netty.common:4.0.36.Final] at java.lang.Thread.run(Thread.java:745)[:1.8.0_74]
    via by Yunpeng Zhang,
  • Buffer Underflow ERROR
    via by Yu wai Hlaing,
  • Gremlin: Encountered unregistered class ID: 10
    via Stack Overflow by Zahid
    ,
  • Exception in Loading data using Kryonet
    via Stack Overflow by user3582100
    ,
    • com.esotericsoftware.kryo.KryoException: Buffer underflow. at com.esotericsoftware.kryo.io.Input.require(Input.java:199) at com.esotericsoftware.kryo.io.Input.readVarInt(Input.java:373) at com.esotericsoftware.kryo.util.DefaultClassResolver.readClass(DefaultClassResolver.java:127) at com.esotericsoftware.kryo.Kryo.readClass(Kryo.java:670)[57:com.esotericsoftware.kryo:3.0.3] at com.esotericsoftware.kryo.Kryo.readClassAndObject(Kryo.java:781)[57:com.esotericsoftware.kryo:3.0.3] at com.esotericsoftware.kryo.serializers.MapSerializer.read(MapSerializer.java:153)[57:com.esotericsoftware.kryo:3.0.3] at com.esotericsoftware.kryo.serializers.MapSerializer.read(MapSerializer.java:39)[57:com.esotericsoftware.kryo:3.0.3] at com.esotericsoftware.kryo.Kryo.readObject(Kryo.java:708)[57:com.esotericsoftware.kryo:3.0.3] at org.onosproject.store.serializers.ImmutableMapSerializer.read(ImmutableMapSerializer.java:55) at org.onosproject.store.serializers.ImmutableMapSerializer.read(ImmutableMapSerializer.java:32) at com.esotericsoftware.kryo.Kryo.readClassAndObject(Kryo.java:790)[57:com.esotericsoftware.kryo:3.0.3] at com.esotericsoftware.kryo.serializers.MapSerializer.read(MapSerializer.java:161)[57:com.esotericsoftware.kryo:3.0.3] at com.esotericsoftware.kryo.serializers.MapSerializer.read(MapSerializer.java:39)[57:com.esotericsoftware.kryo:3.0.3] at com.esotericsoftware.kryo.Kryo.readClassAndObject(Kryo.java:790)[57:com.esotericsoftware.kryo:3.0.3] at org.onlab.util.KryoNamespace.deserialize(KryoNamespace.java:347)[72:org.onosproject.onlab-misc:1.7.0.SNAPSHOT] at org.onosproject.store.serializers.StoreSerializer$1.decode(StoreSerializer.java:128)[81:org.onosproject.onos-core-serializers:1.7.0.SNAPSHOT] at org.onosproject.store.cluster.messaging.impl.ClusterCommunicationManager$1.apply(ClusterCommunicationManager.java:278)[78:org.onosproject.onos-core-dist:1.7.0.SNAPSHOT] at org.onosproject.store.cluster.messaging.impl.ClusterCommunicationManager$InternalMessageResponder.apply(ClusterCommunicationManager.java:322)[78:org.onosproject.onos-core-dist:1.7.0.SNAPSHOT] at org.onosproject.store.cluster.messaging.impl.ClusterCommunicationManager$InternalMessageResponder.apply(ClusterCommunicationManager.java:306)[78:org.onosproject.onos-core-dist:1.7.0.SNAPSHOT] at org.onosproject.store.cluster.messaging.impl.NettyMessagingManager.lambda$registerHandler$7(NettyMessagingManager.java:311)[78:org.onosproject.onos-core-dist:1.7.0.SNAPSHOT] at org.onosproject.store.cluster.messaging.impl.NettyMessagingManager.dispatchLocally(NettyMessagingManager.java:544)[78:org.onosproject.onos-core-dist:1.7.0.SNAPSHOT] at org.onosproject.store.cluster.messaging.impl.NettyMessagingManager.access$900(NettyMessagingManager.java:95)[78:org.onosproject.onos-core-dist:1.7.0.SNAPSHOT] at org.onosproject.store.cluster.messaging.impl.NettyMessagingManager$InboundMessageDispatcher.channelRead0(NettyMessagingManager.java:499)[78:org.onosproject.onos-core-dist:1.7.0.SNAPSHOT] at org.onosproject.store.cluster.messaging.impl.NettyMessagingManager$InboundMessageDispatcher.channelRead0(NettyMessagingManager.java:493)[78:org.onosproject.onos-core-dist:1.7.0.SNAPSHOT] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)[47:io.netty.transport:4.0.36.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:292)[47:io.netty.transport:4.0.36.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:278)[47:io.netty.transport:4.0.36.Final] at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:277)[49:io.netty.codec:4.0.36.Final] at io.netty.handler.codec.ReplayingDecoder.callDecode(ReplayingDecoder.java:368)[49:io.netty.codec:4.0.36.Final] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:245)[49:io.netty.codec:4.0.36.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:292)[47:io.netty.transport:4.0.36.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:278)[47:io.netty.transport:4.0.36.Final] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:962)[47:io.netty.transport:4.0.36.Final] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)[47:io.netty.transport:4.0.36.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:528)[47:io.netty.transport:4.0.36.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:485)[47:io.netty.transport:4.0.36.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:399)[47:io.netty.transport:4.0.36.Final] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:371)[47:io.netty.transport:4.0.36.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)[45:io.netty.common:4.0.36.Final] at java.lang.Thread.run(Thread.java:745)[:1.8.0_74]

    Users with the same issue

    Alexandru Popa
    1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    6 more bugmates