CF 10更新14之后的HTTP状态500错误Tomcat 7.0.23

时间:2014-11-05 14:47:20

标签: tomcat coldfusion

我最近应用了CF 10更新14,之后在尝试访问管理面板时收到此错误。

HTTP Status 500
type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: java.lang.NullPointerException
    coldfusion.bootstrap.ClassloaderHelper.initServletClass(ClassloaderHelper.java:129)
    coldfusion.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59)
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:414)
    org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:204)
    org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539)
    org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298)
    java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    java.lang.Thread.run(Thread.java:662)
root cause

java.lang.NullPointerException
    coldfusion.CfmServlet.init(CfmServlet.java:97)
    coldfusion.bootstrap.ClassloaderHelper.initServletClass(ClassloaderHelper.java:121)
    coldfusion.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59)
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:414)
    org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:204)
    org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539)
    org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298)
    java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    java.lang.Thread.run(Thread.java:662)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.23 logs.

2 个答案:

答案 0 :(得分:2)

这恰好是因为未正确安装修补程序。我从命令提示符下进行了手动卸载:

java -jar {cf_install_home}/{instance_home}/hf_updates/hf-10-00014/uninstall /uninstaller.jar

检查日志文件,发现hf_updates文件夹存在访问错误。应用读/写属性到文件夹并重新安装CF 10 Update 14.现在一切正常。

答案 1 :(得分:0)

此答案仍适用于CF 10更新19.更新失败,因为安全加固过程限制了对操作系统和CF实例根的访问,并且该用户无权访问hf_updates / *文件夹。一旦授予通过cf管理面板安装完美无瑕。

只需按以下步骤更新卸载命令:

java -jar {cf_install_home}/{instance_home}/hf_updates/hf-10-00019/uninstall /uninstaller.jar