这篇博客针对低代码平台出现的'No such file or directory'异常进行解析,指导如何根据错误信息检查运行文件路径,并在admin环境下创建缺失的文件夹路径,以解决异常问题。
摘要由CSDN通过智能技术生成
报错提示
[17:26:34.669][ERROR][org.jeecgframework.core.common.exception.GlobalExceptionResolver]全局处理异常捕获:java.io.FileNotFoundException:/tmp/tomcat.1496233659539782986.8080/work/Tomcat/localhost/demo/upload_fdc15b1d_5998_41df_8ffa_d29dde1cb2bf_00002057.tmp (No such file or directory)
at java.io.FileOutputStream.open0(NativeMethod)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
at org.apache.commons.io.output.DeferredFileOutputStream.thresholdReached(DeferredFileOutputStream.java:179)
at org.apache.commons.io.output.ThresholdingOutputStream.checkThreshold(ThresholdingOutputStream.java:224)
at org.apache.commons.io.output.ThresholdingOutputStream.write(ThresholdingOutputStream.java:128)
at org.apache.commons.fileupload.util.Streams.copy(Streams.java:107)
at org.apache.commons.fileupload.util.Streams.copy(Streams.java:70)
at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:347)
at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:115)
at org.springframework.web.multipart.commons.CommonsMultipartResolver.parseRequest(CommonsMultipartResolver.java:158)
at org.springframework.web.multipart.commons.CommonsMultipartResolver.resolveMultipart(CommonsMultipartResolver.java:142)
at org.springframework.web.servlet.DispatcherServlet.checkMultipart(DispatcherServlet.java:1176)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1011)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942)
at org.springframework.web.servlet.F