【已记录】应用jdbc连接doris偶发报错,应用日志Caused by: java.sql.SQLException: NullPointerException, msg: null

Viewed 126

具体日志如下:

Caused by: java.sql.SQLException: NullPointerException, msg: null
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:965)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3933)
查看doris fe日志其中一个节点fe.log 有很多这样错误日志2024-04-15 08:15:25,252 WARN (mysql-nio-pool-742|7088) [ConnectProcessor.handleQueryException():347] Process one query failed because unknown reason:
java.lang.NullPointerException: null
at org.apache.doris.qe.AuditLogHelper.logAuditLog(AuditLogHelper.java:73) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.ConnectProcessor.auditAfterExec(ConnectProcessor.java:177) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.ConnectProcessor.executeQuery(ConnectProcessor.java:287) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.ConnectProcessor.handleQuery(ConnectProcessor.java:183) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.MysqlConnectProcessor.handleQuery(MysqlConnectProcessor.java:176) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.MysqlConnectProcessor.dispatch(MysqlConnectProcessor.java:205) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.MysqlConnectProcessor.processOnce(MysqlConnectProcessor.java:258) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.mysql.ReadListener.lambda$handleEvent$0(ReadListener.java:52) ~[doris-fe.jar:1.2-SNAPSHOT]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_242]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_242]
at java.lang.Thread.run(Thread.java:748) ~[?:1.8.0_242]
2024-04-15 08:15:25,255 WARN (mysql-nio-pool-742|7088) [MysqlConnectProcessor.processOnce():248] Null packet received from network. remote: 123.232152.1:55646
2024-04-15 08:15:25,255 WARN (mysql-nio-pool-742|7088) [ReadListener.lambda$handleEvent$0():60] Exception happened in one session(org.apache.doris.qe.ConnectContext@6c68f6b1).
java.io.IOExcept

1 Answers

使用2.1的最新版本,已经修复