[ https://issues.jboss.org/browse/AS7-4770?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12692252#comment-12692252 ]
Tomaz Cerar commented on AS7-4770:
----------------------------------
I think it is the difference between runtime/metric/configuration attributes, will check.
if you run: /deployment=InjectionTest.war/subsystem=web/servlet=*/:read-resource(recursive=true, include-runtime=true) it would be more accurate, but will check just to make sure what is going on...
> 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