You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Denis Forveille (JIRA)" <ji...@apache.org> on 2013/01/17 21:46:12 UTC
[jira] [Resolved] (OWB-741) CODI @ViewScoped + @Stateful in
WebSphere v8.5.0.1 = NPE on startup
[ https://issues.apache.org/jira/browse/OWB-741?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Denis Forveille resolved OWB-741.
---------------------------------
Resolution: Not A Problem
Problem solved by IBM in APAR PM80276
Will be included in WAS v8.5.0.2
> CODI @ViewScoped + @Stateful in WebSphere v8.5.0.1 = NPE on startup
> -------------------------------------------------------------------
>
> Key: OWB-741
> URL: https://issues.apache.org/jira/browse/OWB-741
> Project: OpenWebBeans
> Issue Type: Bug
> Affects Versions: 1.1.6
> Environment: WebSphere v8.5.0.1 + CODI v1.0.5
> Reporter: Denis Forveille
>
> In WebSphere v8.5.0.1 this very simple bean causes the application to not start:
> @Named("codiTestConversationCtrl")
> @ViewScoped
> @Stateful
> public class CODITestConversationCtrl implements Serializable {
> private static final long serialVersionUID = 1L;
> ...
> Theis causes a NPE
> If I transform the @SFSB in to a plain POJOs by removing the @Stateful annotation, it works well.
> This may be related to this issue: https://issues.apache.org/jira/browse/OWB-738
>
> The result is:
> Caused by: java.lang.NullPointerException
> at org.apache.webbeans.component.creation.AbstractBeanCreator.defineStereoTypes(AbstractBeanCreator.java:165)
> at org.apache.webbeans.ejb.common.util.EjbUtility.fireEvents(EjbUtility.java:88)
> at org.apache.webbeans.ejb.WSEjbPlugin.defineSessionBean(WSEjbPlugin.java:397)
> at org.apache.webbeans.config.EJBWebBeansConfigurator.defineEjbBean(EJBWebBeansConfigurator.java:71)
> at org.apache.webbeans.config.BeansDeployer.defineEnterpriseWebBean(BeansDeployer.java:907)
> at org.apache.webbeans.config.BeansDeployer.deploySingleAnnotatedType(BeansDeployer.java:550)
> at org.apache.webbeans.config.BeansDeployer.deployFromClassPath(BeansDeployer.java:488)
> at org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:171)
> at org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:124)
> at org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:78)
> at com.ibm.ws.webbeans.common.CommonLifeCycle.startApplication(CommonLifeCycle.java:106)
> at com.ibm.ws.webbeans.services.JCDIServletContainerInitializer.onStartup(JCDIServletContainerInitializer.java:85)
> at com.ibm.ws.webcontainer.webapp.WebAppImpl.initializeServletContainerInitializers(WebAppImpl.java:613)
> at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:409)
> at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)
> at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:169)
> ... 74 more
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira