Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-5373

NPE on undeployment of cdi-injection quickstart

XMLWordPrintable

      Running the quickstarts against the 7.1 branch as shown in http://www.jboss.org/jdf/about/contributing/:

      mvn clean install jboss-as:deploy jboss-as:undeploy -Parq-jbossas-remote -P-requires-postgres,-requires-full,-complex-dependencies,-requires-xts -pl cdi-injection/
      

      I notice a few occurrences of the following error on undeployment, cdi-injection is just singled out since it is the first place this occurs.

      23:25:46,983 INFO  [org.jboss.web] (MSC service thread 1-7) JBAS018210: Registering web context: /jboss-as-cdi-injection
      23:25:46,991 INFO  [org.jboss.as.server] (management-handler-thread - 1) JBAS018559: Deployed "jboss-as-cdi-injection.war"
      23:25:47,022 INFO  [org.jboss.as.osgi] (MSC service thread 1-3) JBAS011908: Unregister module: Module "deployment.jboss-as-cdi-injection.war:main" from Service Module Loader
      23:30:06,207 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-5) Unexpected exception when attempting to tear down the Mojarra runtime: java.lang.NullPointerException
      	at javax.faces.component.UIViewRoot.setLocale(UIViewRoot.java:1463) [jboss-jsf-api_2.1_spec-2.0.4.Final.jar:2.0.4.Final]
      	at com.sun.faces.config.InitFacesContext.getViewRoot(InitFacesContext.java:213) [jsf-impl-2.1.11-jbossorg-2.jar:]
      	at com.sun.faces.application.ApplicationImpl.invokeViewListenersFor(ApplicationImpl.java:2026) [jsf-impl-2.1.11-jbossorg-2.jar:]
      	at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:291) [jsf-impl-2.1.11-jbossorg-2.jar:]
      	at org.jboss.as.weld.webtier.jsf.ForwardingApplication.publishEvent(ForwardingApplication.java:288) [jboss-as-weld-7.1.3.Final-SNAPSHOT.jar:7.1.3.Final-SNAPSHOT]
      	at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:335) [jsf-impl-2.1.11-jbossorg-2.jar:]
      	at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3489) [jbossweb-7.0.17.Final.jar:]
      	at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3999) [jbossweb-7.0.17.Final.jar:]
      	at org.jboss.as.web.deployment.WebDeploymentService.stop(WebDeploymentService.java:107) [jboss-as-web-7.1.3.Final-SNAPSHOT.jar:7.1.3.Final-SNAPSHOT]
      	at org.jboss.msc.service.ServiceControllerImpl$StopTask.stopService(ServiceControllerImpl.java:1911)
      	at org.jboss.msc.service.ServiceControllerImpl$StopTask.run(ServiceControllerImpl.java:1874)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [classes.jar:1.6.0_33]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [classes.jar:1.6.0_33]
      	at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_33]
      
      23:30:06,221 INFO  [org.jboss.weld.deployer] (MSC service thread 1-13) JBAS016009: Stopping weld service for deployment jboss-as-cdi-injection.war
      23:30:06,237 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment jboss-as-cdi-injection.war in 259217ms
      23:30:06,245 INFO  [org.jboss.as.repository] (management-handler-thread - 5) JBAS014901: Content removed from location /Users/kabir/sourcecontrol/jboss-as7/git/jboss-as/build/target/jboss-as-7.1.3.Final-SNAPSHOT/standalone/data/content/78/15373bb6bb12630f25faef010adf9a328e4761/content
      23:30:06,245 INFO  [org.jboss.as.server] (management-handler-thread - 5) JBAS018558: Undeployed "jboss-as-cdi-injection.war"
      

      The code in UIViewRoot is

      FacesContext.getCurrentInstance().getELContext().setLocale(locale);
      

      Stepping through with a debugger shows that the current instance is null

              ssilvert@redhat.com Stan Silvert
              kkhan1@redhat.com Kabir Khan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: