0

我正在使用 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)
4

1 回答 1

0

这可能是因为您的生产应用程序服务器是从它无法访问的某个路径启动的。尝试从它可以访问的路径并使用 root 凭据启动您的服务器。

于 2012-10-22T10:00:05.083 回答