此错误 PWC1635:Illegal access:this web application instance has been stopped already(PWC1635: 非法访问: 该 Web 应用程序实例已停止)是什么意思?

完整的错误信息如下所示:

PWC1635:Illegal access:this web application instance has been stopped already (the eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact)(PWC1635: 非法访问: 该 Web 应用程序实例已停止 出于调试目的而引发的错误以及尝试终止导致非法访问的线程造成了最终随之而来的栈跟踪,但并无功能方面的影响)

这意味着,组件要求 Web 应用程序的类加载器在 Webapp 启动之前或停止之后装入资源。

在后一种情况下,如果对 Web 应用程序的类加载器进行了缓存,但在停止或取消部署 Web 应用程序时未从高速缓存中清除它,则会出现此错误。例如,如果应用程序调用了 Thread.setContextClassLoader(WebappClassLoader),但在停止或取消部署相关的 Web 应用程序时忘记了取消设置它,则会出现此错误。下次会重新使用该线程,而且会尝试使用其上下文类加载器装入资源,此时会报告上述错误。


英文