servlet [Jersey Web应用程序]创建的未捕获的init()异常

时间:2018-07-05 03:05:38

标签: java servlets jersey websphere

我在IBM Cloud(Bluemix)上部署了两个应用程序,预冷(Node.js,SDK for Node.js™)和 graybox (Jersey,Liberty for Java™)。 )。 预冷会在灰色框中调用API来检索数据。以前它们效果很好,但是灰色框今天不起作用。我几次遇到这个问题,并且尝试了不同的方法,终于解决了:

  1. 重新启动两个应用程序
  2. 停止其他应用连接到Graybox
  3. 增加灰盒中的内存大小
  4. 等待几个小时

但是,这一次它们都不起作用。我还调查了几种解决方案,但没有一个解决了我的问题。这些是我尝试过的:

  1. OAuth =>未使用
  2. Chrome上的Cookie =>在Chrome上使用隐身窗口并重新启动Chrome =>没有帮助
  3. 据我了解,我使用的是Liberty,而不是WAS,因此在我的实例中找不到以下解决方案:
    1. WAS管理控制台并更改我的WAS版本https://coderanch.com/t/632266/application-servers/Java-Application-Deployed-Websphere-Unable
    2. 我的应用Websphere Application startup error中的类加载和更新检测
    3. ffdc日志Receiving Uncaught.init.exception thrown by servlet?

这是Graybox应用程序中的日志跟踪。

   2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] OUT [INFO    ] Scanning for root resource and provider classes in the Web app resource paths:
   2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] OUT   /WEB-INF/lib
   2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] OUT   /WEB-INF/classes
   2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR [ERROR   ] SRVE0271E: Uncaught init() exception created by servlet [Jersey Web Application] in application [myapp]: java.lang.IllegalAccessError: Class com/sun/jersey/spi/scanning/AnnotationScannerListener illegally accessing "private" member of class com/sun/jersey/core/reflection/ReflectionHelper
   2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR     at com.sun.jersey.spi.scanning.AnnotationScannerListener.<init>(AnnotationScannerListener.java:89)
   2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR     at com.sun.jersey.spi.scanning.PathProviderScannerListener.<init>(PathProviderScannerListener.java:59)
   2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR     at com.sun.jersey.api.core.ScanningResourceConfig.init(ScanningResourceConfig.java:79)
   2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR     at com.sun.jersey.api.core.WebAppResourceConfig.init(WebAppResourceConfig.java:100)
   2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR     at com.sun.jersey.api.core.WebAppResourceConfig.<init>(WebAppResourceConfig.java:87)
   2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR     at com.sun.jersey.api.core.WebAppResourceConfig.<init>(WebAppResourceConfig.java:72)
   2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR     at com.sun.jersey.spi.container.servlet.WebComponent.getWebAppResourceConfig(WebComponent.java:672)
   2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR     at com.sun.jersey.spi.container.servlet.ServletContainer.getDefaultResourceConfig(ServletContainer.java:414)
   2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR     at com.sun.jersey.spi.container.servlet.ServletContainer.getDefaultResourceConfig(ServletContainer.java:581)
   2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR     at com.sun.jersey.spi.container.servlet.WebServletConfig.getDefaultResourceConfig(WebServletConfig.java:87)
   2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR     at com.sun.jersey.spi.container.servlet.WebComponent.createResourceConfig(WebComponent.java:703)
   2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR     at com.sun.jersey.spi.container.servlet.WebComponent.createResourceConfig(WebComponent.java:678)
   2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR     at com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:203)
   2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR     at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:373)
   2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR     at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:556)
   2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR     at javax.servlet.GenericServlet.init(GenericServlet.java:244)
   2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR     at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:332)
   2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR     at [internal classes]

0 个答案:

没有答案