Application Server 7
  1. Application Server 7
  2. AS7-3904

Config Admin not commiting property value changes

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved (View Workflow)
    • Priority: Major Major
    • Resolution: Done
    • Affects Version/s: 7.1.0.Final
    • Fix Version/s: 7.1.2.Final (EAP)
    • Component/s: OSGi
    • Labels:
      None
    • Environment:
      Windows XP 5.1
      Java JDK 1.6.0_27
      Internet Explorer 7.0,
      Firefox 7.0.1
      Chrome 14.0
    • Affects:
      Compatibility/Configuration
    • Steps to Reproduce:
      Hide

      Add a new configuration property key and value via Config Admin Service, then try to modify the value.

      Show
      Add a new configuration property key and value via Config Admin Service, then try to modify the value.
    • Similar Issues:
      Show 10 results 

      Description

      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]

        Issue Links

          Activity

          Hide
          David Bosschaert
          added a comment -

          Currently writing a CLI-based system test for this.

          Show
          David Bosschaert
          added a comment - Currently writing a CLI-based system test for this.

            People

            • Assignee:
              David Bosschaert
              Reporter:
              Ed Roberts
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: