[jboss-jira] [JBoss JIRA] (AS7-5373) NPE on undeployment of cdi-injection quickstart
Stan Silvert (JIRA)
jira-events at lists.jboss.org
Wed Aug 15 12:19:15 EDT 2012
[ https://issues.jboss.org/browse/AS7-5373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12711791#comment-12711791 ]
Stan Silvert commented on AS7-5373:
-----------------------------------
Thanks Kabir. It's almost certainly a result of this fix in 2.1.11: http://java.net/jira/browse/JAVASERVERFACES-2436
I'll work with Roger to see that we get it taken care of.
> NPE on undeployment of cdi-injection quickstart
> -----------------------------------------------
>
> Key: AS7-5373
> URL: https://issues.jboss.org/browse/AS7-5373
> Project: Application Server 7
> Issue Type: Bug
> Components: JSF
> Reporter: Kabir Khan
> Assignee: Stan Silvert
> Priority: Critical
> Labels: as713tracking
> Fix For: 7.1.3.Final (EAP), 7.2.0.Alpha1
>
>
> Running the quickstarts against the 7.1 branch as shown in http://www.jboss.org/jdf/about/contributing/:
> {code}
> mvn clean install jboss-as:deploy jboss-as:undeploy -Parq-jbossas-remote -P-requires-postgres,-requires-full,-complex-dependencies,-requires-xts -pl cdi-injection/
> {code}
> 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.
> {code}
> 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"
> {code}
> The code in UIViewRoot is
> {code}
> FacesContext.getCurrentInstance().getELContext().setLocale(locale);
> {code}
> Stepping through with a debugger shows that the current instance is null
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list