[
https://issues.jboss.org/browse/AS7-4770?page=com.atlassian.jira.plugin.s...
]
Stan Silvert commented on AS7-4770:
-----------------------------------
I have some more info on this. If you do a read-resource-description it does not match
what you actually get back when you do a read-resource. I think the metadata needs to be
fixed.
{noformat}
/deployment=InjectionTest.war/subsystem=web/servlet=*/:read-resource-description(recursive=true)
{
"outcome" => "success",
"result" => [{
"address" => [
("deployment" => "InjectionTest.war"),
("subsystem" => "web"),
("servlet" => "*")
],
"outcome" => "success",
"result" => {
"description" => "Runtime information about the servlets in
the deployment.",
"attributes" => {
"min-time" => {
"type" => LONG,
"description" => "Minimum processing time of a
request",
"expressions-allowed" => false,
"nillable" => true,
"access-type" => "metric",
"storage" => "runtime"
},
"load-time" => {
"type" => LONG,
"description" => "Load time",
"expressions-allowed" => false,
"nillable" => true,
"access-type" => "metric",
"storage" => "runtime"
},
"processingTime" => {
"type" => LONG,
"description" => "Total execution time of the
servlet's service method",
"expressions-allowed" => false,
"nillable" => true,
"access-type" => "metric",
"storage" => "runtime"
},
"maxTime" => {
"type" => LONG,
"description" => "Maximum processing time of a
request",
"expressions-allowed" => false,
"nillable" => true,
"access-type" => "metric",
"storage" => "runtime"
},
"requestCount" => {
"type" => INT,
"description" => "Number of requests processed by
this servlet",
"expressions-allowed" => false,
"nillable" => true,
"access-type" => "metric",
"storage" => "runtime"
}
},
"operations" => undefined,
"children" => {}
}
}]
}
{noformat}
Note that servlet-class and servlet-name appear in read-resource, but they are not
described as attributes in read-resource-description above.
{noformat}
/deployment=InjectionTest.war/subsystem=web/servlet=*/:read-resource(recursive=true)
{
"outcome" => "success",
"result" => [{
"address" => [
("deployment" => "InjectionTest.war"),
("subsystem" => "web"),
("servlet" => "Faces_Servlet")
],
"outcome" => "success",
"result" => {
"servlet-class" => "javax.faces.webapp.FacesServlet",
"servlet-name" => "Faces Servlet"
}
}]
}
{noformat}
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