spring-boot-migrator
spring-boot-migrator copied to clipboard
MigrateXmlToJavaConfigurationAction:Cannot invoke "java.nio.file.Path.toFile()" because "path" is null
Describe the bug Action [MigrateXmlToJavaConfigurationAction] 'Migrate xml bean configuration to Java bean configuration.' failed: Cannot invoke "java.nio.file.Path.toFile()" because "path" is null
To Reproduce Steps to reproduce the behavior:
- a initialize-spring-boot-migration
- a migrate-spring-xml-to-java-config
- stacktrace
Expected behavior A clear and concise description of what you expected to happen.
Applying recipe 'migrate-spring-xml-to-java-config' [X] Migrate xml bean configuration to Java bean configuration. Action [MigrateXmlToJavaConfigurationAction] 'Migrate xml bean configuration to Java bean configuration.' failed: Cannot invoke "java.nio.file.Path.toFile()" because "path" is null Details of the error have been omitted. You can use the stacktrace command to print the full stacktrace. usercenter-migration:> stacktrace
Stacktrace org.springframework.sbm.engine.recipe.ActionFailedException: Action [MigrateXmlToJavaConfigurationAction] 'Migrate xml bean configuration to Java bean configuration.' failed: Cannot invoke "java.nio.file.Path.toFile()" because "path" is null at org.springframework.sbm.engine.recipe.Action.applyWithStatusEvent(Action.java:43) at org.springframework.sbm.engine.recipe.Recipe.apply(Recipe.java:101) at org.springframework.sbm.engine.commands.ApplyCommand.execute(ApplyCommand.java:61) at org.springframework.sbm.shell.ApplyShellCommand.apply(ApplyShellCommand.java:61) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.springframework.shell.command.invocation.InvocableShellMethod.doInvoke(InvocableShellMethod.java:306) at org.springframework.shell.command.invocation.InvocableShellMethod.invoke(InvocableShellMethod.java:232) at org.springframework.shell.command.CommandExecution$DefaultCommandExecution.evaluate(CommandExecution.java:158) at org.springframework.shell.Shell.evaluate(Shell.java:208)
Additional context spring4.3 xml config web project mybatis-spring:1.3 spring-jdbc spring-web lombok guava
xml: <context:component-scan <tx:annotation-driven aop:config <beans profile= <bean id=