更新时间:2022-01-24 22:24:04
在运行时,您没有使用OptaPlanner所需的最低XStream版本.这就解释了其中一种新安全方法的NoSuchMethodError
.
At runtime, you're not using the minimal XStream version that OptaPlanner requires. That explains the NoSuchMethodError
on one of the new security methods.
在运行时放置一个断点(使用远程调试器),XStream.class.getPackage().getImplementationVersion()
会告诉您正在使用的XStream版本以及它比optaplanner-core所需的XStream版本低.
Put a breakpoint at runtime (use a remote debugger) and XStream.class.getPackage().getImplementationVersion()
will tell you what XStream version you're using and how it's lower from the one that optaplanner-core needs.
mvn dependency:tree -Dverbose
.