Fixes are available
APAR status
Closed as program error.
Error description
WELD-2466 [2/21/18 14:16:54:653 CET] 000000ca RemoteExcepti E CNTR0019E: EJB threw an unexpected (non-declared) exception during invocation of method "webserviceMethod". Exception data: javax.ejb.EJBException: CWNEN0030E: The server was unable to obtain an object instance for the @Inject java.lang.reflect.Field.principal reference. The exception message was: java.lang.NullPointerException; nested exception is: java.lang.NullPointerException at com.ibm.ejs.container.util.ExceptionUtil.EJBException(ExceptionU til.java :503) at com.ibm.ejs.container.ManagedBeanOBase.injectInstance(ManagedBea nOBase.j ava:154) at com.ibm.ejs.container.StatelessBeanO.injectInstance(StatelessBea nO.java: 295) at com.ibm.ejs.container.StatelessBeanO.initialize(StatelessBeanO.j ava:169) at com.ibm.ejs.container.BeanOFactory.create(BeanOFactory.java:105) at com.ibm.ejs.container.EJSHome.createBeanO(EJSHome.java:976) at com.ibm.ejs.container.EJSHome.createBeanO(EJSHome.java:1078) at com.ibm.ejs.container.activator.UncachedActivationStrategy.atAct ivate(Un cachedActivationStrategy.java:63) at com.ibm.ejs.container.activator.Activator.preInvokeActivateBean( Activato r.java:264) at com.ibm.ejs.container.EJSContainer.preInvokeActivate(EJSContaine r.java:3 239) at com.ibm.ejs.container.EJSContainer.EjbPreInvoke(EJSContainer.jav a:2576) at com.ibm.ejs.container.WSEJBWrapper.ejbPreInvoke(WSEJBWrapper.jav a:154) at com.ibm.ws.websvcs.server.WSEJBInvocationListener.requestReceive d(WSEJBI nvocationListener.java:355) at com.ibm.ws.websvcs.server.WSEJBInvocationListener.notify(WSEJBIn vocation Listener.java:103) at org.apache.axis2.jaxws.server.EndpointController.requestReceived (Endpoin tController.java:680) at org.apache.axis2.jaxws.server.EndpointController.handleRequest(E ndpointC ontroller.java:239) at org.apache.axis2.jaxws.server.EndpointController.invoke(Endpoint Controll er.java:103) at org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(JAXWS MessageR eceiver.java:161) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:212) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPo stReques t(HTTPTransportUtils.java:172) at com.ibm.ws.websvcs.transport.http.WASAxis2Servlet.doPost(WASAxis 2Servlet .java:1633) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWr apper.ja va:1235) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(Ser vletWrap per.java:779) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(Ser vletWrap per.java:478) at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest (Servlet WrapperImpl.java:178) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters (WebAppF ilterManager.java:1124) at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java: 4150) at com.ibm.ws.webcontainer.webapp.WebAppImpl.handleRequest(WebAppIm pl.java: 2208) at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.j ava:304) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer. java:103 0) at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContai ner.java :1817) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLin k.java:3 82) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscr iminatio n(HttpInboundLink.java:465) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRe quest(Ht tpInboundLink.java:532) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequ est(Http InboundLink.java:318) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpI nboundLi nk.java:289) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sen dToDiscr iminators(NewConnectionInitialReadCallback.java:214) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.com plete(Ne wConnectionInitialReadCallback.java:113) at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureComp leted(Ai oReadCompletionListener.java:175) at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyn cFuture. java:217) at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncC hannelFu ture.java:161) at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138) at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204) at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHand ler.java :775) at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1909) Caused by: java.lang.NullPointerException at org.jboss.weld.manager.BeanManagerImpl.getBean(BeanManagerImpl.j ava:883) at org.jboss.weld.manager.BeanManagerImpl.getInjectableReference(Be anManage rImpl.java:870) at com.ibm.ws.cdi.impl.inject.InjectInjectionObjectFactory$2.run(In jectInje ctionObjectFactory.java:164) at java.security.AccessController.doPrivileged(AccessController.jav a:638) at com.ibm.ws.cdi.impl.inject.InjectInjectionObjectFactory.getObjec tInstanc e(InjectInjectionObjectFactory.java:157) at com.ibm.ws.cdi.impl.inject.InjectInjectionBinding.getInjectionOb jectInst ance(InjectInjectionBinding.java:102) at com.ibm.wsspi.injectionengine.InjectionBinding.getInjectionObjec t(Inject ionBinding.java:1433) at com.ibm.ws.cdi.impl.inject.InjectInjectionBinding.getInjectionOb ject(Inj ectInjectionBinding.java:135) at com.ibm.wsspi.injectionengine.InjectionBinding.getInjectableObje ct(Injec tionBinding.java:1373) at com.ibm.wsspi.injectionengine.InjectionTarget.inject(InjectionTa rget.jav a:108) at com.ibm.ws.injectionengine.AbstractInjectionEngine.inject(Abstra ctInject ionEngine.java:852) at com.ibm.ejs.container.ManagedBeanOBase.injectInstance(ManagedBea nOBase.j ava:148) ... 46 more
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: All users of IBM WebSphere Application * * Server * **************************************************************** * PROBLEM DESCRIPTION: Producer methods fail if the produced * * type, or any of it's supertypes, lack * * a no-args constructor * **************************************************************** * RECOMMENDATION: * **************************************************************** Weld was too strict with it's internal type checking causing producer methods to result in exceptions if the produced class or any of it's supertypes lacked a no argument constructor.
Problem conclusion
We updated to weld 2.4.7 which contains the fix for the weld issue WELD-2466 and resolves this problem. The fix for this APAR is currently targeted for inclusion in fix pack 9.0.0.8 and Liberty 18.0.0.2. Please refer to the Recommended Updates page for delivery information: http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
Temporary fix
Comments
APAR Information
APAR number
PI95074
Reported component name
WEBS APP SERV N
Reported component ID
5724H8800
Reported release
900
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2018-03-13
Closed date
2018-05-18
Last modified date
2018-05-18
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
WEBS APP SERV N
Fixed component ID
5724H8800
Applicable component levels
R900 PSY
UP
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.0","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
02 November 2021