Michael Voegele created AS7-4304:
------------------------------------
Summary: NullPointerException when trying to remove a system-property which
does not exist
Key: AS7-4304
URL:
https://issues.jboss.org/browse/AS7-4304
Project: Application Server 7
Issue Type: Bug
Components: Server
Affects Versions: 7.1.1.Final
Reporter: Michael Voegele
Assignee: Jason Greene
when trying to execute:
{code:xml}
{
"operation" => "remove",
"address" => [
("host" => "master"),
("server-config" => "server-1"),
("system-property" => "foo")
]
}
{code}
the answer is:
{code:xml}
{
"outcome" => "failed",
"failure-description" => {"host-failure-descriptions" =>
[("master" => "JBAS014749: Operation handler failed: null")]},
"rolled-back" => true
}
{code}
a NullPointerException is thrown during execution:
{code:xml}
[Host Controller] 2012-03-27 15:41:04,870 [management-handler-thread - 30] ERROR
org.jboss.as.controller.management-operation executeStep 418 - JBAS014612: Operation
("remove") failed - address: ([
[Host Controller] ("host" => "master"),
[Host Controller] ("server-config" => "server-1"),
[Host Controller] ("system-property" => "foo")
[Host Controller] ]): java.lang.NullPointerException
[Host Controller] at
org.jboss.as.controller.operations.common.SystemPropertyRemoveHandler.execute(SystemPropertyRemoveHandler.java:67)
[jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
[Host Controller] at
org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:385)
[jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
[Host Controller] at
org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:272)
[jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
[Host Controller] at
org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:200)
[jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
[Host Controller] at
org.jboss.as.domain.controller.operations.coordination.DomainFinalResultHandler.execute(DomainFinalResultHandler.java:74)
[jboss-as-host-controller-7.1.1.Final.jar:7.1.1.Final]
[Host Controller] at
org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:385)
[jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
[Host Controller] at
org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:272)
[jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
[Host Controller] at
org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:200)
[jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
[Host Controller] at
org.jboss.as.domain.controller.operations.coordination.OperationCoordinatorStepHandler.executeTwoPhaseOperation(OperationCoordinatorStepHandler.java:225)
[jboss-as-host-controller-7.1.1.Final.jar:7.1.1.Final]
[Host Controller] at
org.jboss.as.domain.controller.operations.coordination.OperationCoordinatorStepHandler.execute(OperationCoordinatorStepHandler.java:118)
[jboss-as-host-controller-7.1.1.Final.jar:7.1.1.Final]
[Host Controller] at
org.jboss.as.domain.controller.operations.coordination.PrepareStepHandler.execute(PrepareStepHandler.java:85)
[jboss-as-host-controller-7.1.1.Final.jar:7.1.1.Final]
[Host Controller] at
org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:385)
[jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
[Host Controller] at
org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:272)
[jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
[Host Controller] at
org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:200)
[jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
[Host Controller] at
org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:121)
[jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
[Host Controller] at
org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.doExecute(ModelControllerClientOperationHandler.java:139)
[jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
[Host Controller] at
org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1.execute(ModelControllerClientOperationHandler.java:108)
[jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
[Host Controller] at
org.jboss.as.protocol.mgmt.AbstractMessageHandler$2$1.doExecute(AbstractMessageHandler.java:287)
[jboss-as-protocol-7.1.1.Final.jar:7.1.1.Final]
[Host Controller] at
org.jboss.as.protocol.mgmt.AbstractMessageHandler$AsyncTaskRunner.run(AbstractMessageHandler.java:487)
[jboss-as-protocol-7.1.1.Final.jar:7.1.1.Final]
{code}
this should not happen, the normal behaviour should be as follows (just a 'not
found' message with no exception):
{code:xml}
{
"operation" => "remove",
"address" => [
("host" => "master"),
("server-config" => "server-1"),
("jvm" => "default")
]
}
{code}
{code:xml}
{
"outcome" => "failed",
"failure-description" => {"host-failure-descriptions" =>
[("master" => "JBAS014807: Management resource '[
(\"host\" => \"master\"),
(\"server-config\" => \"server-1\"),
(\"jvm\" => \"default\")
]' not found")]},
"rolled-back" => true
}
{code}
--
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