Uploaded image for project: 'WildFly WIP'
  1. WildFly WIP
  2. WFWIP-520

Server migration tool assumes presence of legacy properties realm

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None

      Server migration tool assumes presence of legacy properties realm when migrating legacy security realms:

       ERROR Migration failed: org.jboss.migration.core.ServerMigrationFailureException: java.lang.NullPointerException
      	at org.jboss.migration.core.task.TaskExecutionImpl.run(TaskExecutionImpl.java:174)
      	at org.jboss.migration.core.task.TaskExecutionImpl.execute(TaskExecutionImpl.java:159)
      	at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:68)
      	at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:32)
      	at org.jboss.migration.core.task.component.CompositeSubtasksBuilder.lambda$subtask$2(CompositeSubtasksBuilder.java:33)
      	at org.jboss.migration.core.task.component.CompositeSubtasks.run(CompositeSubtasks.java:42)
      	at org.jboss.migration.core.task.component.ComponentTask$Builder.lambda$buildRunnable$0(ComponentTask.java:129)
      	at org.jboss.migration.core.task.component.ComponentTask.run(ComponentTask.java:46)
      	at org.jboss.migration.core.task.TaskExecutionImpl.run(TaskExecutionImpl.java:169)
      	at org.jboss.migration.core.task.TaskExecutionImpl.execute(TaskExecutionImpl.java:159)
      	at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:68)
      	at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:32)
      	at org.jboss.migration.wfly10.config.task.ServerConfigurationMigration$1.run(ServerConfigurationMigration.java:106)
      	at org.jboss.migration.core.task.TaskExecutionImpl.run(TaskExecutionImpl.java:169)
      	at org.jboss.migration.core.task.TaskExecutionImpl.execute(TaskExecutionImpl.java:159)
      	at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:68)
      	at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:32)
      	at org.jboss.migration.wfly10.config.task.ServerConfigurationsMigration$Task.migrateConfig(ServerConfigurationsMigration.java:151)
      	at org.jboss.migration.wfly10.config.task.ServerConfigurationsMigration$Task.migrateAllConfigs(ServerConfigurationsMigration.java:120)
      	at org.jboss.migration.wfly10.config.task.ServerConfigurationsMigration$Task.run(ServerConfigurationsMigration.java:105)
      	at org.jboss.migration.core.task.TaskExecutionImpl.run(TaskExecutionImpl.java:169)
      	at org.jboss.migration.core.task.TaskExecutionImpl.execute(TaskExecutionImpl.java:159)
      	at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:68)
      	at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:32)
      	at org.jboss.migration.wfly10.config.task.StandaloneServerMigration$1.run(StandaloneServerMigration.java:61)
      	at org.jboss.migration.core.console.UserConfirmationServerMigrationTask.runTask(UserConfirmationServerMigrationTask.java:58)
      	at org.jboss.migration.core.console.UserConfirmationServerMigrationTask.confirmTaskRun(UserConfirmationServerMigrationTask.java:50)
      	at org.jboss.migration.core.console.UserConfirmationServerMigrationTask.run(UserConfirmationServerMigrationTask.java:63)
      	at org.jboss.migration.core.env.SkippableByEnvServerMigrationTask.run(SkippableByEnvServerMigrationTask.java:47)
      	at org.jboss.migration.core.task.TaskExecutionImpl.run(TaskExecutionImpl.java:169)
      	at org.jboss.migration.core.task.TaskExecutionImpl.execute(TaskExecutionImpl.java:159)
      	at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:68)
      	at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:32)
      	at org.jboss.migration.wfly10.config.task.ServerMigration.run(ServerMigration.java:45)
      	at org.jboss.migration.wfly10.WildFlyServer10.migrate(WildFlyServer10.java:40)
      	at org.jboss.migration.core.ServerMigration$1.run(ServerMigration.java:153)
      	at org.jboss.migration.core.task.TaskExecutionImpl.run(TaskExecutionImpl.java:169)
      	at org.jboss.migration.core.ServerMigration.run(ServerMigration.java:160)
      	at org.jboss.migration.cli.CommandLineServerMigration.main(CommandLineServerMigration.java:131)
      Caused by: java.lang.NullPointerException
      	at org.jboss.migration.wfly.task.security.MigrateLegacySecurityRealmsToElytron$MigrateToElytron.addSecurityRealm(MigrateLegacySecurityRealmsToElytron.java:112)
      	at org.jboss.migration.wfly.task.security.MigrateLegacySecurityRealmsToElytron$MigrateToElytron.addOperationSteps(MigrateLegacySecurityRealmsToElytron.java:103)
      	at org.jboss.migration.wfly.task.security.MigrateLegacySecurityRealmsToElytron$MigrateToElytron.migrateSecurityRealm(MigrateLegacySecurityRealmsToElytron.java:95)
      	at org.jboss.migration.wfly.task.security.MigrateLegacySecurityRealmsToElytron$MigrateToElytron.lambda$new$0(MigrateLegacySecurityRealmsToElytron.java:85)
      	at org.jboss.migration.core.task.component.TaskRunnable$Builder.lambda$of$0(TaskRunnable.java:44)
      	at org.jboss.migration.core.task.component.ComponentTask$Builder.lambda$buildRunnable$0(ComponentTask.java:129)
      	at org.jboss.migration.core.task.component.ComponentTask.run(ComponentTask.java:46)
      	at org.jboss.migration.core.task.TaskExecutionImpl.run(TaskExecutionImpl.java:169)
      	... 38 more
      
      

              emartins@redhat.com Eduardo Martins
              okotek@redhat.com Ondrej Kotek
              Ondrej Kotek Ondrej Kotek
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: