当前位置: 首页 > 知识库问答 >
问题:

InvalidPathException-降级到8.4.0或解决方法

田翰林
2023-03-14

我从Stackoverflow的某人那里得知,这个错误是在8.4.0 Final之后的某个地方引入的,所以我想知道我如何成功地将我的版本降级到那个版本。
我目前正在使用:

  • Optaplanner 8.8.0 Final
  • Quarkus2.0.2决赛
  • 打开JDK 11
  • Windows 10
<dependency>
  <groupId>org.optaplanner</groupId>
  <artifactId>optaplanner-quarkus</artifactId>
  <version>8.4.0.Final</version>
</dependency>
<dependency>
  <groupId>org.optaplanner</groupId>
  <artifactId>optaplanner-quarkus-jackson</artifactId>
  <version>8.4.0.Final</version>
</dependency>
 org.jboss.resteasy.spi.UnhandledException: java.lang.NoSuchMethodError: org.optaplanner.core.impl.domain.common.accessor.gizmo.GizmoMemberAccessorFactory.usePregeneratedMemberAccessorMap(Ljava/util/Map;)V
        at org.jboss.resteasy.core.ExceptionHandler.handleApplicationException(ExceptionHandler.java:106)
        at org.jboss.resteasy.core.ExceptionHandler.handleException(ExceptionHandler.java:372)
        at org.jboss.resteasy.core.SynchronousDispatcher.writeException(SynchronousDispatcher.java:218)
        at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:519)
        at org.jboss.resteasy.core.SynchronousDispatcher.lambda$invoke$4(SynchronousDispatcher.java:261)
        at org.jboss.resteasy.core.SynchronousDispatcher.lambda$preprocess$0(SynchronousDispatcher.java:161)
        at org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:364)
        at org.jboss.resteasy.core.SynchronousDispatcher.preprocess(SynchronousDispatcher.java:164)
        at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:247)
        at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:249)
        at io.quarkus.resteasy.runtime.ResteasyFilter$ResteasyResponseWrapper.service(ResteasyFilter.java:70)
        at io.quarkus.resteasy.runtime.ResteasyFilter$ResteasyResponseWrapper.sendError(ResteasyFilter.java:76)
        at io.undertow.servlet.handlers.DefaultServlet.doGet(DefaultServlet.java:172)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:503)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:590)
        at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
        at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
        at io.quarkus.resteasy.runtime.ResteasyFilter.doFilter(ResteasyFilter.java:31)
        at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
        at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
        at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)
        at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:63)
        at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68)
        at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
        at io.undertow.servlet.handlers.RedirectDirHandler.handleRequest(RedirectDirHandler.java:67)
        at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:133)
        at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
        at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
        at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:65)
        at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
        at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
        at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
        at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
        at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:247)
        at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:56)
        at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:111)
        at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:108)
        at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
        at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
        at io.quarkus.undertow.runtime.UndertowDeploymentRecorder$9$1.call(UndertowDeploymentRecorder.java:587)
        at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227)
        at io.undertow.servlet.handlers.ServletInitialHandler.handleRequest(ServletInitialHandler.java:152)
        at io.quarkus.undertow.runtime.UndertowDeploymentRecorder$1.handleRequest(UndertowDeploymentRecorder.java:119)
        at io.undertow.server.Connectors.executeRootHandler(Connectors.java:290)
        at io.undertow.server.DefaultExchangeHandler.handle(DefaultExchangeHandler.java:18)
        at io.quarkus.undertow.runtime.UndertowDeploymentRecorder$5$1.run(UndertowDeploymentRecorder.java:413)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at io.quarkus.vertx.core.runtime.VertxCoreRecorder$14.runWith(VertxCoreRecorder.java:481)
        at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2442)
        at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1476)
        at org.jboss.threads.DelegatingRunnable.run(DelegatingRunnable.java:29)
        at org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:29)
        at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
        at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.NoSuchMethodError: org.optaplanner.core.impl.domain.common.accessor.gizmo.GizmoMemberAccessorFactory.usePregeneratedMemberAccessorMap(Ljava/util/Map;)V
        at org.optaplanner.quarkus.gizmo.OptaPlannerGizmoInitializer$Implementation.setup(OptaPlannerGizmoInitializer$Implementation.zig:35)
        at org.optaplanner.quarkus.gizmo.OptaPlannerGizmoInitializer$Implementation_Subclass.setup$$superforward1(OptaPlannerGizmoInitializer$Implementation_Subclass.zig:89)
        at org.optaplanner.quarkus.gizmo.OptaPlannerGizmoInitializer$Implementation_Subclass$$function$$1.apply(OptaPlannerGizmoInitializer$Implementation_Subclass$$function$$1.zig:24)
        at io.quarkus.arc.impl.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:54)
        at io.quarkus.arc.runtime.devconsole.InvocationInterceptor.proceed(InvocationInterceptor.java:62)
        at io.quarkus.arc.runtime.devconsole.InvocationInterceptor.monitor(InvocationInterceptor.java:49)
        at io.quarkus.arc.runtime.devconsole.InvocationInterceptor_Bean.intercept(InvocationInterceptor_Bean.zig:521)
        at io.quarkus.arc.impl.InterceptorInvocation.invoke(InterceptorInvocation.java:41)
        at io.quarkus.arc.impl.AroundInvokeInvocationContext.perform(AroundInvokeInvocationContext.java:41)
        at io.quarkus.arc.impl.InvocationContexts.performAroundInvoke(InvocationContexts.java:32)
        at org.optaplanner.quarkus.gizmo.OptaPlannerGizmoInitializer$Implementation_Subclass.setup(OptaPlannerGizmoInitializer$Implementation_Subclass.zig:145)
        at org.optaplanner.quarkus.gizmo.OptaPlannerGizmoInitializer$Implementation_ClientProxy.setup(OptaPlannerGizmoInitializer$Implementation_ClientProxy.zig:155)
        at org.optaplanner.quarkus.OptaPlannerBeanProvider.solverFactory(OptaPlannerBeanProvider.java:52)
        at org.optaplanner.quarkus.OptaPlannerBeanProvider_Prthod_solverFactory_ebf4e4a597d923cd2db0f0f5ac4206b6dba0ce58_Bean.create(OptaPlannerBeanProvider_ProducerMethod_solverFactory_ebf4e4a597d923cd2db0f0f5ac4206b6dba0ce58_Bean.zig:255)
        at org.optaplanner.quarkus.OptaPlannerBeanProvider_ProducerMethod_solverFactory_ebf4e4a597d923cd2db0f0f5ac4206b6dba0ce58_Bean.create(OptaPlannerBeanProvider_ProducerMethod_solverFactory_ebf4e4a597d923cd2db0f0f5ac4206b6dba0ce58_Bean.zig:279)
        at io.quarkus.arc.impl.AbstractSharedContext.createInstanceHandle(AbstractSharedContext.java:96)
        at io.quarkus.arc.impl.AbstractSharedContext$1.get(AbstractSharedContext.java:29)
        at io.quarkus.arc.impl.AbstractSharedContext$1.get(AbstractSharedContext.java:26)
        at io.quarkus.arc.impl.LazyValue.get(LazyValue.java:26)
        at io.quarkus.arc.impl.ComputingCache.computeIfAbsent(ComputingCache.java:69)
        at io.quarkus.arc.impl.AbstractSharedContext.get(AbstractSharedContext.java:26)
        at org.optaplanner.quarkus.OptaPlannerBeanProvider_ProducerMethod_solverFactory_ebf4e4a597d923cd2db0f0f5ac4206b6dba0ce58_Bean.get(OptaPlannerBeanProvider_ProducerMethod_solverFactory_ebf4e4a597d923cd2db0f0f5ac4206b6dba0ce58_Bean.zig:311)
        at org.optaplanner.quarkus.OptaPlannerBeanProvider_ProducerMethod_solverFactory_ebf4e4a597d923cd2db0f0f5ac4206b6dba0ce58_Bean.get(OptaPlannerBeanProvider_ProducerMethod_solverFactory_ebf4e4a597d923cd2db0f0f5ac4206b6dba0ce58_Bean.zig:327)
        at org.optaplanner.quarkus.OptaPlannerBeanProvider_ProducerMethod_solverManager_d6636211e93ca3985f0495d972987bdadf803f37_Bean.create(OptaPlannerBeanProvider_ProducerMethod_solverManager_d6636211e93ca3985f0495d972987bdadf803f37_Bean.zig:236)
        at org.optaplanner.quarkus.OptaPlannerBeanProvider_ProducerMethod_solverManager_d6636211e93ca3985f0495d972987bdadf803f37_Bean.create(OptaPlannerBeanProvider_ProducerMethod_solverManager_d6636211e93ca3985f0495d972987bdadf803f37_Bean.zig:288)
        at io.quarkus.arc.impl.AbstractSharedContext.createInstanceHandle(AbstractSharedContext.java:96)
        at io.quarkus.arc.impl.AbstractSharedContext$1.get(AbstractSharedContext.java:29)
        at io.quarkus.arc.impl.AbstractSharedContext$1.get(AbstractSharedContext.java:26)
        at io.quarkus.arc.impl.LazyValue.get(LazyValue.java:26)
        at io.quarkus.arc.impl.ComputingCache.computeIfAbsent(ComputingCache.java:69)
        at io.quarkus.arc.impl.AbstractSharedContext.get(AbstractSharedContext.java:26)
        at org.optaplanner.quarkus.OptaPlannerBeanProvider_ProducerMethod_solverManager_d6636211e93ca3985f0495d972987bdadf803f37_Bean.get(OptaPlannerBeanProvider_ProducerMethod_solverManager_d6636211e93ca3985f0495d972987bdadf803f37_Bean.zig:320)
        at org.optaplanner.quarkus.OptaPlannerBeanProvider_ProducerMethod_solverManager_d6636211e93ca3985f0495d972987bdadf803f37_Bean.get(OptaPlannerBeanProvider_ProducerMethod_solverManager_d6636211e93ca3985f0495d972987bdadf803f37_Bean.zig:336)
        at org.schedulingservices.services.solver.SolverService_Bean.create(SolverService_Bean.zig:193)
        at org.schedulingservices.services.solver.SolverService_Bean.create(SolverService_Bean.zig:275)
        at io.quarkus.arc.impl.AbstractSharedContext.createInstanceHandle(AbstractSharedContext.java:96)
        at io.quarkus.arc.impl.AbstractSharedContext$1.get(AbstractSharedContext.java:29)
        at io.quarkus.arc.impl.AbstractSharedContext$1.get(AbstractSharedContext.java:26)
        at io.quarkus.arc.impl.LazyValue.get(LazyValue.java:26)
        at io.quarkus.arc.impl.ComputingCache.computeIfAbsent(ComputingCache.java:69)
        at io.quarkus.arc.impl.AbstractSharedContext.get(AbstractSharedContext.java:26)
        at io.quarkus.arc.impl.ClientProxies.getApplicationScopedDelegate(ClientProxies.java:17)
        at org.schedulingservices.services.solver.SolverService_ClientProxy.arc$delegate(SolverService_ClientProxy.zig:67)
        at org.schedulingservices.services.solver.SolverService_ClientProxy.solve(SolverService_ClientProxy.zig:247)
        at org.schedulingservices.GreetingResource.hello(GreetingResource.java:30)
        at org.schedulingservices.GreetingResource_Subclass.hello$$superforward1(GreetingResource_Subclass.zig:157)
        at org.schedulingservices.GreetingResource_Subclass$$function$$1.apply(GreetingResource_Subclass$$function$$1.zig:24)
        at io.quarkus.arc.impl.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:54)
        at io.quarkus.arc.runtime.devconsole.InvocationInterceptor.proceed(InvocationInterceptor.java:62)
        at io.quarkus.arc.runtime.devconsole.InvocationInterceptor.monitor(InvocationInterceptor.java:49)
        at io.quarkus.arc.runtime.devconsole.InvocationInterceptor_Bean.intercept(InvocationInterceptor_Bean.zig:521)
        at io.quarkus.arc.impl.InterceptorInvocation.invoke(InterceptorInvocation.java:41)
        at io.quarkus.arc.impl.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:50)
        at io.quarkus.narayana.jta.runtime.interceptor.TransactionalInterceptorBase.invokeInOurTx(TransactionalInterceptorBase.java:127)
        at io.quarkus.narayana.jta.runtime.interceptor.TransactionalInterceptorBase.invokeInOurTx(TransactionalInterceptorBase.java:100)
        at io.quarkus.narayana.jta.runtime.interceptor.TransactionalInterceptorRequired.doIntercept(TransactionalInterceptorRequired.java:32)
        at io.quarkus.narayana.jta.runtime.interceptor.TransactionalInterceptorBase.intercept(TransactionalInterceptorBase.java:53)
        at io.quarkus.narayana.jta.runtime.interceptor.TransactionalInterceptorRequired.intercept(TransactionalInterceptorRequired.java:26)
        at io.quarkus.narayana.jta.runtime.interceptor.TransactionalInterceptorRequired_Bean.intercept(TransactionalInterceptorRequired_Bean.zig:340)
        at io.quarkus.arc.impl.InterceptorInvocation.invoke(InterceptorInvocation.java:41)
        at io.quarkus.arc.impl.AroundInvokeInvocationContext.perform(AroundInvokeInvocationContext.java:41)
        at io.quarkus.arc.impl.InvocationContexts.performAroundInvoke(InvocationContexts.java:32)
        at org.schedulingservices.GreetingResource_Subclass.hello(GreetingResource_Subclass.zig:213)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:170)
        at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:130)
        at org.jboss.resteasy.core.ResourceMethodInvoker.internalInvokeOnTarget(ResourceMethodInvoker.java:660)
        at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTargetAfterFilter(ResourceMethodInvoker.java:524)
        at org.jboss.resteasy.core.ResourceMethodInvoker.lambda$invokeOnTarget$2(ResourceMethodInvoker.java:474)
        at org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:364)
        at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:476)
        at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:434)
        at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:408)
        at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:69)
        at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:492)
        ... 54 more

有人知道如何降级(或为最新最终版本的问题创建解决方案)吗?

共有1个答案

单于阳
2023-03-14

我试图用最近发布的OptaPlanner 8.9.0进行复制。最终,他再也不能参加了。请升级。

 类似资料:
  • 我有些关于Mariadb的问题。也许有人能帮我。我有两个服务器,希望通过DNS加载平衡(循环)。配置了循环。现在我想用Mariadb设置一个多主复制。我遇到的问题是,我已经在10版的第一个服务器上安装了MariaDB,但我看到MariaDB Galera集群只在5.5版上可用。建立MariaDB Galera集群的最佳方式是什么?降级还是10的集群版本可用?

  • 我最近安装了Angular 6,并想重新使用Angular 5.2如何将我的Angular版本从我拥有的任何版本更改为我选择的任何版本?

  • 我有Android项目,当运行命令时,我收到以下错误,我不知道如何使用Google Play Service 8.4.0。(8.3.0有效) 下面是应用程序gradle文件的外观。 我曾尝试将以下内容放在项目分级文件中,但没有起到帮助作用。 有人能帮我进一步调试吗?

  • 本文向大家介绍Python升级提示Tkinter模块找不到的解决方法,包括了Python升级提示Tkinter模块找不到的解决方法的使用技巧和注意事项,需要的朋友参考一下 一、安装tkinter 在Linux中python默认是不安装Tkinter模块, 我们安装Tkinter模块 二、升级Python Linux的Python版本默认都不叫低 查看Python版本 DOWN新版本 解压安装 看看

  • 本文向大家介绍Centos 升级到python3后pip 无法使用的解决方法,包括了Centos 升级到python3后pip 无法使用的解决方法的使用技巧和注意事项,需要的朋友参考一下 一. 问题 pip无法使用. 二. 系统环境 三. 解决方法 设置软连接. 1.查找pip所在位置 2.设置软连接 语法参见: 检测一下效果: 以上这篇Centos 升级到python3后pip 无法使用的解决方

  • 我在嵌入式应用程序中使用MQTT。我已经详细阅读了文档,了解了QoS特性是如何在MQTT中实现的,以及每个值的含义。 如何克服这个严重的问题?本质上,我不能信任QoS2设置。 (注意,通常这不是问题,因为我可以用QoS 2发布消息。但是,当发布客户端不受您的控制,并且无法保证它们将使用哪种QoS时,这就成了问题。)