2025-08-23 01:06:45.502 | ERROR 152967 | pool-11-thread-1 [TID: N/A] o.s.s.s.TaskUtils$LoggingErrorHandler  | Unexpected error occurred in scheduled task java.lang.RuntimeException: org.springframework.web.client.ResourceAccessException: I/O error on POST request for "https://ocr.beai.vip/api/ocr": Connect to ocr.beai.vip:443 [ocr.beai.vip/179.61.138.183] failed: Connection timed out (Connection timed out); nested exception is org.apache.http.conn.HttpHostConnectException: Connect to ocr.beai.vip:443 [ocr.beai.vip/179.61.138.183] failed: Connection timed out (Connection timed out) at cn.iocoder.yudao.framework.ocr.utils.UmiOcrUtils.getUmiOcrResponse(UmiOcrUtils.java:73) at cn.iocoder.yudao.framework.ocr.utils.UmiOcrUtils.performOcr(UmiOcrUtils.java:54) at cn.iocoder.yudao.module.plan.service.ocrfile.OcrFileServiceImpl.lambda$getQuestionCreateBackgroundReqVOS$16(OcrFileServiceImpl.java:359) at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1384) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:485) at cn.iocoder.yudao.module.plan.service.ocrfile.OcrFileServiceImpl.getQuestionCreateBackgroundReqVOS(OcrFileServiceImpl.java:357) at cn.iocoder.yudao.module.plan.service.ocrfile.OcrFileServiceImpl.lambda$generateQuestionsBasedOnTheTemplateID$2(OcrFileServiceImpl.java:248) at java.util.HashMap.forEach(HashMap.java:1290) at cn.iocoder.yudao.module.plan.service.ocrfile.OcrFileServiceImpl.generateQuestionsBasedOnTheTemplateID(OcrFileServiceImpl.java:241) at cn.iocoder.yudao.module.plan.service.ocrfile.OcrFileServiceImpl.lambda$allQuestionsAreGenerated$33(OcrFileServiceImpl.java:601) at java.util.ArrayList.forEach(ArrayList.java:1259) at cn.iocoder.yudao.module.plan.service.ocrfile.OcrFileServiceImpl.allQuestionsAreGenerated(OcrFileServiceImpl.java:601) at cn.iocoder.yudao.module.plan.service.ocrfile.OcrFileServiceImpl$$FastClassBySpringCGLIB$$45dccbf5.invoke() at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) at org.springframework.validation.beanvalidation.MethodValidationInterceptor.invoke(MethodValidationInterceptor.java:123) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708) at cn.iocoder.yudao.module.plan.service.ocrfile.OcrFileServiceImpl$$EnhancerBySpringCGLIB$$ea48002b.allQuestionsAreGenerated() at cn.iocoder.yudao.module.plan.job.CompleteScheduleConfig.lambda$configureTasks$0(CompleteScheduleConfig.java:29) at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:95) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:750) Caused by: org.springframework.web.client.ResourceAccessException: I/O error on POST request for "https://ocr.beai.vip/api/ocr": Connect to ocr.beai.vip:443 [ocr.beai.vip/179.61.138.183] failed: Connection timed out (Connection timed out); nested exception is org.apache.http.conn.HttpHostConnectException: Connect to ocr.beai.vip:443 [ocr.beai.vip/179.61.138.183] failed: Connection timed out (Connection timed out) at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:791) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:717) at org.springframework.web.client.RestTemplate.postForEntity(RestTemplate.java:474) at cn.iocoder.yudao.framework.ocr.utils.UmiOcrUtils.sendPostRequestWithRetry(UmiOcrUtils.java:89) at cn.iocoder.yudao.framework.ocr.utils.UmiOcrUtils.getUmiOcrResponse(UmiOcrUtils.java:67) ... 38 common frames omitted Caused by: org.apache.http.conn.HttpHostConnectException: Connect to ocr.beai.vip:443 [ocr.beai.vip/179.61.138.183] failed: Connection timed out (Connection timed out) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:156) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:376) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56) at org.springframework.http.client.HttpComponentsClientHttpRequest.executeInternal(HttpComponentsClientHttpRequest.java:87) at org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48) at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:66) at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:782) ... 42 common frames omitted Caused by: java.net.ConnectException: Connection timed out (Connection timed out) at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:607) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:368) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142) ... 55 common frames omitted