2024-05-09T17:16:20.982+08:00 ERROR 7 --- [or-tcp-epoll-27] a.w.r.e.AbstractErrorWebExceptionHandler : [31751624-239534] 500 Server Error for HTTP GET "/apis/api.plugin.halo.run/v1alpha1/plugins/export2doc/doExport/export_one/5152aea5-c2e8-4717-8bba-2263d46e19d5"
java.lang.RuntimeException: java.io.FileNotFoundException: /.halo2/plugins/export2doc_files/export/markdown_post/Hello Halo.html (No such file or directory)
at cn.lyn4ever.export2md.service.impl.ExportServiceImpl.writeContent(ExportServiceImpl.java:227) ~[na:na]
Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
Error has been observed at the following site(s):
*__checkpoint ⇢ run.halo.app.security.InitializeRedirectionWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ AuthorizationWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ ExceptionTranslationWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ LogoutWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ ServerRequestCacheWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ SecurityContextServerWebExchangeWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ LogoutPageGeneratingWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ AnonymousAuthenticationWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ SecurityWebFilterChainProxy [DefaultWebFilterChain]
*__checkpoint ⇢ TotpAuthenticationFilter [DefaultWebFilterChain]
*__checkpoint ⇢ AuthenticationWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ SecurityWebFilterChainProxy [DefaultWebFilterChain]
*__checkpoint ⇢ SecurityWebFilterChainProxy [DefaultWebFilterChain]
*__checkpoint ⇢ AuthenticationWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ AuthenticationWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ ReactorContextWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ CsrfWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ CorsWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ HttpHeaderWriterWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ ServerWebExchangeReactorContextWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ org.springframework.security.web.server.WebFilterChainProxy [DefaultWebFilterChain]
*__checkpoint ⇢ run.halo.app.webfilter.AdditionalWebFilterChainProxy [DefaultWebFilterChain]
*__checkpoint ⇢ HTTP GET "/apis/api.plugin.halo.run/v1alpha1/plugins/export2doc/doExport/export_one/5152aea5-c2e8-4717-8bba-2263d46e19d5" [ExceptionHandlingWebHandler]
Original Stack Trace:
at cn.lyn4ever.export2md.service.impl.ExportServiceImpl.writeContent(ExportServiceImpl.java:227) ~[na:na]
at cn.lyn4ever.export2md.service.impl.ExportServiceImpl.writePost(ExportServiceImpl.java:140) ~[na:na]
at cn.lyn4ever.export2md.rest.ExportController.lambda$fetchHeadContent$2(ExportController.java:83) ~[na:na]
at reactor.core.publisher.MonoCallable.call(MonoCallable.java:72) ~[reactor-core-3.6.4.jar:3.6.4]
at reactor.core.publisher.FluxSubscribeOnCallable$CallableSubscribeOnSubscription.run(FluxSubscribeOnCallable.java:228) ~[reactor-core-3.6.4.jar:3.6.4]
at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:68) ~[reactor-core-3.6.4.jar:3.6.4]
at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:28) ~[reactor-core-3.6.4.jar:3.6.4]
at java.base/java.util.concurrent.FutureTask.run(Unknown Source) ~[na:na]
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.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]
Caused by: java.io.FileNotFoundException: /.halo2/plugins/export2doc_files/export/markdown_post/Hello Halo.html (No such file or directory)
at java.base/java.io.FileOutputStream.open(Unknown Source) ~[na:na]
at java.base/java.io.FileOutputStream.<init>(Unknown Source) ~[na:na]
at java.base/java.io.FileOutputStream.<init>(Unknown Source) ~[na:na]
at java.base/java.io.FileWriter.<init>(Unknown Source) ~[na:na]
at cn.lyn4ever.export2md.service.impl.ExportServiceImpl.writeContent(ExportServiceImpl.java:175) ~[na:na]
at cn.lyn4ever.export2md.service.impl.ExportServiceImpl.writePost(ExportServiceImpl.java:140) ~[na:na]
at cn.lyn4ever.export2md.rest.ExportController.lambda$fetchHeadContent$2(ExportController.java:83) ~[na:na]
at reactor.core.publisher.MonoCallable.call(MonoCallable.java:72) ~[reactor-core-3.6.4.jar:3.6.4]
at reactor.core.publisher.FluxSubscribeOnCallable$CallableSubscribeOnSubscription.run(FluxSubscribeOnCallable.java:228) ~[reactor-core-3.6.4.jar:3.6.4]
at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:68) ~[reactor-core-3.6.4.jar:3.6.4]
at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:28) ~[reactor-core-3.6.4.jar:3.6.4]
at java.base/java.util.concurrent.FutureTask.run(Unknown Source) ~[na:na]
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.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]
Exception in thread "Thread-228" java.lang.RuntimeException: java.io.FileNotFoundException: /.halo2/plugins/export2doc_files/export/export2doc_20240509172045/Hello Halo.html (No such file or directory)
at cn.lyn4ever.export2md.service.impl.ExportServiceImpl.writeContent(ExportServiceImpl.java:227)
at cn.lyn4ever.export2md.service.impl.ExportServiceImpl.writePost(ExportServiceImpl.java:140)
at cn.lyn4ever.export2md.service.impl.ExportServiceImpl.lambda$runTask$1(ExportServiceImpl.java:88)
at java.base/java.util.ArrayList.forEach(Unknown Source)
at cn.lyn4ever.export2md.service.impl.ExportServiceImpl.runTask(ExportServiceImpl.java:87)
at cn.lyn4ever.export2md.rest.ExportController.lambda$export$0(ExportController.java:65)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: /.halo2/plugins/export2doc_files/export/export2doc_20240509172045/Hello Halo.html (No such file or directory)
at java.base/java.io.FileOutputStream.open(Unknown Source)
at java.base/java.io.FileOutputStream.<init>(Unknown Source)
at java.base/java.io.FileOutputStream.<init>(Unknown Source)
at java.base/java.io.FileWriter.<init>(Unknown Source)
at cn.lyn4ever.export2md.service.impl.ExportServiceImpl.writeContent(ExportServiceImpl.java:175)
... 6 more
halo version: 2.14 halo-plugin-export-md version: 1.2.4
导出文章报错如下