Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-741

CODI @ViewScoped + @Stateful in WebSphere v8.5.0.1 = NPE on startup

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 1.1.6
    • None
    • None
    • None
    • WebSphere v8.5.0.1 + CODI v1.0.5

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              denis.forveille Denis Forveille
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: