Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-8040

Update from 4.5.0 to 4.5.1 fails on restart

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: OpenIDM 4.5.1
    • Fix Version/s: OpenIDM 4.5.1
    • Component/s: _Update
    • Labels:
      None
    • Environment:
      4.5.1-RC3 with MySQL repo

      Description

      Step to reproduce:

      • install 4.5.0 with MySQL repo
      • add some logging in OpenIDM
        echo "org.forgerock.openidm.maintenance.level=FINEST" >> conf/logging.properties
        echo "org.forgerock.openidm.managed.level=FINEST" >> conf/logging.properties
        echo "org.forgerock.openidm.script.level=FINEST" >> conf/logging.properties
        echo "java.util.logging.ConsoleHandler.level=ALL" >> conf/logging.properties
        
      • start OpenIDM
      • copy ZIP or 4.5.1-RC3 in bin/update
      • launch update:
        ./cli.sh update  --acceptLicense  --user openidm-admin:openidm-admin  --url http://localhost:8080/openidm openidm-4.5.1-RC3.zip
        

      The whole update looks OK:

      Executing ./cli.sh...
      Starting shell in /Users/laurent/Installs/openidm
      Using boot properties at /Users/laurent/Installs/openidm/conf/boot/boot.properties
      License was accepted via command line argument.
      Pausing the Scheduler
      Scheduler has been paused.
      Waiting for running jobs to finish.
      All running jobs have finished.
      Entering into maintenance mode...
      Now in maintenance mode.
      Installing the update archive openidm-4.5.1-RC3.zip
      Update procedure is still processing...
      Update procedure is still processing...
      Update procedure is still processing...
      Update procedure is still processing...
      Update procedure is still processing...
      Update procedure is still processing...
      Update procedure is still processing...
      Update procedure is still processing...
      Update procedure is still processing...
      Update procedure is still processing...
      Update procedure is still processing...
      Update procedure is still processing...
      Update procedure is still processing...
      The update process is complete with a status of COMPLETE
      Restarting OpenIDM.
      Restart request completed.
      

      But in OpenIDM Console we see a failure and OpenIDM never gets READY
      (see complete log in attachement)

      Apr 06, 2017 4:50:23 PM org.forgerock.openidm.config.persistence.ConfigBootstrapHelper installAllConfig
      INFO: Configuration from file enabled
      Apr 06, 2017 4:50:23 PM org.forgerock.openidm.logging.LogServiceTracker logEntry
      SEVERE: Bundle: org.apache.felix.scr [14] FrameworkEvent ERROR
      java.lang.ClassCastException: java.util.LinkedHashMap cannot be cast to java.lang.String
      	at org.apache.felix.cm.impl.CachingPersistenceManagerProxy.getDictionaries(CachingPersistenceManagerProxy.java:163)
      	at org.apache.felix.cm.impl.ConfigurationManager.listConfigurations(ConfigurationManager.java:660)
      	at org.apache.felix.cm.impl.ConfigurationAdminImpl.listConfigurations(ConfigurationAdminImpl.java:190)
      	at org.apache.felix.scr.impl.config.ConfigurationSupport.findConfigurations(ConfigurationSupport.java:609)
      	at org.apache.felix.scr.impl.config.ConfigurationSupport.configureComponentHolders(ConfigurationSupport.java:200)
      	at org.apache.felix.scr.impl.ComponentRegistry.serviceChanged(ComponentRegistry.java:587)
      	at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:932)
      	at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:793)
      	at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:543)
      

      Note that this issue looks a lot like OPENIDM-6538 which was fixed by Jon Branch in this commit

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cgdrake Chris Drake
                Reporter:
                laurent.bristiel Laurent Bristiel [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: