[jboss-jira] [JBoss JIRA] (AS7-3904) Config Admin not commiting property value changes

Ed Roberts (JIRA) jira-events at lists.jboss.org
Fri Feb 24 12:56:36 EST 2012


Ed Roberts created AS7-3904:
-------------------------------

             Summary: Config Admin not commiting property value changes
                 Key: AS7-3904
                 URL: https://issues.jboss.org/browse/AS7-3904
             Project: Application Server 7
          Issue Type: Bug
          Components: OSGi
    Affects Versions: 7.1.0.Final
         Environment: Windows XP 5.1
Java JDK 1.6.0_27
Internet Explorer 7.0, 
Firefox 7.0.1
Chrome 14.0
            Reporter: Ed Roberts
            Assignee: Thomas Diesler


I wanted to test that setting OSGI configuration data through the management web console would allow me to alter results in method calls to an OSGI service, by using a configuration data value in the result creation.

Using the management console localhost:9990 and link Profile|Core|Config Admin Service
1) If I create a pid "helloworld", and property key "template.message" and value "Hello %s!" as an initial value.
These commands commit successfully.

If I restart a deployed OSGI service that uses the configuration data item, I can see from its logging that it has being given the new configuration data.

However, if I go back to the web console to change the configuration data value to "Hello again %s!", although it changes on the web page, as soon as I navigate away from that page and return, I can see that it has not been commited, nor has it affected (no logging) my OSGI service.

If I try to remove the property and re-add it to see if that would work as a workaround, but when I tried to use the remove button above the properties
box, the following exception was thrown, suggesting that it was trying to add the parent pid, and not remove the selected property.

17:09:48,406 ERROR [org.jboss.as.controller.management-operation] (HttpManagementService-threads - 3) JBAS014612: Operation ("add") failed - address: ([
    ("subsystem" => "configadmin"),
    ("configuration" => "helloworld")
]): java.lang.IllegalArgumentException
        at org.jboss.dmr.ModelValue.getKeys(ModelValue.java:124) [jboss-dmr-1.1.1.Final.jar:1.1.1.Final]
        at org.jboss.dmr.ModelNode.keys(ModelNode.java:1194) [jboss-dmr-1.1.1.Final.jar:1.1.1.Final]
        at org.jboss.as.configadmin.parser.ConfigurationAdd.performRuntime(ConfigurationAdd.java:66)
        at org.jboss.as.controller.AbstractAddStepHandler$1.execute(AbstractAddStepHandler.java:50) [jboss-as-controller-7.1.0.Final.jar:7.1.0.Final]
        at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:387) [jboss-as-controller-7.1.0.Final.jar:7.1.0.Final]
        at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:274) [jboss-as-controller-7.1.0.Final.jar:7.1.0.Final]
        at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:202) [jboss-as-controller-7.1.0.Final.jar:7.1.0.Final]
        at org.jboss.as.controller.ModelControllerImpl$DefaultPrepareStepHandler.execute(ModelControllerImpl.java:461) [jboss-as-controller-7.1.0.Final.jar:7.1.0.Final]
        at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:387) [jboss-as-controller-7.1.0.Final.jar:7.1.0.Final]
        at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:274) [jboss-as-controller-7.1.0.Final.jar:7.1.0.Final]
        at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:202) [jboss-as-controller-7.1.0.Final.jar:7.1.0.Final]
        at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:121) [jboss-as-controller-7.1.0.Final.jar:7.1.0.Final]
        at org.jboss.as.controller.ModelControllerImpl$1.execute(ModelControllerImpl.java:304) [jboss-as-controller-7.1.0.Final.jar:7.1.0.Final]
        at org.jboss.as.controller.ModelControllerImpl$1.execute(ModelControllerImpl.java:294) [jboss-as-controller-7.1.0.Final.jar:7.1.0.Final]
        at org.jboss.as.domain.http.server.DomainApiHandler.processRequest(DomainApiHandler.java:294)
        at org.jboss.as.domain.http.server.DomainApiHandler.doHandle(DomainApiHandler.java:201)
        at org.jboss.as.domain.http.server.DomainApiHandler.handle(DomainApiHandler.java:208)
        at org.jboss.as.domain.http.server.security.SubjectAssociationHandler.handle(SubjectAssociationHandler.java:51)
        at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:78)
        at org.jboss.sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:69)
        at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:81)
        at org.jboss.sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:710)
        at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:78)
        at org.jboss.as.domain.http.server.RealmReadinessFilter.doFilter(RealmReadinessFilter.java:54)
        at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:81)
        at org.jboss.sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:682)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_27]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_27]
        at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_27]
        at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.0.0.GA.jar:2.0.0.GA]

--
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

        


More information about the jboss-jira mailing list