write-attribute on console-handler target attribute causes NPE
--------------------------------------------------------------
Key: AS7-2414
URL:
https://issues.jboss.org/browse/AS7-2414
Project: Application Server 7
Issue Type: Bug
Components: Logging
Affects Versions: 7.1.0.Alpha1
Reporter: Stan Silvert
Assignee: James Perkins
{code}
[standalone@localhost:9999 /]
/subsystem=logging/console-handler=CONSOLE/:write-attribute(name="target",
value="System.err")
{
"outcome" => "failed",
"failure-description" => "Operation handler failed:
java.lang.NullPointerException",
"rolled-back" => true
}
{code}
{code}
19:58:28,820 ERROR [org.jboss.as.controller] (Remoting
"ssilvert-win7:MANAGEMENT" task-1) Operation ("write-attribute")
failed - address: ([
("subsystem" => "logging"),
("console-handler" => "CONSOLE")
]): java.lang.NullPointerException
at
org.jboss.as.logging.ConsoleHandlerWriteAttributeHandler.applyUpdateToRuntime(ConsoleHandlerWriteAttributeHandler.java:49)
[jboss-as-logging-7.1.0.Alpha2-SNAPS
HOT.jar:7.1.0.Alpha2-SNAPSHOT]
at
org.jboss.as.logging.ConsoleHandlerWriteAttributeHandler.applyUpdateToRuntime(ConsoleHandlerWriteAttributeHandler.java:39)
[jboss-as-logging-7.1.0.Alpha2-SNAPS
HOT.jar:7.1.0.Alpha2-SNAPSHOT]
at
org.jboss.as.logging.LogHandlerWriteAttributeHandler.applyUpdateToRuntime(LogHandlerWriteAttributeHandler.java:92)
[jboss-as-logging-7.1.0.Alpha2-SNAPSHOT.jar:
7.1.0.Alpha2-SNAPSHOT]
at
org.jboss.as.controller.AbstractWriteAttributeHandler$1.execute(AbstractWriteAttributeHandler.java:114)
[jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Al
pha2-SNAPSHOT]
at
org.jboss.as.controller.OperationContextImpl.executeStep(OperationContextImpl.java:388)
[jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
at
org.jboss.as.controller.OperationContextImpl.doCompleteStep(OperationContextImpl.java:287)
[jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT
]
at
org.jboss.as.controller.OperationContextImpl.completeStep(OperationContextImpl.java:221)
[jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
at
org.jboss.as.controller.AbstractWriteAttributeHandler.execute(AbstractWriteAttributeHandler.java:137)
[jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alph
a2-SNAPSHOT]
at
org.jboss.as.controller.operations.global.GlobalOperationHandlers$WriteAttributeHandler.execute(GlobalOperationHandlers.java:487)
[jboss-as-controller-7.1.0.Al
pha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
at
org.jboss.as.controller.OperationContextImpl.executeStep(OperationContextImpl.java:388)
[jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
at
org.jboss.as.controller.OperationContextImpl.doCompleteStep(OperationContextImpl.java:287)
[jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT
]
at
org.jboss.as.controller.OperationContextImpl.completeStep(OperationContextImpl.java:221)
[jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
at
org.jboss.as.controller.ModelControllerImpl$DefaultPrepareStepHandler.execute(ModelControllerImpl.java:371)
[jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.
0.Alpha2-SNAPSHOT]
at
org.jboss.as.controller.OperationContextImpl.executeStep(OperationContextImpl.java:388)
[jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
at
org.jboss.as.controller.OperationContextImpl.doCompleteStep(OperationContextImpl.java:287)
[jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT
]
at
org.jboss.as.controller.OperationContextImpl.completeStep(OperationContextImpl.java:221)
[jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
at
org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:108)
[jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
at
org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.doProcessRequest(ModelControllerClientOperationHandler.java:156)
[jb
oss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
at
org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.processRequest(ModelControllerClientOperationHandler.java:109)
[jbos
s-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
at
org.jboss.as.protocol.mgmt.ManagementChannel$RequestReceiver.processRequest(ManagementChannel.java:283)
at
org.jboss.as.protocol.mgmt.ManagementChannel$RequestReceiver.access$500(ManagementChannel.java:257)
at
org.jboss.as.protocol.mgmt.ManagementChannel.doHandle(ManagementChannel.java:158)
at org.jboss.as.protocol.ProtocolChannel.handleMessage(ProtocolChannel.java:159)
at
org.jboss.remoting3.remote.RemoteConnectionChannel$5.run(RemoteConnectionChannel.java:409)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[:1.6.0_26]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[:1.6.0_26]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]
{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