JSFマネージドビーンを持っています
WebSphere AppServerのJSFページからマネージドBeanを参照すると、エラーが発生します。
<h:inputText value=#{bean}/>
Beanは、faces-config.xmlで次のように定義されています。
<managed-bean>
<managed-bean-name>bean</managed-bean-name>
<managed-bean-class>com.test.Bean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
これは例外です:
com.Sun.faces.mgbean.ManagedBeanCreationException:マネージドBeanのmailingCitySuggestionsでリソースインジェクションを実行中にエラーが発生しました
更新:これはスタックトレースです:
com.Sun.faces.mgbean.ManagedBeanCreationException: An error occurred performing resource injection on managed bean mailingCitySuggestions
[5/31/11 13:37:10:506 CDT] 00000126 SystemErr R at com.Sun.faces.mgbean.BeanBuilder.injectResources(BeanBuilder.Java:213)
[5/31/11 13:37:10:506 CDT] 00000126 SystemErr R at com.Sun.faces.mgbean.BeanBuilder.build(BeanBuilder.Java:108)
[5/31/11 13:37:10:506 CDT] 00000126 SystemErr R at com.Sun.faces.mgbean.BeanManager.createAndPush(BeanManager.Java:374)
[5/31/11 13:37:10:506 CDT] 00000126 SystemErr R at com.Sun.faces.mgbean.BeanManager.create(BeanManager.Java:222)
[5/31/11 13:37:10:506 CDT] 00000126 SystemErr R at com.Sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.Java:88)
[5/31/11 13:37:10:506 CDT] 00000126 SystemErr R at javax.el.CompositeELResolver.getValue(CompositeELResolver.Java:143)
[5/31/11 13:37:10:506 CDT] 00000126 SystemErr R at com.Sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.Java:73)
[5/31/11 13:37:10:506 CDT] 00000126 SystemErr R at com.Sun.faces.el.ChainAwareVariableResolver.resolveVariable(ChainAwareVariableResolver.Java:107)
[5/31/11 13:37:10:507 CDT] 00000126 SystemErr R at com.ibm.faces.portlet.PortletVariableResolver.resolveVariable(PortletVariableResolver.Java:91)
[5/31/11 13:37:10:507 CDT] 00000126 SystemErr R at com.Sun.faces.el.VariableResolverChainWrapper.getValue(VariableResolverChainWrapper.Java:112)
[5/31/11 13:37:10:507 CDT] 00000126 SystemErr R at javax.el.CompositeELResolver.getValue(CompositeELResolver.Java:143)
[5/31/11 13:37:10:507 CDT] 00000126 SystemErr R at com.Sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.Java:73)
[5/31/11 13:37:10:507 CDT] 00000126 SystemErr R at org.Apache.el.parser.AstIdentifier.getValue(AstIdentifier.Java:45)
[5/31/11 13:37:10:507 CDT] 00000126 SystemErr R at org.Apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.Java:185)
[5/31/11 13:37:10:507 CDT] 00000126 SystemErr R at com.Sun.faces.application.ValueBindingValueExpressionAdapter.getValue(ValueBindingValueExpressionAdapter.Java:113)
[5/31/11 13:37:10:507 CDT] 00000126 SystemErr R at com.ibm.faces.renderkit.html_extended.TypeaheadRenderer.doAnswer(TypeaheadRenderer.Java:278)
[5/31/11 13:37:10:507 CDT] 00000126 SystemErr R at com.ibm.faces.renderkit.html_extended.TypeaheadRenderer.encodeBegin(TypeaheadRenderer.Java:81)
[5/31/11 13:37:10:507 CDT] 00000126 SystemErr R at com.ibm.faces.renderkit.DefaultAjaxRenderer.encodeBegin(DefaultAjaxRenderer.Java:64)
[5/31/11 13:37:10:507 CDT] 00000126 SystemErr R at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.Java:802)
[5/31/11 13:37:10:507 CDT] 00000126 SystemErr R at javax.faces.component.UIComponent.encodeAll(UIComponent.Java:934)
[5/31/11 13:37:10:507 CDT] 00000126 SystemErr R at javax.faces.render.Renderer.encodeChildren(Renderer.Java:148)
[5/31/11 13:37:10:507 CDT] 00000126 SystemErr R at com.ibm.faces.renderkit.DefaultAjaxRenderer.encodeChildren(DefaultAjaxRenderer.Java:73)
[5/31/11 13:37:10:507 CDT] 00000126 SystemErr R at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.Java:826)
[5/31/11 13:37:10:507 CDT] 00000126 SystemErr R at com.Sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.Java:234)
[5/31/11 13:37:10:507 CDT] 00000126 SystemErr R at com.Sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.Java:118)
[5/31/11 13:37:10:508 CDT] 00000126 SystemErr R at com.ibm.faces.renderkit.DefaultAjaxRenderer.encodeChildren(DefaultAjaxRenderer.Java:73)
[5/31/11 13:37:10:508 CDT] 00000126 SystemErr R at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.Java:826)
[5/31/11 13:37:10:508 CDT] 00000126 SystemErr R at com.Sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.Java:234)
[5/31/11 13:37:10:508 CDT] 00000126 SystemErr R at com.Sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.Java:118)
[5/31/11 13:37:10:508 CDT] 00000126 SystemErr R at com.ibm.faces.renderkit.DefaultAjaxRenderer.encodeChildren(DefaultAjaxRenderer.Java:73)
[5/31/11 13:37:10:508 CDT] 00000126 SystemErr R at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.Java:826)
[5/31/11 13:37:10:508 CDT] 00000126 SystemErr R at com.Sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.Java:234)
[5/31/11 13:37:10:508 CDT] 00000126 SystemErr R at com.Sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.Java:118)
[5/31/11 13:37:10:508 CDT] 00000126 SystemErr R at com.ibm.faces.renderkit.DefaultAjaxRenderer.encodeChildren(DefaultAjaxRenderer.Java:73)
[5/31/11 13:37:10:508 CDT] 00000126 SystemErr R at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.Java:826)
[5/31/11 13:37:10:508 CDT] 00000126 SystemErr R at javax.faces.component.UIComponent.encodeAll(UIComponent.Java:936)
[5/31/11 13:37:10:508 CDT] 00000126 SystemErr R at javax.faces.render.Renderer.encodeChildren(Renderer.Java:148)
[5/31/11 13:37:10:508 CDT] 00000126 SystemErr R at com.ibm.faces.renderkit.DefaultAjaxRenderer.encodeChildren(DefaultAjaxRenderer.Java:73)
[5/31/11 13:37:10:508 CDT] 00000126 SystemErr R at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.Java:826)
[5/31/11 13:37:10:508 CDT] 00000126 SystemErr R at javax.faces.component.UIComponent.encodeAll(UIComponent.Java:936)
[5/31/11 13:37:10:508 CDT] 00000126 SystemErr R at javax.faces.component.UIComponent.encodeAll(UIComponent.Java:942)
[5/31/11 13:37:10:508 CDT] 00000126 SystemErr R at javax.faces.component.UIComponent.encodeAll(UIComponent.Java:942)
[5/31/11 13:37:10:508 CDT] 00000126 SystemErr R at javax.faces.component.UIComponent.encodeAll(UIComponent.Java:942)
[5/31/11 13:37:10:509 CDT] 00000126 SystemErr R at com.Sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.Java:289)
[5/31/11 13:37:10:509 CDT] 00000126 SystemErr R at com.Sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.Java:220)
[5/31/11 13:37:10:509 CDT] 00000126 SystemErr R at com.ibm.faces.portlet.PortletViewHandlerImpl.renderView(PortletViewHandlerImpl.Java:79)
[5/31/11 13:37:10:509 CDT] 00000126 SystemErr R at com.Sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.Java:110)
[5/31/11 13:37:10:509 CDT] 00000126 SystemErr R at com.Sun.faces.lifecycle.Phase.doPhase(Phase.Java:100)
[5/31/11 13:37:10:509 CDT] 00000126 SystemErr R at com.Sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.Java:139)
[5/31/11 13:37:10:509 CDT] 00000126 SystemErr R at hhsc.it.mtp.core.listner.InterceptingLifecycle.render(InterceptingLifecycle.Java:84)
[5/31/11 13:37:10:509 CDT] 00000126 SystemErr R at com.ibm.faces.portlet.FacesPortlet.doRender(FacesPortlet.Java:374)
[5/31/11 13:37:10:509 CDT] 00000126 SystemErr R at com.ibm.faces.portlet.FacesPortlet.doView(FacesPortlet.Java:415)
[5/31/11 13:37:10:509 CDT] 00000126 SystemErr R at hhsc.it.mtp.portlet.IndividualSearchPortlet.doView(IndividualSearchPortlet.Java:36)
[5/31/11 13:37:10:509 CDT] 00000126 SystemErr R at com.ibm.faces.portlet.FacesPortlet.doDispatch(FacesPortlet.Java:303)
[5/31/11 13:37:10:509 CDT] 00000126 SystemErr R at javax.portlet.GenericPortlet.render(GenericPortlet.Java:233)
[5/31/11 13:37:10:509 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.invoker.impl.PortletFilterChainImpl.doFilter(PortletFilterChainImpl.Java:128)
[5/31/11 13:37:10:509 CDT] 00000126 SystemErr R at com.ibm.wps.propertybroker.standard.filter.C2APortletFilter.doFilter(C2APortletFilter.Java:183)
[5/31/11 13:37:10:509 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.invoker.impl.PortletFilterChainImpl.doFilter(PortletFilterChainImpl.Java:120)
[5/31/11 13:37:10:509 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.doDispatch(PortletServlet.Java:573)
[5/31/11 13:37:10:509 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.Java:114)
[5/31/11 13:37:10:510 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.rrd.RRDServerPortletServletCollaborator.doRender(RRDServerPortletServletCollaborator.Java:123)
[5/31/11 13:37:10:510 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.Java:105)
[5/31/11 13:37:10:510 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.cache.CacheCollaborator.doRender(CacheCollaborator.Java:92)
[5/31/11 13:37:10:510 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.Java:105)
[5/31/11 13:37:10:510 CDT] 00000126 SystemErr R at com.ibm.wps.pe.pc.waspc.core.impl.PortletServletCollaboratorImpl.doRender(PortletServletCollaboratorImpl.Java:156)
[5/31/11 13:37:10:510 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.Java:105)
[5/31/11 13:37:10:510 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.doDispatch(PortletServlet.Java:273)
[5/31/11 13:37:10:510 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.Java:82)
[5/31/11 13:37:10:510 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.rrd.RRDServerPortletServletCollaborator.doDispatch(RRDServerPortletServletCollaborator.Java:60)
[5/31/11 13:37:10:510 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.Java:74)
[5/31/11 13:37:10:510 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.cache.CacheCollaborator.doDispatch(CacheCollaborator.Java:74)
[5/31/11 13:37:10:510 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.Java:74)
[5/31/11 13:37:10:510 CDT] 00000126 SystemErr R at com.ibm.wps.pe.pc.waspc.core.impl.PortletServletCollaboratorImpl.doDispatch(PortletServletCollaboratorImpl.Java:121)
[5/31/11 13:37:10:510 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.Java:74)
[5/31/11 13:37:10:510 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.dispatch(PortletServlet.Java:208)
[5/31/11 13:37:10:510 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.service(PortletServlet.Java:165)
[5/31/11 13:37:10:510 CDT] 00000126 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.Java:831)
[5/31/11 13:37:10:511 CDT] 00000126 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.Java:1655)
[5/31/11 13:37:10:511 CDT] 00000126 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.Java:1595)
[5/31/11 13:37:10:511 CDT] 00000126 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.Java:104)
[5/31/11 13:37:10:511 CDT] 00000126 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.Java:77)
[5/31/11 13:37:10:511 CDT] 00000126 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.Java:895)
[5/31/11 13:37:10:511 CDT] 00000126 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.Java:932)
[5/31/11 13:37:10:511 CDT] 00000126 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.Java:500)
[5/31/11 13:37:10:511 CDT] 00000126 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.Java:178)
[5/31/11 13:37:10:511 CDT] 00000126 SystemErr R at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.Java:121)
[5/31/11 13:37:10:511 CDT] 00000126 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.Java:673)
[5/31/11 13:37:10:511 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.Java:214)
[5/31/11 13:37:10:511 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerCollaboratorChainImpl.doCollaborator(PortletInvokerCollaboratorChainImpl.Java:78)
[5/31/11 13:37:10:511 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.cache.PortletInvokerCacheCollaborator.doRender(PortletInvokerCacheCollaborator.Java:58)
[5/31/11 13:37:10:511 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerCollaboratorChainImpl.doCollaborator(PortletInvokerCollaboratorChainImpl.Java:67)
[5/31/11 13:37:10:511 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.ext.PortletInvokerPerformanceCollaborator.invoke(PortletInvokerPerformanceCollaborator.Java:313)
[5/31/11 13:37:10:511 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.ext.PortletInvokerPerformanceCollaborator.doInvoke(PortletInvokerPerformanceCollaborator.Java:101)
[5/31/11 13:37:10:511 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.ext.PortletInvokerPerformanceCollaborator.invokePMI(PortletInvokerPerformanceCollaborator.Java:163)
[5/31/11 13:37:10:512 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.ext.PortletInvokerPerformanceCollaborator.doInvoke(PortletInvokerPerformanceCollaborator.Java:91)
[5/31/11 13:37:10:512 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.ext.PortletInvokerPerformanceCollaborator.doRender(PortletInvokerPerformanceCollaborator.Java:74)
[5/31/11 13:37:10:512 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerCollaboratorChainImpl.doCollaborator(PortletInvokerCollaboratorChainImpl.Java:67)
[5/31/11 13:37:10:512 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerImpl.render(PortletInvokerImpl.Java:97)
[5/31/11 13:37:10:512 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.PortletContainerImpl.doRender(PortletContainerImpl.Java:119)
[5/31/11 13:37:10:512 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.PortletContainerInvokerCollaboratorChainImpl.doCollaborator(PortletContainerInvokerCollaboratorChainImpl.Java:80)
[5/31/11 13:37:10:512 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.ext.ExtCollaborator.doRender(ExtCollaborator.Java:74)
[5/31/11 13:37:10:512 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.PortletContainerInvokerCollaboratorChainImpl.doCollaborator(PortletContainerInvokerCollaboratorChainImpl.Java:67)
[5/31/11 13:37:10:512 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.cache.CacheInvokerCollaborator.doRender(CacheInvokerCollaborator.Java:66)
[5/31/11 13:37:10:512 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.PortletContainerInvokerCollaboratorChainImpl.doCollaborator(PortletContainerInvokerCollaboratorChainImpl.Java:67)
[5/31/11 13:37:10:512 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.PortletContainerImpl.renderPortlet(PortletContainerImpl.Java:89)
[5/31/11 13:37:10:512 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.pcinvoker.PortletInvokerImpl$2.run(PortletInvokerImpl.Java:100)
[5/31/11 13:37:10:512 CDT] 00000126 SystemErr R at Java.security.AccessController.doPrivileged(AccessController.Java:251)
[5/31/11 13:37:10:512 CDT] 00000126 SystemErr R at com.ibm.ws.portletcontainer.pcinvoker.PortletInvokerImpl.invokeRender(PortletInvokerImpl.Java:96)
[5/31/11 13:37:10:512 CDT] 00000126 SystemErr R at com.ibm.wps.pe.pc.waspc.core.impl.PortletInvokerImpl$1.invoke(PortletInvokerImpl.Java:98)
[5/31/11 13:37:10:513 CDT] 00000126 SystemErr R at com.ibm.wps.pe.pc.waspc.core.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.Java:182)
[5/31/11 13:37:10:513 CDT] 00000126 SystemErr R at com.ibm.wps.pe.pc.waspc.core.impl.PortletInvokerImpl.invokeRender(PortletInvokerImpl.Java:96)
[5/31/11 13:37:10:513 CDT] 00000126 SystemErr R at com.ibm.wps.pe.pc.waspc.PortletContainerImpl.renderPortlet(PortletContainerImpl.Java:116)
[5/31/11 13:37:10:513 CDT] 00000126 SystemErr R at com.ibm.wps.pe.pc.PortletContainerImpl.doRenderPortlet(PortletContainerImpl.Java:641)
[5/31/11 13:37:10:513 CDT] 00000126 SystemErr R at com.ibm.wps.pe.ext.render.AbstractRenderManager.performService(AbstractRenderManager.Java:264)
[5/31/11 13:37:10:513 CDT] 00000126 SystemErr R at com.ibm.wps.pe.pc.PortletContainerImpl.renderPortlet(PortletContainerImpl.Java:132)
[5/31/11 13:37:10:513 CDT] 00000126 SystemErr R at com.ibm.wps.engine.extension.render.PortletFragmentRenderer.render(PortletFragmentRenderer.Java:218)
[5/31/11 13:37:10:513 CDT] 00000126 SystemErr R at com.ibm.wps.engine.extension.render.PortletFragmentRenderer.render(PortletFragmentRenderer.Java:166)
[5/31/11 13:37:10:513 CDT] 00000126 SystemErr R at com.ibm.wps.engine.phases.WPFragmentRenderPhase.processRendering(WPFragmentRenderPhase.Java:248)
[5/31/11 13:37:10:513 CDT] 00000126 SystemErr R at com.ibm.wps.engine.phases.WPFragmentRenderPhase.processRendering(WPFragmentRenderPhase.Java:186)
[5/31/11 13:37:10:513 CDT] 00000126 SystemErr R at com.ibm.wps.engine.phases.WPBaseRenderPhase.execute(WPBaseRenderPhase.Java:194)
[5/31/11 13:37:10:513 CDT] 00000126 SystemErr R at com.ibm.wps.state.phases.AbstractRenderPhase.next(AbstractRenderPhase.Java:106)
[5/31/11 13:37:10:513 CDT] 00000126 SystemErr R at com.ibm.wps.engine.phases.WPAbstractRenderPhase.next(WPAbstractRenderPhase.Java:97)
[5/31/11 13:37:10:513 CDT] 00000126 SystemErr R at com.ibm.wps.engine.Servlet.callPortal(Servlet.Java:860)
[5/31/11 13:37:10:513 CDT] 00000126 SystemErr R at com.ibm.wps.engine.Servlet.doGet(Servlet.Java:617)
[5/31/11 13:37:10:513 CDT] 00000126 SystemErr R at com.ibm.wps.engine.Servlet.doPost(Servlet.Java:888)
[5/31/11 13:37:10:514 CDT] 00000126 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.Java:738)
[5/31/11 13:37:10:514 CDT] 00000126 SystemErr R at com.ibm.wps.engine.Servlet.doFilter(Servlet.Java:1257)
[5/31/11 13:37:10:514 CDT] 00000126 SystemErr R at com.ibm.wps.resolver.servlet.ContentHandlerCleanup.doFilter(ContentHandlerCleanup.Java:648)
[5/31/11 13:37:10:514 CDT] 00000126 SystemErr R at com.ibm.wps.resolver.servlet.AbstractFilter.doFilter(AbstractFilter.Java:93)
[5/31/11 13:37:10:514 CDT] 00000126 SystemErr R at com.ibm.wps.engine.Servlet.service(Servlet.Java:1248)
[5/31/11 13:37:10:514 CDT] 00000126 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.Java:1655)
[5/31/11 13:37:10:514 CDT] 00000126 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.Java:1595)
[5/31/11 13:37:10:514 CDT] 00000126 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.Java:131)
[5/31/11 13:37:10:514 CDT] 00000126 SystemErr R at com.ibm.wps.engine.ExtendedLocaleFilter.doFilter(ExtendedLocaleFilter.Java:113)
[5/31/11 13:37:10:514 CDT] 00000126 SystemErr R at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.Java:184)
[5/31/11 13:37:10:514 CDT] 00000126 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.Java:116)
[5/31/11 13:37:10:514 CDT] 00000126 SystemErr R at com.ibm.wps.resolver.friendly.servlet.FriendlySelectionFilter.doFilter(FriendlySelectionFilter.Java:191)
[5/31/11 13:37:10:514 CDT] 00000126 SystemErr R at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.Java:184)
[5/31/11 13:37:10:514 CDT] 00000126 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.Java:116)
[5/31/11 13:37:10:514 CDT] 00000126 SystemErr R at com.ibm.wps.mappingurl.impl.URLAnalyzer.doFilter(URLAnalyzer.Java:381)
[5/31/11 13:37:10:514 CDT] 00000126 SystemErr R at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.Java:184)
[5/31/11 13:37:10:514 CDT] 00000126 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.Java:116)
[5/31/11 13:37:10:514 CDT] 00000126 SystemErr R at com.ibm.wps.engine.VirtualPortalFilter.doFilter(VirtualPortalFilter.Java:88)
[5/31/11 13:37:10:515 CDT] 00000126 SystemErr R at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.Java:184)
[5/31/11 13:37:10:515 CDT] 00000126 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.Java:116)
[5/31/11 13:37:10:515 CDT] 00000126 SystemErr R at com.ibm.wps.state.filter.StateCleanup.doFilter(StateCleanup.Java:94)
[5/31/11 13:37:10:515 CDT] 00000126 SystemErr R at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.Java:184)
[5/31/11 13:37:10:515 CDT] 00000126 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.Java:116)
[5/31/11 13:37:10:515 CDT] 00000126 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.Java:77)
[5/31/11 13:37:10:515 CDT] 00000126 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.Java:895)
[5/31/11 13:37:10:515 CDT] 00000126 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.Java:932)
[5/31/11 13:37:10:515 CDT] 00000126 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.Java:500)
[5/31/11 13:37:10:515 CDT] 00000126 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.Java:178)
[5/31/11 13:37:10:515 CDT] 00000126 SystemErr R at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.Java:3810)
[5/31/11 13:37:10:515 CDT] 00000126 SystemErr R at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.Java:276)
[5/31/11 13:37:10:515 CDT] 00000126 SystemErr R at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.Java:931)
[5/31/11 13:37:10:515 CDT] 00000126 SystemErr R at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.Java:1583)
[5/31/11 13:37:10:515 CDT] 00000126 SystemErr R at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.Java:183)
[5/31/11 13:37:10:515 CDT] 00000126 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.Java:455)
[5/31/11 13:37:10:515 CDT] 00000126 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.Java:384)
[5/31/11 13:37:10:515 CDT] 00000126 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.Java:83)
[5/31/11 13:37:10:516 CDT] 00000126 SystemErr R at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.Java:165)
[5/31/11 13:37:10:516 CDT] 00000126 SystemErr R at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.Java:217)
[5/31/11 13:37:10:516 CDT] 00000126 SystemErr R at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.Java:161)
[5/31/11 13:37:10:516 CDT] 00000126 SystemErr R at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.Java:138)
[5/31/11 13:37:10:516 CDT] 00000126 SystemErr R at com.ibm.io.async.ResultHandler.complete(ResultHandler.Java:204)
[5/31/11 13:37:10:516 CDT] 00000126 SystemErr R at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.Java:775)
[5/31/11 13:37:10:516 CDT] 00000126 SystemErr R at com.ibm.io.async.ResultHandler$2.run(ResultHandler.Java:905)
[5/31/11 13:37:10:516 CDT] 00000126 SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.Java:1550)
[5/31/11 13:37:10:516 CDT] 00000126 SystemErr R Caused by: com.Sun.faces.spi.InjectionProviderException: Java.lang.NullPointerException
[5/31/11 13:37:10:517 CDT] 00000126 SystemErr R at com.Sun.faces.vendor.WebSphereInjectionProvider.inject(WebSphereInjectionProvider.Java:51)
[5/31/11 13:37:10:517 CDT] 00000126 SystemErr R at com.Sun.faces.mgbean.BeanBuilder.injectResources(BeanBuilder.Java:207)
[5/31/11 13:37:10:517 CDT] 00000126 SystemErr R ... 168 more
[5/31/11 13:37:10:517 CDT] 00000126 SystemErr R Caused by: Java.lang.NullPointerException
[5/31/11 13:37:10:518 CDT] 00000126 SystemErr R at Java.lang.String.valueOf(String.Java:1511)
[5/31/11 13:37:10:518 CDT] 00000126 SystemErr R at com.ibm.ws.webcontainer.annotation.WASAnnotationHelper.inject(WASAnnotationHelper.Java:261)
[5/31/11 13:37:10:518 CDT] 00000126 SystemErr R at com.ibm.ws.webcontainer.annotation.WASAnnotationHelper.inject(WASAnnotationHelper.Java:248)
[5/31/11 13:37:10:518 CDT] 00000126 SystemErr R at com.Sun.faces.vendor.WebSphereInjectionProvider.inject(WebSphereInjectionProvider.Java:49)
[5/31/11 13:37:10:518 CDT] 00000126 SystemErr R ... 169 more
[5/31/11 13:37:10:562 CDT] 00000126 SystemErr R FATAL ERROR: 'Java.lang.IllegalStateException: prepareThread not called for Thread Thread[WebContainer : 23,5,main]'
com.Sun.faces.mgbean.ManagedBeanCreationException:マネージドBeanでリソースインジェクションを実行中にエラーが発生しました
この例外は、マネージドBeanのリソース注入中にエラーが発生したため、マネージドBeanの作成が失敗したことを意味します。ああ、待ってください、それは例外がすでに言っていることです。
さて、Beanの構築中に注入されるBeanに@Resource
、@EJB
、ManagedProperty
などのアノテーションがあると想像してください。そのリソースの構築中に例外が発生すると、この例外が発生します。
ただし、スタックトレースの下部に、そのリソースの作成中に発生した例外の原因の詳細が表示されます。 thatの原因を適宜修正すると、正しく機能するはずです。
Update:最後に、これが答えです。トレースの一番下の部分です。
Caused by: Java.lang.NullPointerException
at Java.lang.String.valueOf(String.Java:1511)
at com.ibm.ws.webcontainer.annotation.WASAnnotationHelper.inject(WASAnnotationHelper.Java:261)
at com.ibm.ws.webcontainer.annotation.WASAnnotationHelper.inject(WASAnnotationHelper.Java:248)
at com.Sun.faces.vendor.WebSphereInjectionProvider.inject(WebSphereInjectionProvider.Java:49)
... 169 more
これは明らかにcom.ibm.ws.webcontainer.annotation.WASAnnotationHelper
クラスのバグです。ただし、これは制御できないため、修正についてはIBMに相談する必要があります。 Googleで掘り下げると、この例外について いくつかのヒット 、とりわけ 公式のIBMバグレポート が得られます。フィックスパックをダウンロードできます ここ 。
最近、Weblogic12cで実行されているJava EE 6/JSFアプリケーションで同様のエラーが発生しました。
JSFバッキングBean「UsersController」を編集してからmavenを使用して再構築しようとすると、次のようになります。
com.Sun.faces.mgbean.ManagedBeanCreationException: An error occurred performing resource injection on managed bean usersController
at com.Sun.faces.mgbean.BeanBuilder.injectResources(BeanBuilder.Java:211)
at com.Sun.faces.mgbean.BeanBuilder.build(BeanBuilder.Java:103)
at com.Sun.faces.mgbean.BeanManager.createAndPush(BeanManager.Java:408)
...
weblogic.servlet.internal.WebComponentContributor.inject(WebComponentContributor.Java:299)
at com.bea.faces.WeblogicInjectionProvider.inject(WeblogicInjectionProvider.Java:29)
... 62 more
**Caused by**: com.bea.core.repackaged.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [jpa.session.UsersFacade] is defined: No beans of type jpa.session.UsersFacade;
私のsolutionはこれでした:Netbeansでアプリケーションをビルドした後、Weblogicコンソールに移動してWebアプリケーションを更新する必要がありました。それはエラーを排除するようでした。
症状と治療法を掲載しました。この問題の「理由」を誰かが知っている場合は、気軽にチャイムを鳴らしてください。