最新版halo用docker部署,使用此主题。测试邮件发送成功,但是评论不会发邮件通知。查看日志信息:
# 这里是测试成功了
2022-04-19 15:50:05.854 INFO 8 --- [pool-5-thread-2] run.halo.app.mail.AbstractMailService : Sent an email to [[xxxxxxxxxxx@qq.com]] successfully, subject: [hahha], sent date: [Tue Apr 19 15:50:05 CST 2022]
# 这里是评论发送邮件失败信息
2022-04-19 15:51:09.281 ERROR 8 --- [ task-53] .a.i.SimpleAsyncUncaughtExceptionHandler : Unexpected exception occurred invoking async method: public void run.halo.app.listener.comment.CommentEventListener.handleCommentNewEvent(run.halo.app.event.comment.CommentNewEvent)
run.halo.app.exception.NotFoundException: PostComment was not found or has been deleted
at run.halo.app.service.base.AbstractCrudService.lambda$getById$0(AbstractCrudService.java:139) ~[classes/:1.5.2]
at java.base/java.util.Optional.orElseThrow(Unknown Source) ~[na:na]
at run.halo.app.service.base.AbstractCrudService.getById(AbstractCrudService.java:138) ~[classes/:1.5.2]
at run.halo.app.service.base.AbstractCrudService$$FastClassBySpringCGLIB$$d181db6d.invoke(<generated>) ~[classes/:1.5.2]
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.3.18.jar:5.3.18]
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:689) ~[spring-aop-5.3.18.jar:5.3.18]
at run.halo.app.service.impl.PostCommentServiceImpl$$EnhancerBySpringCGLIB$$27d79334.getById(<generated>) ~[classes/:1.5.2]
at run.halo.app.listener.comment.CommentEventListener.handleCommentNewEvent(CommentEventListener.java:117) ~[classes/:1.5.2]
at run.halo.app.listener.comment.CommentEventListener$$FastClassBySpringCGLIB$$7fe2191c.invoke(<generated>) ~[classes/:1.5.2]
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.3.18.jar:5.3.18]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:783) ~[spring-aop-5.3.18.jar:5.3.18]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.3.18.jar:5.3.18]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753) ~[spring-aop-5.3.18.jar:5.3.18]
at org.springframework.aop.interceptor.AsyncExecutionInterceptor.lambda$invoke$0(AsyncExecutionInterceptor.java:115) ~[spring-aop-5.3.18.jar:5.3.18]
at java.base/java.util.concurrent.FutureTask.run(Unknown Source) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[na:na]
at java.base/java.lang.Thread.run(Unknown Source) ~[na:na]
蹲个大佬求解释,感谢。
直接docker拉的最新镜像,看提示说postcomment方法出问题了,关键源码我也没动过啊?