我正在将应用程序(JSF 2.0 / openJPA / primeFaces,EJB 3.0和JPA 2.0)从WAS v7迁移到Liberty 8.5.5.9。应用程序已经部署并成功启动但是我在打开时遇到上下文初始化失败错误这页纸。错误细节如下。谁能帮我解决这个问题?提前致谢。我进一步添加了每当我尝试打开任何页面时创建的ffdc日志。它显示了由java.lang.NullPointerException引起的。我用@PostConstruct&更改了静态初始化块。 public void init()。所以现在我没有收到这个错误。但是现在我面临的一个不同的NPE来自过滤器下面的过滤器。你能看一下吗?
----------------------------------------------------------------------------
CONSOLE LOG
----------------------------------------------------------------------------
[WARNING ] SRVE0274W: Error while adding servlet mapping for path-->/rest/*, wrapper-->ServletWrapper[RESTService:[/rest/*]], application-->GSAR-WebEAR.
[WARNING ] SRVE0274W: Error while adding servlet mapping for path-->/gsar/abb/abb_view.xhtml, wrapper-->ServletWrapper[GSARRedirect:[/gsar/abb/abb_view.xhtml, /gsar/abb/abb_details.xhtml, /gsar/abb/gda_framework_view.xhtml, /gsar/abb/gda_overview.xhtml, /gsar/abb/gda_sbb_table_view.xhtml, /gsar/abb/primary_abb_details.xhtml, /gsar/abb/secondary_abb_details.xhtml, /gsar/abb/sbb_details.xhtml, /gsar/abb/sbb_integration_considerations.xhtml, /gsar/general_view/doc_type_models/doc_view_type.xhtml, /gsar/general_view/doc_type_models/document_type.xhtml, /gsar/domain_views/organization/view_client_first.xhtml, /gsar/domain_views/organization/about_playbook_1.xhtml, /gsar/domain_views/organization/about_playbook_2.xhtml, /gsar/domain_views/organization/about_playbook.xhtml, /gsar/domain_views/organization/view_service_line.xhtml, /gsar/domain_views/organization/view_service_line_component.xhtml]], application-->GSAR-WebEAR.
[WARNING ] SRVE0274W: Error while adding servlet mapping for path-->/gsar/abb/abb_details.xhtml, wrapper-->ServletWrapper[GSARRedirect:[/gsar/abb/abb_view.xhtml, /gsar/abb/abb_details.xhtml, /gsar/abb/gda_framework_view.xhtml, /gsar/abb/gda_overview.xhtml, /gsar/abb/gda_sbb_table_view.xhtml, /gsar/abb/primary_abb_details.xhtml, /gsar/abb/secondary_abb_details.xhtml, /gsar/abb/sbb_details.xhtml, /gsar/abb/sbb_integration_considerations.xhtml, /gsar/general_view/doc_type_models/doc_view_type.xhtml, /gsar/general_view/doc_type_models/document_type.xhtml, /gsar/domain_views/organization/view_client_first.xhtml, /gsar/domain_views/organization/about_playbook_1.xhtml, /gsar/domain_views/organization/about_playbook_2.xhtml, /gsar/domain_views/organization/about_playbook.xhtml, /gsar/domain_views/organization/view_service_line.xhtml, /gsar/domain_views/organization/view_service_line_component.xhtml]], application-->GSAR-WebEAR.
[WARNING ] SRVE0274W: Error while adding servlet mapping for path-->/gsar/abb/gda_framework_view.xhtml, wrapper-->ServletWrapper[GSARRedirect:[/gsar/abb/abb_view.xhtml, /gsar/abb/abb_details.xhtml, /gsar/abb/gda_framework_view.xhtml, /gsar/abb/gda_overview.xhtml, /gsar/abb/gda_sbb_table_view.xhtml, /gsar/abb/primary_abb_details.xhtml, /gsar/abb/secondary_abb_details.xhtml, /gsar/abb/sbb_details.xhtml, /gsar/abb/sbb_integration_considerations.xhtml, /gsar/general_view/doc_type_models/doc_view_type.xhtml, /gsar/general_view/doc_type_models/document_type.xhtml, /gsar/domain_views/organization/view_client_first.xhtml, /gsar/domain_views/organization/about_playbook_1.xhtml, /gsar/domain_views/organization/about_playbook_2.xhtml, /gsar/domain_views/organization/about_playbook.xhtml, /gsar/domain_views/organization/view_service_line.xhtml, /gsar/domain_views/organization/view_service_line_component.xhtml]], application-->GSAR-WebEAR.
[WARNING ] SRVE0274W: Error while adding servlet mapping for path-->/gsar/abb/gda_overview.xhtml, wrapper-->ServletWrapper[GSARRedirect:[/gsar/abb/abb_view.xhtml, /gsar/abb/abb_details.xhtml, /gsar/abb/gda_framework_view.xhtml, /gsar/abb/gda_overview.xhtml, /gsar/abb/gda_sbb_table_view.xhtml, /gsar/abb/primary_abb_details.xhtml, /gsar/abb/secondary_abb_details.xhtml, /gsar/abb/sbb_details.xhtml, /gsar/abb/sbb_integration_considerations.xhtml, /gsar/general_view/doc_type_models/doc_view_type.xhtml, /gsar/general_view/doc_type_models/document_type.xhtml, /gsar/domain_views/organization/view_client_first.xhtml, /gsar/domain_views/organization/about_playbook_1.xhtml, /gsar/domain_views/organization/about_playbook_2.xhtml, /gsar/domain_views/organization/about_playbook.xhtml, /gsar/domain_views/organization/view_service_line.xhtml, /gsar/domain_views/organization/view_service_line_component.xhtml]], application-->GSAR-WebEAR.
[WARNING ] SRVE0274W: Error while adding servlet mapping for path-->/gsar/abb/gda_sbb_table_view.xhtml, wrapper-->ServletWrapper[GSARRedirect:[/gsar/abb/abb_view.xhtml, /gsar/abb/abb_details.xhtml, /gsar/abb/gda_framework_view.xhtml, /gsar/abb/gda_overview.xhtml, /gsar/abb/gda_sbb_table_view.xhtml, /gsar/abb/primary_abb_details.xhtml, /gsar/abb/secondary_abb_details.xhtml, /gsar/abb/sbb_details.xhtml, /gsar/abb/sbb_integration_considerations.xhtml, /gsar/general_view/doc_type_models/doc_view_type.xhtml, /gsar/general_view/doc_type_models/document_type.xhtml, /gsar/domain_views/organization/view_client_first.xhtml, /gsar/domain_views/organization/about_playbook_1.xhtml, /gsar/domain_views/organization/about_playbook_2.xhtml, /gsar/domain_views/organization/about_playbook.xhtml, /gsar/domain_views/organization/view_service_line.xhtml, /gsar/domain_views/organization/view_service_line_component.xhtml]], application-->GSAR-WebEAR.
[WARNING ] SRVE0274W: Error while adding servlet mapping for path-->/gsar/abb/primary_abb_details.xhtml, wrapper-->ServletWrapper[GSARRedirect:[/gsar/abb/abb_view.xhtml, /gsar/abb/abb_details.xhtml, /gsar/abb/gda_framework_view.xhtml, /gsar/abb/gda_overview.xhtml, /gsar/abb/gda_sbb_table_view.xhtml, /gsar/abb/primary_abb_details.xhtml, /gsar/abb/secondary_abb_details.xhtml, /gsar/abb/sbb_details.xhtml, /gsar/abb/sbb_integration_considerations.xhtml, /gsar/general_view/doc_type_models/doc_view_type.xhtml, /gsar/general_view/doc_type_models/document_type.xhtml, /gsar/domain_views/organization/view_client_first.xhtml, /gsar/domain_views/organization/about_playbook_1.xhtml, /gsar/domain_views/organization/about_playbook_2.xhtml, /gsar/domain_views/organization/about_playbook.xhtml, /gsar/domain_views/organization/view_service_line.xhtml, /gsar/domain_views/organization/view_service_line_component.xhtml]], application-->GSAR-WebEAR.
[WARNING ] SRVE0274W: Error while adding servlet mapping for path-->/gsar/abb/secondary_abb_details.xhtml, wrapper-->ServletWrapper[GSARRedirect:[/gsar/abb/abb_view.xhtml, /gsar/abb/abb_details.xhtml, /gsar/abb/gda_framework_view.xhtml, /gsar/abb/gda_overview.xhtml, /gsar/abb/gda_sbb_table_view.xhtml, /gsar/abb/primary_abb_details.xhtml, /gsar/abb/secondary_abb_details.xhtml, /gsar/abb/sbb_details.xhtml, /gsar/abb/sbb_integration_considerations.xhtml, /gsar/general_view/doc_type_models/doc_view_type.xhtml, /gsar/general_view/doc_type_models/document_type.xhtml, /gsar/domain_views/organization/view_client_first.xhtml, /gsar/domain_views/organization/about_playbook_1.xhtml, /gsar/domain_views/organization/about_playbook_2.xhtml, /gsar/domain_views/organization/about_playbook.xhtml, /gsar/domain_views/organization/view_service_line.xhtml, /gsar/domain_views/organization/view_service_line_component.xhtml]], application-->GSAR-WebEAR.
[WARNING ] SRVE0274W: Error while adding servlet mapping for path-->/gsar/abb/sbb_details.xhtml, wrapper-->ServletWrapper[GSARRedirect:[/gsar/abb/abb_view.xhtml, /gsar/abb/abb_details.xhtml, /gsar/abb/gda_framework_view.xhtml, /gsar/abb/gda_overview.xhtml, /gsar/abb/gda_sbb_table_view.xhtml, /gsar/abb/primary_abb_details.xhtml, /gsar/abb/secondary_abb_details.xhtml, /gsar/abb/sbb_details.xhtml, /gsar/abb/sbb_integration_considerations.xhtml, /gsar/general_view/doc_type_models/doc_view_type.xhtml, /gsar/general_view/doc_type_models/document_type.xhtml, /gsar/domain_views/organization/view_client_first.xhtml, /gsar/domain_views/organization/about_playbook_1.xhtml, /gsar/domain_views/organization/about_playbook_2.xhtml, /gsar/domain_views/organization/about_playbook.xhtml, /gsar/domain_views/organization/view_service_line.xhtml, /gsar/domain_views/organization/view_service_line_component.xhtml]], application-->GSAR-WebEAR.
[WARNING ] SRVE0274W: Error while adding servlet mapping for path-->/gsar/abb/sbb_integration_considerations.xhtml, wrapper-->ServletWrapper[GSARRedirect:[/gsar/abb/abb_view.xhtml, /gsar/abb/abb_details.xhtml, /gsar/abb/gda_framework_view.xhtml, /gsar/abb/gda_overview.xhtml, /gsar/abb/gda_sbb_table_view.xhtml, /gsar/abb/primary_abb_details.xhtml, /gsar/abb/secondary_abb_details.xhtml, /gsar/abb/sbb_details.xhtml, /gsar/abb/sbb_integration_considerations.xhtml, /gsar/general_view/doc_type_models/doc_view_type.xhtml, /gsar/general_view/doc_type_models/document_type.xhtml, /gsar/domain_views/organization/view_client_first.xhtml, /gsar/domain_views/organization/about_playbook_1.xhtml, /gsar/domain_views/organization/about_playbook_2.xhtml, /gsar/domain_views/organization/about_playbook.xhtml, /gsar/domain_views/organization/view_service_line.xhtml, /gsar/domain_views/organization/view_service_line_component.xhtml]], application-->GSAR-WebEAR.
[WARNING ] SRVE0274W: Error while adding servlet mapping for path-->/gsar/general_view/doc_type_models/doc_view_type.xhtml, wrapper-->ServletWrapper[GSARRedirect:[/gsar/abb/abb_view.xhtml, /gsar/abb/abb_details.xhtml, /gsar/abb/gda_framework_view.xhtml, /gsar/abb/gda_overview.xhtml, /gsar/abb/gda_sbb_table_view.xhtml, /gsar/abb/primary_abb_details.xhtml, /gsar/abb/secondary_abb_details.xhtml, /gsar/abb/sbb_details.xhtml, /gsar/abb/sbb_integration_considerations.xhtml, /gsar/general_view/doc_type_models/doc_view_type.xhtml, /gsar/general_view/doc_type_models/document_type.xhtml, /gsar/domain_views/organization/view_client_first.xhtml, /gsar/domain_views/organization/about_playbook_1.xhtml, /gsar/domain_views/organization/about_playbook_2.xhtml, /gsar/domain_views/organization/about_playbook.xhtml, /gsar/domain_views/organization/view_service_line.xhtml, /gsar/domain_views/organization/view_service_line_component.xhtml]], application-->GSAR-WebEAR.
[WARNING ] SRVE0274W: Error while adding servlet mapping for path-->/gsar/general_view/doc_type_models/document_type.xhtml, wrapper-->ServletWrapper[GSARRedirect:[/gsar/abb/abb_view.xhtml, /gsar/abb/abb_details.xhtml, /gsar/abb/gda_framework_view.xhtml, /gsar/abb/gda_overview.xhtml, /gsar/abb/gda_sbb_table_view.xhtml, /gsar/abb/primary_abb_details.xhtml, /gsar/abb/secondary_abb_details.xhtml, /gsar/abb/sbb_details.xhtml, /gsar/abb/sbb_integration_considerations.xhtml, /gsar/general_view/doc_type_models/doc_view_type.xhtml, /gsar/general_view/doc_type_models/document_type.xhtml, /gsar/domain_views/organization/view_client_first.xhtml, /gsar/domain_views/organization/about_playbook_1.xhtml, /gsar/domain_views/organization/about_playbook_2.xhtml, /gsar/domain_views/organization/about_playbook.xhtml, /gsar/domain_views/organization/view_service_line.xhtml, /gsar/domain_views/organization/view_service_line_component.xhtml]], application-->GSAR-WebEAR.
[WARNING ] SRVE0274W: Error while adding servlet mapping for path-->/gsar/domain_views/organization/view_client_first.xhtml, wrapper-->ServletWrapper[GSARRedirect:[/gsar/abb/abb_view.xhtml, /gsar/abb/abb_details.xhtml, /gsar/abb/gda_framework_view.xhtml, /gsar/abb/gda_overview.xhtml, /gsar/abb/gda_sbb_table_view.xhtml, /gsar/abb/primary_abb_details.xhtml, /gsar/abb/secondary_abb_details.xhtml, /gsar/abb/sbb_details.xhtml, /gsar/abb/sbb_integration_considerations.xhtml, /gsar/general_view/doc_type_models/doc_view_type.xhtml, /gsar/general_view/doc_type_models/document_type.xhtml, /gsar/domain_views/organization/view_client_first.xhtml, /gsar/domain_views/organization/about_playbook_1.xhtml, /gsar/domain_views/organization/about_playbook_2.xhtml, /gsar/domain_views/organization/about_playbook.xhtml, /gsar/domain_views/organization/view_service_line.xhtml, /gsar/domain_views/organization/view_service_line_component.xhtml]], application-->GSAR-WebEAR.
[WARNING ] SRVE0274W: Error while adding servlet mapping for path-->/gsar/domain_views/organization/about_playbook_1.xhtml, wrapper-->ServletWrapper[GSARRedirect:[/gsar/abb/abb_view.xhtml, /gsar/abb/abb_details.xhtml, /gsar/abb/gda_framework_view.xhtml, /gsar/abb/gda_overview.xhtml, /gsar/abb/gda_sbb_table_view.xhtml, /gsar/abb/primary_abb_details.xhtml, /gsar/abb/secondary_abb_details.xhtml, /gsar/abb/sbb_details.xhtml, /gsar/abb/sbb_integration_considerations.xhtml, /gsar/general_view/doc_type_models/doc_view_type.xhtml, /gsar/general_view/doc_type_models/document_type.xhtml, /gsar/domain_views/organization/view_client_first.xhtml, /gsar/domain_views/organization/about_playbook_1.xhtml, /gsar/domain_views/organization/about_playbook_2.xhtml, /gsar/domain_views/organization/about_playbook.xhtml, /gsar/domain_views/organization/view_service_line.xhtml, /gsar/domain_views/organization/view_service_line_component.xhtml]], application-->GSAR-WebEAR.
[WARNING ] SRVE0274W: Error while adding servlet mapping for path-->/gsar/domain_views/organization/about_playbook_2.xhtml, wrapper-->ServletWrapper[GSARRedirect:[/gsar/abb/abb_view.xhtml, /gsar/abb/abb_details.xhtml, /gsar/abb/gda_framework_view.xhtml, /gsar/abb/gda_overview.xhtml, /gsar/abb/gda_sbb_table_view.xhtml, /gsar/abb/primary_abb_details.xhtml, /gsar/abb/secondary_abb_details.xhtml, /gsar/abb/sbb_details.xhtml, /gsar/abb/sbb_integration_considerations.xhtml, /gsar/general_view/doc_type_models/doc_view_type.xhtml, /gsar/general_view/doc_type_models/document_type.xhtml, /gsar/domain_views/organization/view_client_first.xhtml, /gsar/domain_views/organization/about_playbook_1.xhtml, /gsar/domain_views/organization/about_playbook_2.xhtml, /gsar/domain_views/organization/about_playbook.xhtml, /gsar/domain_views/organization/view_service_line.xhtml, /gsar/domain_views/organization/view_service_line_component.xhtml]], application-->GSAR-WebEAR.
[WARNING ] SRVE0274W: Error while adding servlet mapping for path-->/gsar/domain_views/organization/about_playbook.xhtml, wrapper-->ServletWrapper[GSARRedirect:[/gsar/abb/abb_view.xhtml, /gsar/abb/abb_details.xhtml, /gsar/abb/gda_framework_view.xhtml, /gsar/abb/gda_overview.xhtml, /gsar/abb/gda_sbb_table_view.xhtml, /gsar/abb/primary_abb_details.xhtml, /gsar/abb/secondary_abb_details.xhtml, /gsar/abb/sbb_details.xhtml, /gsar/abb/sbb_integration_considerations.xhtml, /gsar/general_view/doc_type_models/doc_view_type.xhtml, /gsar/general_view/doc_type_models/document_type.xhtml, /gsar/domain_views/organization/view_client_first.xhtml, /gsar/domain_views/organization/about_playbook_1.xhtml, /gsar/domain_views/organization/about_playbook_2.xhtml, /gsar/domain_views/organization/about_playbook.xhtml, /gsar/domain_views/organization/view_service_line.xhtml, /gsar/domain_views/organization/view_service_line_component.xhtml]], application-->GSAR-WebEAR.
[WARNING ] SRVE0274W: Error while adding servlet mapping for path-->/gsar/domain_views/organization/view_service_line.xhtml, wrapper-->ServletWrapper[GSARRedirect:[/gsar/abb/abb_view.xhtml, /gsar/abb/abb_details.xhtml, /gsar/abb/gda_framework_view.xhtml, /gsar/abb/gda_overview.xhtml, /gsar/abb/gda_sbb_table_view.xhtml, /gsar/abb/primary_abb_details.xhtml, /gsar/abb/secondary_abb_details.xhtml, /gsar/abb/sbb_details.xhtml, /gsar/abb/sbb_integration_considerations.xhtml, /gsar/general_view/doc_type_models/doc_view_type.xhtml, /gsar/general_view/doc_type_models/document_type.xhtml, /gsar/domain_views/organization/view_client_first.xhtml, /gsar/domain_views/organization/about_playbook_1.xhtml, /gsar/domain_views/organization/about_playbook_2.xhtml, /gsar/domain_views/organization/about_playbook.xhtml, /gsar/domain_views/organization/view_service_line.xhtml, /gsar/domain_views/organization/view_service_line_component.xhtml]], application-->GSAR-WebEAR.
[WARNING ] SRVE0274W: Error while adding servlet mapping for path-->/gsar/domain_views/organization/view_service_line_component.xhtml, wrapper-->ServletWrapper[GSARRedirect:[/gsar/abb/abb_view.xhtml, /gsar/abb/abb_details.xhtml, /gsar/abb/gda_framework_view.xhtml, /gsar/abb/gda_overview.xhtml, /gsar/abb/gda_sbb_table_view.xhtml, /gsar/abb/primary_abb_details.xhtml, /gsar/abb/secondary_abb_details.xhtml, /gsar/abb/sbb_details.xhtml, /gsar/abb/sbb_integration_considerations.xhtml, /gsar/general_view/doc_type_models/doc_view_type.xhtml, /gsar/general_view/doc_type_models/document_type.xhtml, /gsar/domain_views/organization/view_client_first.xhtml, /gsar/domain_views/organization/about_playbook_1.xhtml, /gsar/domain_views/organization/about_playbook_2.xhtml, /gsar/domain_views/organization/about_playbook.xhtml, /gsar/domain_views/organization/view_service_line.xhtml, /gsar/domain_views/organization/view_service_line_component.xhtml]], application-->GSAR-WebEAR.
[WARNING ] SRVE0274W: Error while adding servlet mapping for path-->/imageServlet/*, wrapper-->ServletWrapper[ImageServlet:[/imageServlet/*]], application-->GSAR-WebEAR.
[WARNING ] SRVE0274W: Error while adding servlet mapping for path-->/gsar/*, wrapper-->ServletWrapper[Faces Servlet:[*.xhtml, /gsar/*]], application-->GSAR-WebEAR.
[WARNING ] SRVE0274W: Error while adding servlet mapping for path-->/gsar/login/login_check, wrapper-->ServletWrapper[GSARLogin:[/gsar/login/login_check]], application-->GSAR-WebEAR.
[WARNING ] More than one managed bean w/ the name of 'solutionPopupCodePageController' - only keeping the last
[ERROR ] SRVE0283E: Exception caught while initializing context: java.lang.NoClassDefFoundError: com.ibm.gsar.bean.SiteNavBean (initialization failure)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:181)
at java.lang.J9VMInternals.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1505)
at com.ibm.ws.jsf.config.annotation.WebSphereAnnotationLifecycleProvider.newInstance(WebSphereAnnotationLifecycleProvider.java:63)
at [internal classes]
[ERROR ] SRVE0315E: An exception occurred: java.lang.Throwable: java.lang.NullPointerException
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:4913)
at [internal classes]
Caused by: java.lang.NullPointerException
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterChainContents(WebAppFilterManager.java:829)
... 1 more
[ERROR ] SRVE0095I: Servlet has become temporarily unavailable for service: /services/gsar/gsar.xhtml
----------------------------------------------------------------------------
**FDDC.LOG**
----------------------------------------------------------------------------
Exception = java.lang.ExceptionInInitializerError
Source = com.ibm.ws.webcontainer.osgi.DynamicVirtualHost
probeid = startWebApp
Stack Dump = java.lang.ExceptionInInitializerError
at java.lang.J9VMInternals.initialize(J9VMInternals.java:263)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:208)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:176)
at com.ibm.ws.webcontainer.osgi.webapp.WebApp.addClassToHandlesTypesStartupSet(WebApp.java:1096)
at com.ibm.ws.webcontainer.osgi.webapp.WebApp.scanForHandlesTypesClasses(WebApp.java:959)
at com.ibm.ws.webcontainer.webapp.WebApp.initializeServletContainerInitializers(WebApp.java:2473)
at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:1038)
at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:6463)
at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost.startWebApp(DynamicVirtualHost.java:446)
at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost.createRunnableHandler(DynamicVirtualHost.java:248)
at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost.createRunnableHandler(DynamicVirtualHost.java:313)
at com.ibm.ws.http.internal.VirtualHostImpl.discriminate(VirtualHostImpl.java:251)
at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink.ready(HttpDispatcherLink.java:306)
at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:471)
at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.handleNewRequest(HttpInboundLink.java:405)
at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.processRequest(HttpInboundLink.java:285)
at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.ready(HttpInboundLink.java:256)
at com.ibm.ws.tcpchannel.internal.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:174)
at com.ibm.ws.tcpchannel.internal.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:83)
at com.ibm.ws.tcpchannel.internal.WorkQueueManager.requestComplete(WorkQueueManager.java:504)
at com.ibm.ws.tcpchannel.internal.WorkQueueManager.attemptIO(WorkQueueManager.java:574)
at com.ibm.ws.tcpchannel.internal.WorkQueueManager.workerRun(WorkQueueManager.java:929)
at com.ibm.ws.tcpchannel.internal.WorkQueueManager$Worker.run(WorkQueueManager.java:1018)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1121)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614)
at java.lang.Thread.run(Thread.java:780)
Caused by: java.lang.NullPointerException
at pagecode.PageCodeBase.<clinit>(PageCodeBase.java:42)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:241)
... 26 more
---------------------------------------------------------------------------------
CONSOLE LOG - Filter Error
---------------------------------------------------------------------------------
Error Page Exception
SRVE0260E: The server cannot use the error page specified for your application to handle the Original Exception printed below.
Original Exception:
Error Message: java.lang.NullPointerException
Error Code: 500
Target Servlet: Faces Servlet
Error Stack:
java.lang.NullPointerException
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterChainContents(WebAppFilterManager.java:829)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterChain(WebAppFilterManager.java:385)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:985)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1143)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:82)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:928)
at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost$2.run(DynamicVirtualHost.java:262)
at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink$TaskWrapper.run(HttpDispatcherLink.java:955)
at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink.ready(HttpDispatcherLink.java:341)
at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:471)
at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.handleNewRequest(HttpInboundLink.java:405)
at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.processRequest(HttpInboundLink.java:285)
at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.ready(HttpInboundLink.java:256)
at com.ibm.ws.tcpchannel.internal.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:174)
at com.ibm.ws.tcpchannel.internal.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:83)
at com.ibm.ws.tcpchannel.internal.WorkQueueManager.requestComplete(WorkQueueManager.java:504)
at com.ibm.ws.tcpchannel.internal.WorkQueueManager.attemptIO(WorkQueueManager.java:574)
at com.ibm.ws.tcpchannel.internal.WorkQueueManager.workerRun(WorkQueueManager.java:929)
at com.ibm.ws.tcpchannel.internal.WorkQueueManager$Worker.run(WorkQueueManager.java:1018)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1121)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614)
at java.lang.Thread.run(Thread.java:780)
Error Page Exception:
Error Message: java.lang.NullPointerException
Error Code: 0
Target Servlet:
Error Stack:
java.lang.NullPointerException
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterChainContents(WebAppFilterManager.java:829)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterChain(WebAppFilterManager.java:385)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:988)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1143)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:1378)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:186)
at com.ibm.ws.webcontainer.webapp.WebApp.sendError(WebApp.java:4212)
at com.ibm.ws.webcontainer.webapp.WebApp.handleException(WebApp.java:4944)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:97)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:928)
at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost$2.run(DynamicVirtualHost.java:262)
at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink$TaskWrapper.run(HttpDispatcherLink.java:955)
at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink.ready(HttpDispatcherLink.java:341)
at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:471)
at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.handleNewRequest(HttpInboundLink.java:405)
at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.processRequest(HttpInboundLink.java:285)
at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.ready(HttpInboundLink.java:256)
at com.ibm.ws.tcpchannel.internal.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:174)
at com.ibm.ws.tcpchannel.internal.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:83)
at com.ibm.ws.tcpchannel.internal.WorkQueueManager.requestComplete(WorkQueueManager.java:504)
at com.ibm.ws.tcpchannel.internal.WorkQueueManager.attemptIO(WorkQueueManager.java:574)
at com.ibm.ws.tcpchannel.internal.WorkQueueManager.workerRun(WorkQueueManager.java:929)
at com.ibm.ws.tcpchannel.internal.WorkQueueManager$Worker.run(WorkQueueManager.java:1018)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1121)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614)
at java.lang.Thread.run(Thread.java:780)
答案 0 :(得分:1)
FacesContext.getCurrentInstance()返回null。 WebSphere Application Server在此上下文中初始化您的类是有点可疑的(可能使用1-arg Class.forName而不是3-arg no-init Class.forName或ClassLoader.loadClass),但是您尝试它是非常脆弱的从静态初始化程序访问JSF上下文。我的建议是使用ServletContextListener来获取ServletContext.getContextPath,而不是希望你的类在正确的上下文中初始化。