我正在使用 struts2.1.8 和 freemarker2.3.15。程序上线后,抛出IOException。堆栈跟踪仅显示了很多过滤器,我无法从堆栈跟踪中判断出什么问题,希望有人见过这种错误并提供帮助。
java.io.IOException: There was an error loading the template on an earlier attempt; it is attached as a cause
freemarker.cache.TemplateCache.throwLoadFailedException(TemplateCache.java:400)
freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:278)
freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:235)
freemarker.template.Configuration.getTemplate(Configuration.java:487)
freemarker.template.Configuration.getTemplate(Configuration.java:459)
org.apache.struts2.views.freemarker.FreemarkerResult.doExecute(FreemarkerResult.java:168)
org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:186)
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:362)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:266)
org.apache.struts2.interceptor.MessageStoreInterceptor.intercept(MessageStoreInterceptor.java:204)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
java.lang.NullPointerException
com.creditease.core.exception.ExceptionInterceptor.intercept(ExceptionInterceptor.java:42)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
org.apache.struts2.interceptor.MessageStoreInterceptor.intercept(MessageStoreInterceptor.java:204)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
com.creditease.p2p.interceptor.AccessInterceptor.intercept(AccessInterceptor.java:75)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)