Description of problem: Any attempt to change Mail session after it was created fails Steps to Reproduce: In jboss-cli 1. Create new session /subsystem=mail/mail-session=mysession/:add(jndi-name="java:/musession") result: {"outcome" => "success"} 2. Check created resource /subsystem=mail/mail-session=mysession/:read-resource result: { "outcome" => "success", "result" => { "custom" => undefined, "debug" => false, "from" => undefined, "jndi-name" => "java:/mysession", "server" => undefined } } 3. Try to change some attribute (e.g. jndi) /subsystem=mail/mail-session=mysession/:write-attribute(name=jndi-name,value="java:/mailsession") result: { "outcome" => "failed", "failure-description" => "JBAS014749: Operation handler failed: null", "rolled-back" => true } expected result: { "outcome" => "success", "response-headers" => { "operation-requires-reload" => true, "process-state" => "reload-required" } } Additional: The debug attribute can be changed exactly once and only to true. Once it is turned on it cannot be changed again like the rest.
Adding Heiko to cc, as this is obviously affecting admin console too. So just to let him know.
Thanks, I'll keep an eye on it
confirmed, we get the same results in the web interface: [Server:server-one] 14:08:18,506 ERROR [org.jboss.as.controller.management-operation] (host-controller-connection-threads - 1) JBAS014612: Operation ("write-attribute") failed - address: ([ [Server:server-one] ("subsystem" => "mail"), [Server:server-one] ("mail-session" => "java:/testMail") [Server:server-one] ]): java.lang.NullPointerException [Server:server-one] at org.jboss.as.mail.extension.MailSessionDefinition$SessionAttributeWriteHandler.applyUpdateToRuntime(MailSessionDefinition.java:94) [Server:server-one] at org.jboss.as.controller.AbstractWriteAttributeHandler$1.execute(AbstractWriteAttributeHandler.java:131) [jboss-as-controller-8.0.0.Alpha1-SNAPSHOT.jar:8.0.0.Alpha1-SNAPSHOT] [Server:server-one] at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:440) [jboss-as-controller-8.0.0.Alpha1-SNAPSHOT.jar:8.0.0.Alpha1-SNAPSHOT] [Server:server-one] at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:322) [jboss-as-controller-8.0.0.Alpha1-SNAPSHOT.jar:8.0.0.Alpha1-SNAPSHOT] [Server:server-one] at org.jboss.as.controller.AbstractOperationContext.completeStepInternal(AbstractOperationContext.java:229) [jboss-as-controller-8.0.0.Alpha1-SNAPSHOT.jar:8.0.0.Alpha1-SNAPSHOT] [Server:server-one] at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:224) [jboss-as-controller-8.0.0.Alpha1-SNAPSHOT.jar:8.0.0.Alpha1-SNAPSHOT] [Server:server-one] at org.jboss.as.controller.ModelControllerImpl.internalExecut
Pull request to fix this was sent.
*** Bug 915307 has been marked as a duplicate of this bug. ***
Verified 6.1.ER1
Sorry my mistake, this is still not verified. For 6.1.ER1 operation still results in ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 3) JBAS014612: Operation ("write-attribute") failed - address: ([ ("subsystem" => "mail"), ("mail-session" => "mysession") ]): java.lang.NullPointerException http://pastebin.test.redhat.com/130820
This looks like the patch was not applied. in stacktrace there is SessionAttributeWriteHandler which was removed as part of the fix.
Looks like this was prematurely moved to ON_QA. The patch is merged to the jboss-eap repo on github, which makes it MODIFIED, not ON_QA. It's not in the ER1 build.
Verified against EAP 6.1.0 ER2
Details inside vpn: https://post-office.corp.redhat.com/mailman/private/eap-pm-list/2013-July/msg00105.html