博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
tmpFile.renameTo(classFile) failed解决
阅读量:6693 次
发布时间:2019-06-25

本文共 5266 字,大约阅读时间需要 17 分钟。

完整异常:

严重: Servlet.service() for servlet [bjbr] in context with path [/HerPeisWechat] threw exception [Unable to compile class for JSP] with root causejava.io.IOException: tmpFile.renameTo(classFile) failed    at org.apache.jasper.compiler.SmapUtil$SDEInstaller.install(SmapUtil.java:204)    at org.apache.jasper.compiler.SmapUtil.installSmap(SmapUtil.java:163)    at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:505)    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:379)    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:341)    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:662)    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:364)    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:747)    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:485)    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:410)    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:337)    at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:168)    at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:303)    at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1228)    at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1011)    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:955)    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:857)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)    at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)    at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436)    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)    at java.lang.Thread.run(Thread.java:745)
View Code

经查,catalina目录下 jsp没有正常编译,如下图,submitinfo正常,suitlist多了tmp后缀

重启了项目正常了(也可以clean work dictionary),具体原因没深究

20180423: 也可以直接更改文件名后缀,去掉tmp,刷新页面即可

转载于:https://www.cnblogs.com/yanan7890/p/8806242.html

你可能感兴趣的文章
创业浪潮:春天蓬勃而来
查看>>
阿里云Linux安装软件镜像源
查看>>
阿里云对象存储OSS支持版本管理特性
查看>>
用python 访问redis的几种常用方式
查看>>
我的友情链接
查看>>
Linux Shell 基本概念及编程(5)
查看>>
我的友情链接
查看>>
svn 实践
查看>>
在 PowerShell 中使用 SQL Server (3)
查看>>
CSS元素定位
查看>>
质量时代——“Jolt大奖精选丛书”有奖征文
查看>>
DNS服务器维护命令
查看>>
六、用户与权限
查看>>
面向机器学习数据平台的设计与搭建
查看>>
centos6.7 编译安装mysql-5.6.27
查看>>
spring cloud 整合zpkin问题
查看>>
Maven下载慢的解决方案
查看>>
我的友情链接
查看>>
Android 核心分析 之七------Service深入分析
查看>>
Regsvr32使用方法
查看>>