Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-7548

[Java Broker] Upgrade of configuration from model version 3 fails

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      Broker fails to upgrade configuration v3 as it cannot delete RMI and JMX ports. The following exception is reported on startup

      12:08:29.756 [main] INFO  o.a.q.s.store.GenericStoreUpgrader - Broker store has model version 3.0. Number of record(s) 31
      12:08:29.821 [main] ERROR org.apache.qpid.server.Broker - Exception during startup
      java.lang.IllegalArgumentException: Cannot convert '[RMI]' into a java.util.Set<org.apache.qpid.server.model.Protocol> for attribute protocols (No enum constant org.apache.qpid.se
      ver.model.Protocol.RMI)
              at org.apache.qpid.server.model.ConfiguredAutomatedAttribute.convert(ConfiguredAutomatedAttribute.java:252) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at org.apache.qpid.server.model.port.PortFactory.getProtocolType(PortFactory.java:69) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at org.apache.qpid.server.model.port.PortFactory.getPortFactory(PortFactory.java:142) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at org.apache.qpid.server.model.port.PortFactory.recover(PortFactory.java:127) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at org.apache.qpid.server.model.ConfiguredObjectFactoryImpl.recover(ConfiguredObjectFactoryImpl.java:104) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at org.apache.qpid.server.store.GenericRecoverer.resolveObjects(GenericRecoverer.java:183) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at org.apache.qpid.server.store.GenericRecoverer.performRecover(GenericRecoverer.java:91) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at org.apache.qpid.server.store.GenericRecoverer.access$000(GenericRecoverer.java:41) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at org.apache.qpid.server.store.GenericRecoverer$1.execute(GenericRecoverer.java:59) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at org.apache.qpid.server.store.GenericRecoverer$1.execute(GenericRecoverer.java:55) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at org.apache.qpid.server.configuration.updater.TaskExecutorImpl$TaskLoggingWrapper.execute(TaskExecutorImpl.java:240) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at org.apache.qpid.server.configuration.updater.TaskExecutorImpl.submitWrappedTask(TaskExecutorImpl.java:157) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at org.apache.qpid.server.configuration.updater.TaskExecutorImpl.run(TaskExecutorImpl.java:182) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at org.apache.qpid.server.store.GenericRecoverer.recover(GenericRecoverer.java:54) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at org.apache.qpid.server.store.BrokerStoreUpgraderAndRecoverer.upgradeAndRecover(BrokerStoreUpgraderAndRecoverer.java:919) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at org.apache.qpid.server.store.BrokerStoreUpgraderAndRecoverer.upgradeAndRecover(BrokerStoreUpgraderAndRecoverer.java:48) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at org.apache.qpid.server.model.AbstractSystemConfig.initateStoreAndRecovery(AbstractSystemConfig.java:304) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at org.apache.qpid.server.model.AbstractSystemConfig.activate(AbstractSystemConfig.java:233) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_74]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_74]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_74]
              at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_74]
              at org.apache.qpid.server.model.AbstractConfiguredObject.attainState(AbstractConfiguredObject.java:1482) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at org.apache.qpid.server.model.AbstractConfiguredObject.attainState(AbstractConfiguredObject.java:1461) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at org.apache.qpid.server.model.AbstractConfiguredObject$8.onSuccess(AbstractConfiguredObject.java:1035) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at org.apache.qpid.server.model.AbstractConfiguredObject$8.onSuccess(AbstractConfiguredObject.java:1029) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at org.apache.qpid.server.model.AbstractConfiguredObject$22$1.run(AbstractConfiguredObject.java:2609) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at org.apache.qpid.server.model.AbstractConfiguredObject$22$1.run(AbstractConfiguredObject.java:2605) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_74]
              at javax.security.auth.Subject.doAs(Subject.java:360) ~[na:1.8.0_74]
              at org.apache.qpid.server.model.AbstractConfiguredObject$22.onSuccess(AbstractConfiguredObject.java:2604) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at com.google.common.util.concurrent.Futures$6.run(Futures.java:1319) ~[guava-18.0.jar:na]
              at org.apache.qpid.server.configuration.updater.TaskExecutorImpl$ImmediateIfSameThreadExecutor.execute(TaskExecutorImpl.java:392) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at org.apache.qpid.server.configuration.updater.TaskExecutorImpl.execute(TaskExecutorImpl.java:175) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at com.google.common.util.concurrent.ExecutionList.executeListener(ExecutionList.java:156) ~[guava-18.0.jar:na]
              at com.google.common.util.concurrent.ExecutionList.add(ExecutionList.java:101) ~[guava-18.0.jar:na]
              at com.google.common.util.concurrent.AbstractFuture.addListener(AbstractFuture.java:170) ~[guava-18.0.jar:na]
              at com.google.common.util.concurrent.Futures.addCallback(Futures.java:1322) ~[guava-18.0.jar:na]
              at org.apache.qpid.server.model.AbstractConfiguredObject.addFutureCallback(AbstractConfiguredObject.java:2599) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at org.apache.qpid.server.model.AbstractConfiguredObject.doAttainState(AbstractConfiguredObject.java:1028) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at org.apache.qpid.server.model.AbstractConfiguredObject.access$300(AbstractConfiguredObject.java:91) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at org.apache.qpid.server.model.AbstractConfiguredObject$1.execute(AbstractConfiguredObject.java:584) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at org.apache.qpid.server.model.AbstractConfiguredObject$1.execute(AbstractConfiguredObject.java:571) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at org.apache.qpid.server.model.AbstractConfiguredObject$2.execute(AbstractConfiguredObject.java:632) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at org.apache.qpid.server.model.AbstractConfiguredObject$2.execute(AbstractConfiguredObject.java:625) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at org.apache.qpid.server.configuration.updater.TaskExecutorImpl$TaskLoggingWrapper.execute(TaskExecutorImpl.java:240) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at org.apache.qpid.server.configuration.updater.TaskExecutorImpl$CallableWrapper$1.run(TaskExecutorImpl.java:312) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_74]
              at javax.security.auth.Subject.doAs(Subject.java:360) ~[na:1.8.0_74]
              at org.apache.qpid.server.configuration.updater.TaskExecutorImpl$CallableWrapper.call(TaskExecutorImpl.java:305) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_74]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_74]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_74]
              at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_74]
      Caused by: java.lang.IllegalArgumentException: No enum constant org.apache.qpid.server.model.Protocol.RMI
              at java.lang.Enum.valueOf(Enum.java:238) ~[na:1.8.0_74]
              at org.apache.qpid.server.model.AttributeValueConverter$EnumConverter.convert(AttributeValueConverter.java:1038) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at org.apache.qpid.server.model.AttributeValueConverter$EnumConverter.convert(AttributeValueConverter.java:1016) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at org.apache.qpid.server.model.AttributeValueConverter$GenericSetConverter.convert(AttributeValueConverter.java:876) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at org.apache.qpid.server.model.AttributeValueConverter$GenericSetConverter.convert(AttributeValueConverter.java:857) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              at org.apache.qpid.server.model.ConfiguredAutomatedAttribute.convert(ConfiguredAutomatedAttribute.java:245) ~[qpid-broker-core-6.1.0.jar:6.1.0]
              ... 53 common frames omitted
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            lorenz.quack Lorenz Quack
            orudyy Alex Rudyy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment