Buffer

Fordsman4 years ago

Hi
Get this quite offen, can i increase something in the code?

2020-09-05 08:54:44  INFO: [48eddd74: teltonika < 5.35.166.131] HEX: 000000000000018c8e03000001745d0bb35000094419e022d80cf10023014415006200000016000900ef0000f00100500500150400c80000450100020000030000713a000a00b5000700b60004004200000018006200430e4200440000000900d90011fdaf0012f8020013004e000100f100005dc10002000b000000003550396e000e00000000478cdcf80000000001745d0baf68000944247d22d805100022014415006200000016000900ef0000f00100500500150400c800004501000200000300007139000a00b5000700b60004004200000018006200430e4000440000000900d90011fd32001202de0013fa2c000100f100005dc10002000b000000003550396e000e00000000478cdcf80000000001745d0bab800009442e8422d7fd
2020-09-05 08:54:44  INFO: [48eddd74: teltonika < 5.35.166.131] HEX: 510022014415006200000016000900ef0000f00100500500150400c800004501000200000300007139000a00b5000700b60004004200000018006200430e3f00440000000900d90011fdfd0012f8300013ff74000100f100005dc10002000b000000003550396e000e00000000478cdcf80000030000771a
2020-09-05 08:54:44  WARN: [48eddd74] error - 
java.nio.BufferOverflowException
    at java.base/java.nio.DirectByteBuffer.put(DirectByteBuffer.java:373)
    at io.netty.buffer.PoolArena$DirectArena.memoryCopy(PoolArena.java:795)
    at io.netty.buffer.PoolArena$DirectArena.memoryCopy(PoolArena.java:704)
    at io.netty.buffer.PoolArena.reallocate(PoolArena.java:405)
    at io.netty.buffer.PooledByteBuf.capacity(PooledByteBuf.java:118)
    at io.netty.buffer.AbstractByteBuf.ensureWritable0(AbstractByteBuf.java:306)
    at io.netty.buffer.AbstractByteBuf.ensureWritable(AbstractByteBuf.java:282)
    at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1104)
    at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1097)
    at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1088)
    at io.netty.handler.codec.ByteToMessageDecoder$1.cumulate(ByteToMessageDecoder.java:94)
    at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:269)
    at org.traccar.WrapperInboundHandler.channelRead(WrapperInboundHandler.java:57)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:377)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:355)
    at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:93)
    at org.traccar.handler.StandardLoggingHandler.channelRead(StandardLoggingHandler.java:43)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:377)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:355)
    at org.traccar.handler.NetworkMessageHandler.channelRead(NetworkMessageHandler.java:37)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:377)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:355)
    at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:377)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363)
    at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
    at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163)
    at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:714)
    at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:615)
    at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:578)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)
    at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
    at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
    at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
    at java.base/java.lang.Thread.run(Thread.java:834)

2020-09-05 08:54:44  WARN: [48eddd74] error - 
java.lang.ClassCastException

2020-09-05 08:54:44  INFO: [48eddd74] disconnected

Best regards
Johan F

Anton Tananaev4 years ago
Anton Tananaev4 years ago

And it should already be fixed. Are you using the latest version?