更新规则配置失败 {}
reinershir opened this issue · comments
环境:docker 安装
plumelog version:3.5.1
kafka:12月最新版
es7
配置方面:使用kafka做队列,redis配置注释掉的
报错信息:
2023-03-01 14:30:00.000 ERROR 1 --- [taskScheduler-3] c.p.s.monitor.PlumeLogMonitorListener : 更新规则配置失败 {}
java.lang.NullPointerException: null
at com.plumelog.server.monitor.PlumeLogMonitorRuleConfig.initMonitorRuleConfig(PlumeLogMonitorRuleConfig.java:66)
at com.plumelog.server.monitor.PlumeLogMonitorRuleConfig.configureTasks(PlumeLogMonitorRuleConfig.java:80)
at jdk.internal.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84)
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:93)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at com.plumelog.server.monitor.PlumeLogMonitorRuleConfig.initMonitorRuleConfig(PlumeLogMonitorRuleConfig.java:66)
at com.plumelog.server.monitor.PlumeLogMonitorRuleConfig.configureTasks(PlumeLogMonitorRuleConfig.java:80)
at jdk.internal.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84)
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:93)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
这个项目哪怕不适用redis作为队列,也是需要依赖redis的,只要配置一下redis就不会报错了