Jago de Vreede created ACE-443:
----------------------------------

             Summary: New management agent fails to install new version 
correclty
                 Key: ACE-443
                 URL: https://issues.apache.org/jira/browse/ACE-443
             Project: ACE
          Issue Type: Bug
            Reporter: Jago de Vreede


There are configuration issues when you create an update with a bundle and 
configuration:

Debug output:
*DEBUG* update(properties={org.apache.felix.http.debug=true, 
org.osgi.service.http.port=8080, org.apache.felix.log.storeDebug=true, 
org.apache.felix.http.enable=true, org.apache.felix.http.timeout=600000})
*DEBUG* Updating config org.apache.felix.http with 
{org.osgi.service.http.port=8080, org.apache.felix.http.debug=true, 
org.apache.felix.http.enable=true, org.apache.felix.http.timeout=600000, 
org.apache.felix.log.storedebug=true}
*DEBUG* No SynchronousConfigurationListeners to send CM_UPDATED event to.
*DEBUG* No ConfigurationListeners to send CM_UPDATED event to.
*DEBUG* Scheduling task Update: pid=org.apache.felix.http
*DEBUG* UpdateConfiguration(org.apache.felix.http) scheduled
*DEBUG* Running task Update: pid=org.apache.felix.http
*DEBUG* Updating configuration org.apache.felix.http to revision #2
*ERROR* Unexpected problem executing task
java.lang.NullPointerException
        at 
org.apache.felix.cm.impl.ConfigurationManager$UpdateConfiguration.run(ConfigurationManager.java:1701)
        at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:103)
        at java.lang.Thread.run(Thread.java:744)
*DEBUG* Registering service [org.osgi.service.cm.ManagedService, id=11, 
bundle=7/osgi-dp:org.apache.felix.http.jetty]
*DEBUG* configure(ManagedService [org.osgi.service.cm.ManagedService, id=11, 
bundle=7/osgi-dp:org.apache.felix.http.jetty])
*DEBUG* Scheduling task ManagedService Update: pid=[org.apache.felix.http]
*DEBUG* Running task ManagedService Update: pid=[org.apache.felix.http]
*DEBUG* Found cached configuration org.apache.felix.http bound to 
osgi-dp:org.apache.felix.http.jetty
*DEBUG* canReceive=true: bundle=osgi-dp:org.apache.felix.http.jetty; 
configuration=osgi-dp:org.apache.felix.http.jetty
*DEBUG* Updating service org.apache.felix.http with configuration 
org.apache.felix.http@2
*DEBUG* [ManagedService Update: pid=[org.apache.felix.http]] scheduled

There is also a problem when you only install a configuration file (a rollback 
occurs):
[INFO] 11:42:00 (controller) Installing streaming deployment update 2.0.0 => 
3.0.0
[DEBUG] 11:42:10 (controller) Controller syncing...
[DEBUG] 11:42:10 (controller) Synchronizing feedback channels: [auditlog]
[DEBUG] 11:42:10 (controller) Feedback send succesfully for channel: auditlog
[DEBUG] 11:42:10 (controller) Checking for agent updates...
[DEBUG] 11:42:10 (controller) No need to install update: no newer agent version 
available!
[DEBUG] 11:42:10 (controller) Checking for deployment updates...
[DEBUG] 11:42:10 (controller) Need to install update: newer deployment version 
available!
[INFO] 11:42:10 (controller) Installing streaming deployment update 2.0.0 => 
3.0.0

More information:
Running bundles:
   54|Active     |    1|Apache Felix AutoConf Resource Processor (0.1.5)
  263|Active     |    1|Apache Felix Gogo Runtime (0.10.0)
  264|Active     |    1|Apache Felix Gogo Shell (0.10.0)
  265|Active     |    1|Apache Felix Gogo Command (0.12.0)
  267|Active     |    1|Apache Felix Configuration Admin Service (1.6.0)
  268|Active     |    1|Apache Felix Dependency Manager (3.1.0)
  269|Active     |    1|osgi.cmpn (4.3.1.201210102024)
  270|Active     |    1|Apache Felix EventAdmin (1.3.2)
  272|Active     |    1|Apache Felix Http Jetty (2.2.1)



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Reply via email to