NullPointerException

pritesh9 months ago

getting error in traccar-server.log

2024-03-04 06:28:06  INFO: [Te323272d] disconnected
2024-03-04 06:28:06  INFO: [Te323272d] error - NullPointerException
2024-03-04 06:28:07  INFO: [Tba0b4411] connected
2024-03-04 06:28:07  INFO: [Tba0b4411] disconnected
2024-03-04 06:28:07  INFO: [Tba0b4411] error - NullPointerException
2024-03-04 06:28:08  INFO: [T24da5574] connected
2024-03-04 06:28:08  INFO: [T24da5574] disconnected
2024-03-04 06:28:08  INFO: [T24da5574] error - NullPointerException
2024-03-04 06:28:11  INFO: [T8d554138] connected
2024-03-04 06:28:11  INFO: [T8d554138] disconnected
2024-03-04 06:28:11  INFO: [T8d554138] error - NullPointerException
2024-03-04 06:28:12  INFO: [Teefcc691] connected
2024-03-04 06:28:12  INFO: [Teefcc691] disconnected
2024-03-04 06:28:12  INFO: [Teefcc691] error - NullPointerException
2024-03-04 06:28:13  INFO: [T4bcf10ed] connected
2024-03-04 06:28:13  INFO: [T4bcf10ed] disconnected
2024-03-04 06:28:13  INFO: [T4bcf10ed] error - NullPointerException
2024-03-04 06:28:16  INFO: [Tbd940f8f] connected
2024-03-04 06:28:16  INFO: [Tbd940f8f] disconnected
2024-03-04 06:28:16  INFO: [Tbd940f8f] error - NullPointerException
2024-03-04 06:28:17  INFO: [T7e63fd8f] connected
2024-03-04 06:28:17  INFO: [T7e63fd8f] disconnected
pritesh9 months ago

I added

    <!-- Add logger.fullStackTraces -->
    <entry key="logger.fullStackTraces">true</entry> 

connected

2024-03-04 11:02:17  INFO: [Tcacd8338] disconnected
2024-03-04 11:02:17  INFO: [Tcacd8338] error - 
java.lang.NullPointerException
        at java.base/java.util.concurrent.ConcurrentHashMap.replaceNode(ConcurrentHashMap.java:1111)
        at java.base/java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:1102)
        at org.traccar.session.ConnectionManager.deviceDisconnected(ConnectionManager.java:191)
        at org.traccar.MainEventHandler.channelInactive(MainEventHandler.java:168)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:305)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:281)
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:274)
        at io.netty.channel.ChannelInboundHandlerAdapter.channelInactive(ChannelInboundHandlerAdapter.java:81)
        at io.netty.handler.codec.MessageAggregator.channelInactive(MessageAggregator.java:441)
        at org.traccar.WrapperInboundHandler.channelInactive(WrapperInboundHandler.java:50)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:305)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:281)
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:274)
        at io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:411)
        at io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:376)
        at org.traccar.WrapperInboundHandler.channelInactive(WrapperInboundHandler.java:50)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:305)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:281)
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:274)
        at io.netty.channel.ChannelInboundHandlerAdapter.channelInactive(ChannelInboundHandlerAdapter.java:81)
        at org.traccar.handler.OpenChannelHandler.channelInactive(OpenChannelHandler.java:38)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:303)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:281)
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:274)
        at io.netty.channel.DefaultChannelPipeline$HeadContext.channelInactive(DefaultChannelPipeline.java:1405)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:301)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:281)
        at io.netty.channel.DefaultChannelPipeline.fireChannelInactive(DefaultChannelPipeline.java:901)
        at io.netty.channel.AbstractChannel$AbstractUnsafe$7.run(AbstractChannel.java:813)
        at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:173)
        at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:166)
        at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470)
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:566)
        at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
        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:829)
pritesh9 months ago

how to remove these logs. Very hard to see our real logs in among that noise.

Anton Tananaev9 months ago
pritesh9 months ago

I installed Traccar a few weeks ago on a GCP virtual machine using Docker. The version of Traccar we're currently using is 5.12. Could you please let me know which version the issue we're experiencing was fixed in?

Anton Tananaev9 months ago

It will be fixed in the next version.

Angelo9 months ago

when we can expect this? the docker version with the fix