[
https://issues.jboss.org/browse/AS7-4770?page=com.atlassian.jira.plugin.s...
]
Tomaz Cerar edited comment on AS7-4770 at 6/12/12 10:17 AM:
------------------------------------------------------------
Problem originates that in past we didn't allow spaces in path names so the deployer
replaced spaces with underscores.
So when reading metrics servlet name was read from path which was wrong, resulting in
failing to read its stats.
was (Author: ctomc):
Problem originates that we didn't allow spaces in path names so the deployer
replaced spaces with underscores.
So when reading metrics servlet name was read from path which was wrong, resulting in
failing to read its stats.
read-attribute on servelt causes NPE when servlet name contains
space
---------------------------------------------------------------------
Key: AS7-4770
URL:
https://issues.jboss.org/browse/AS7-4770
Project: Application Server 7
Issue Type: Bug
Components: Web
Affects Versions: 7.1.2.Final (EAP), 7.2.0.Alpha1
Reporter: Stan Silvert
Assignee: Tomaz Cerar
Fix For: 7.2.0.Alpha1
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