[
https://issues.jboss.org/browse/AS7-4770?page=com.atlassian.jira.plugin.s...
]
Stan Silvert commented on AS7-4770:
-----------------------------------
I tried this with another war and it works. Now I'm wondering if it has something to
do with the fact that the servlet name for Faces Servlet has a space in it. Just a
guess.
I'll attach the failing WAR so you can dig deeper.
read-attribute on servelt causes NPE
------------------------------------
Key: AS7-4770
URL:
https://issues.jboss.org/browse/AS7-4770
Project: Application Server 7
Issue Type: Bug
Components: Web
Affects Versions: 7.2.0.Alpha1
Reporter: Stan Silvert
Assignee: Tomaz Cerar
Attachments: InjectionTest.war
Attempt to read any attribute exposed by WebDeploymentServletDefinition results in NPE:
On CLI
{noformat}
/deployment=InjectionTest.war/subsystem=web/servlet=Faces_Servlet/:read-attribute(name=min-time)
{
"outcome" => "failed",
"failure-description" => "JBAS014749: Operation handler failed:
null",
"rolled-back" => true
}
{noformat}
On server:
{noformat}
12:32:49,861 ERROR [org.jboss.as.controller.management-operation]
(management-handler-thread - 17) JBAS014612: Operation ("read-attribute") failed
- address: ([
("deployment" => "InjectionTest.war"),
("subsystem" => "web"),
("servlet" => "Faces_Servlet")
]): java.lang.NullPointerException
at
org.jboss.as.web.WebDeploymentServletDefinition$3.handle(WebDeploymentServletDefinition.java:57)
[jboss-as-web-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
at
org.jboss.as.web.WebDeploymentServletDefinition$AbstractMetricsHandler$1.execute(WebDeploymentServletDefinition.java:97)
[jboss-as-web-7.2.0.Alpha1-SNAPSHOT.ja
r:7.2.0.Alpha1-SNAPSHOT]
at
org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:397)
[jboss-as-controller-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNA
PSHOT]
at
org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:284)
[jboss-as-controller-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-
SNAPSHOT]
at
org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:211)
[jboss-as-controller-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SN
APSHOT]
at
org.jboss.as.web.WebDeploymentServletDefinition$AbstractMetricsHandler.execute(WebDeploymentServletDefinition.java:103)
[jboss-as-web-7.2.0.Alpha1-SNAPSHOT.jar
:7.2.0.Alpha1-SNAPSHOT]
at
org.jboss.as.controller.operations.global.GlobalOperationHandlers$ReadAttributeHandler.doExecute(GlobalOperationHandlers.java:465)
[jboss-as-controller-7.2.0.A
lpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
at
org.jboss.as.controller.operations.global.GlobalOperationHandlers$AbstractMultiTargetHandler.execute(GlobalOperationHandlers.java:997)
[jboss-as-controller-7.2
.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
{noformat}
--
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