-
Bug
-
Resolution: Not a Bug
-
Major
-
None
-
None
-
None
-
False
-
False
-
Undefined
-
getProcessState change was introduced in Wildfly 19 core as per this:
https://github.com/wildfly/wildfly-core/commit/105bdc2a717a7b38de671d6aa7156b920df17daa#diff-94431ca9f3b2ea4e57e9bac84c9be7766c137f256e6bb9c41e12f397a7682f13
Now when I run the migration from any version of Wildfly (tried from version 10 to 18) to Windfly 19 the migration fails with the following exception:
2021-01-19 18:27:41,229 ERROR [logger] Migration failed: org.jboss.migration.core.ServerMigrationFailureException: java.lang.IllegalStateException: WFLYEMB0018: Cannot get reflective method 'org.wildfly.core.embedded.StandaloneServer.getProcessState()' for: org.wildfly.core.embedded.StandaloneServer
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.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:113)
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.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.IllegalStateException: WFLYEMB0018: Cannot get reflective method 'org.wildfly.core.embedded.StandaloneServer.getProcessState()' for: org.wildfly.core.embedded.StandaloneServer
at org.wildfly.core.embedded.EmbeddedManagedProcessImpl.<init>(EmbeddedManagedProcessImpl.java:52)
at org.wildfly.core.embedded.EmbeddedProcessFactory.createStandaloneServer(EmbeddedProcessFactory.java:191)
at org.wildfly.core.embedded.EmbeddedProcessFactory.createStandaloneServer(EmbeddedProcessFactory.java:116)
at org.jboss.migration.wfly10.config.management.impl.EmbeddedStandaloneServerConfiguration.startConfiguration(EmbeddedStandaloneServerConfiguration.java:87)
at org.jboss.migration.wfly10.config.management.impl.AbstractManageableServerConfiguration.start(AbstractManageableServerConfiguration.java:70)
at org.jboss.migration.wfly10.config.task.ServerConfigurationMigration$1.run(ServerConfigurationMigration.java:96)
at org.jboss.migration.core.task.TaskExecutionImpl.run(TaskExecutionImpl.java:169)
... 24 more
Caused by: java.lang.NoSuchMethodException: org.wildfly.core.embedded.StandaloneServer.getProcessState()
at java.base/java.lang.Class.getMethod(Class.java:2108)
at org.wildfly.core.embedded.EmbeddedManagedProcessImpl.<init>(EmbeddedManagedProcessImpl.java:50)
... 30 more