-
Bug
-
Resolution: Done
-
Major
-
1.0.0.Final
-
None
-
2
-
False
-
False
-
Undefined
-
-
---
-
---
-
-
2020 Week 43-45 (from Okt 19), 2020 Week 46-48 (from Nov 9)
Using optaplanner 8.0.0-SNAPSHOT, it's failing with the next output:
Running org.kie.kogito.examples.NativeFlightIT Executing [/home/triceo/IdeaProjects/kogito-examples/process-optaplanner-quarkus/target/process-optaplanner-quarkus-runner, -Dquarkus.http.port=8080, -Dquarkus.http.ssl-port=8444, -Dtest.url=http://localhost:8080, -Dquarkus.log.file.path=target/target/quarkus.log] __ ____ __ _____ ___ __ ____ ______ --/ __ \/ / / / _ | / _ \/ //_/ / / / __/ -/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\ \ --\___\_\____/_/ |_/_/|_/_/|_|\____/___/ 2020-11-04 16:28:14,986 INFO [io.quarkus] (main) process-optaplanner-quarkus 1.0.0-SNAPSHOT native (powered by Quarkus 1.9.0.Final) started in 0.011s. Listening on: http://0.0.0.0:8080 2020-11-04 16:28:14,986 INFO [io.quarkus] (main) Profile prod activated. 2020-11-04 16:28:14,986 INFO [io.quarkus] (main) Installed features: [cdi, kogito, optaplanner, optaplanner-jackson, resteasy, resteasy-jackson, servlet, smallrye-openapi] 2020-11-04 16:28:17,946 ERROR [org.jbp.wor.ins.imp.WorkflowProcessInstanceImpl] (executor-thread-1) Unexpected error (id 689e01c8-6d6d-4e26-8285-f506667cd605) while executing node Create Seat Assignments in process instance 2a52e0ad-b751-49e2-9747-9b1df53114b7: org.jbpm.workflow.instance.WorkflowRuntimeException: [flights:2a52e0ad-b751-49e2-9747-9b1df53114b7 - Create Seat Assignments:4] -- Error injecting org.optaplanner.core.api.solver.SolverManager<org.kie.kogito.examples.domain.Flight, java.lang.String> org.kie.kogito.examples.service.FlightSeatingSolveService.solverManager at org.jbpm.workflow.instance.node.WorkItemNodeInstance.handleException(WorkItemNodeInstance.java:189) at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:177) at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:204) at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:403) at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:388) at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:358) at org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl.triggerCompleted(ExtendedNodeInstanceImpl.java:51) at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:375) at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:335) at org.jbpm.workflow.instance.node.WorkItemNodeInstance.triggerCompleted(WorkItemNodeInstance.java:379) at org.jbpm.workflow.instance.node.HumanTaskNodeInstance.triggerCompleted(HumanTaskNodeInstance.java:127) at org.jbpm.workflow.instance.node.WorkItemNodeInstance.workItemCompleted(WorkItemNodeInstance.java:458) at org.jbpm.workflow.instance.node.WorkItemNodeInstance.signalEvent(WorkItemNodeInstance.java:427) at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent(WorkflowProcessInstanceImpl.java:589) at org.jbpm.process.instance.LightWorkItemManager.internalCompleteWorkItem(LightWorkItemManager.java:152) at org.jbpm.process.instance.impl.humantask.BaseHumanTaskLifeCycle.transitionTo(BaseHumanTaskLifeCycle.java:124) at org.jbpm.process.instance.impl.humantask.BaseHumanTaskLifeCycle.transitionTo(BaseHumanTaskLifeCycle.java:63) at org.jbpm.process.instance.impl.humantask.HumanTaskWorkItemHandler.transitionToPhase(HumanTaskWorkItemHandler.java:61) at org.jbpm.process.instance.LightWorkItemManager.transitionWorkItem(LightWorkItemManager.java:171) at org.kie.kogito.process.impl.AbstractProcessInstance.transitionWorkItem(AbstractProcessInstance.java:433) at org.kie.kogito.examples.FlightsResource.lambda$completeTask_finalizePassengerList_6$35(FlightsResource.java:220) at java.util.Optional.map(Optional.java:265) at org.kie.kogito.examples.FlightsResource.lambda$completeTask_finalizePassengerList_6$37(FlightsResource.java:219) at org.kie.kogito.services.uow.UnitOfWorkExecutor.executeInUnitOfWork(UnitOfWorkExecutor.java:33) at org.kie.kogito.examples.FlightsResource.completeTask_finalizePassengerList_6(FlightsResource.java:219) at org.kie.kogito.examples.FlightsResource_ClientProxy.completeTask_finalizePassengerList_6(FlightsResource_ClientProxy.zig:246) at 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:643) at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTargetAfterFilter(ResourceMethodInvoker.java:507) at org.jboss.resteasy.core.ResourceMethodInvoker.lambda$invokeOnTarget$2(ResourceMethodInvoker.java:457) at org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:364) at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:459) at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:419) at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:393) at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:68) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:492) 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 org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:60) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) at javax.servlet.http.HttpServlet.service(HttpServlet.java:590) at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74) 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$10$1.call(UndertowDeploymentRecorder.java:573) at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227) at io.undertow.servlet.handlers.ServletInitialHandler.handleRequest(ServletInitialHandler.java:152) at io.undertow.server.handlers.HttpContinueReadHandler.handleRequest(HttpContinueReadHandler.java:43) at io.quarkus.undertow.runtime.UndertowDeploymentRecorder$1.handleRequest(UndertowDeploymentRecorder.java:114) at io.undertow.server.Connectors.executeRootHandler(Connectors.java:290) at io.undertow.server.DefaultExchangeHandler.handle(DefaultExchangeHandler.java:18) at io.quarkus.undertow.runtime.UndertowDeploymentRecorder$6$1.run(UndertowDeploymentRecorder.java:404) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.util.concurrent.FutureTask.run(FutureTask.java:264) at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35) at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:2046) at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1578) at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1452) at org.jboss.threads.DelegatingRunnable.run(DelegatingRunnable.java:29) at org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:29) at java.lang.Thread.run(Thread.java:834) at org.jboss.threads.JBossThread.run(JBossThread.java:479) at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:517) at com.oracle.svm.core.posix.thread.PosixJavaThreads.pthreadStartRoutine(PosixJavaThreads.java:192) Caused by: java.lang.RuntimeException: Error injecting org.optaplanner.core.api.solver.SolverManager<org.kie.kogito.examples.domain.Flight, java.lang.String> org.kie.kogito.examples.service.FlightSeatingSolveService.solverManager at org.kie.kogito.examples.service.FlightSeatingSolveService_Bean.create(FlightSeatingSolveService_Bean.zig:235) at org.kie.kogito.examples.service.FlightSeatingSolveService_Bean.create(FlightSeatingSolveService_Bean.zig:258) at io.quarkus.arc.impl.AbstractSharedContext.createInstanceHandle(AbstractSharedContext.java:96) at io.quarkus.arc.impl.AbstractSharedContext.access$000(AbstractSharedContext.java:14) 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.kie.kogito.examples.service.FlightSeatingSolveService_ClientProxy.arc$delegate(FlightSeatingSolveService_ClientProxy.zig:92) at org.kie.kogito.examples.service.FlightSeatingSolveService_ClientProxy.assignSeats(FlightSeatingSolveService_ClientProxy.zig:155) at org.kie.kogito.handlers.FlightSeatingSolveService_assignSeats_4_Handler.executeWorkItem(FlightSeatingSolveService_assignSeats_4_Handler.java:20) at org.kie.kogito.handlers.FlightSeatingSolveService_assignSeats_4_Handler_ClientProxy.executeWorkItem(FlightSeatingSolveService_assignSeats_4_Handler_ClientProxy.zig:288) at org.jbpm.process.instance.LightWorkItemManager.internalExecuteWorkItem(LightWorkItemManager.java:79) at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:166) ... 87 more Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: org.optaplanner.core.impl.score.stream.drools.common.rules.AbstractUniGroupByMutator$$Lambda$32c3a1ddb2f6da6ceeacbdadd46ec5994fb7d9e7.writeReplace() at org.drools.mvel.asm.LambdaIntrospector.extractLambda(LambdaIntrospector.java:84) at org.drools.mvel.asm.LambdaIntrospector.apply(LambdaIntrospector.java:55) at org.drools.mvel.asm.LambdaIntrospector.apply(LambdaIntrospector.java:35) at org.drools.model.functions.LambdaPrinter$LambdaVisitor.getLambdaFingerprint(LambdaPrinter.java:79) at org.drools.model.functions.LambdaPrinter.print(LambdaPrinter.java:27) at org.drools.model.functions.IntrospectableLambda.toString(IntrospectableLambda.java:34) at org.drools.model.functions.IntrospectableLambda.hashCode(IntrospectableLambda.java:48) at java.util.Arrays.hashCode(Arrays.java:4685) at java.util.Objects.hash(Objects.java:146) at org.drools.modelcompiler.constraints.LambdaReadAccessor.hashCode(LambdaReadAccessor.java:56) at org.drools.core.rule.Declaration.hashCode(Declaration.java:336) at java.util.Arrays.hashCode(Arrays.java:4685) at org.drools.core.rule.SingleAccumulate.hashCode(SingleAccumulate.java:190) at org.drools.core.reteoo.AccumulateNode.<init>(AccumulateNode.java:92) at org.drools.core.reteoo.builder.PhreakNodeFactory.buildAccumulateNode(PhreakNodeFactory.java:125) at org.drools.core.reteoo.builder.AccumulateBuilder.build(AccumulateBuilder.java:104) at org.drools.core.reteoo.builder.PatternBuilder.attachPattern(PatternBuilder.java:110) at org.drools.core.reteoo.builder.PatternBuilder.build(PatternBuilder.java:79) at org.drools.core.reteoo.builder.GroupElementBuilder$AndBuilder.build(GroupElementBuilder.java:118) at org.drools.core.reteoo.builder.GroupElementBuilder.build(GroupElementBuilder.java:72) at org.drools.core.reteoo.builder.ReteooRuleBuilder.addSubRule(ReteooRuleBuilder.java:167) at org.drools.core.reteoo.builder.ReteooRuleBuilder.addRule(ReteooRuleBuilder.java:139) at org.drools.core.reteoo.ReteooBuilder.addRule(ReteooBuilder.java:110) at org.drools.core.impl.KnowledgeBaseImpl.internalAddRule(KnowledgeBaseImpl.java:1522) at org.drools.core.impl.KnowledgeBaseImpl.internalAddPackages(KnowledgeBaseImpl.java:925) at org.drools.core.impl.KnowledgeBaseImpl.lambda$addPackages$2(KnowledgeBaseImpl.java:727) at org.drools.core.impl.KnowledgeBaseImpl.enqueueModification(KnowledgeBaseImpl.java:744) at org.drools.core.impl.KnowledgeBaseImpl.addPackages(KnowledgeBaseImpl.java:727) at org.drools.modelcompiler.builder.KieBaseBuilder.createKieBase(KieBaseBuilder.java:55) at org.drools.modelcompiler.builder.KieBaseBuilder.createKieBaseFromModel(KieBaseBuilder.java:80) at org.drools.modelcompiler.builder.KieBaseBuilder.createKieBaseFromModel(KieBaseBuilder.java:74) at org.drools.modelcompiler.builder.KieBaseBuilder.createKieBaseFromModel(KieBaseBuilder.java:60) at org.optaplanner.core.impl.score.stream.drools.DroolsConstraintSessionFactory.<init>(DroolsConstraintSessionFactory.java:70) at org.optaplanner.core.impl.score.stream.drools.DroolsConstraintFactory.buildSessionFactory(DroolsConstraintFactory.java:104) at org.optaplanner.core.impl.score.director.stream.ConstraintStreamScoreDirectorFactory.<init>(ConstraintStreamScoreDirectorFactory.java:77) at org.optaplanner.core.impl.score.director.ScoreDirectorFactoryFactory.buildConstraintStreamScoreDirectorFactory(ScoreDirectorFactoryFactory.java:185) at org.optaplanner.core.impl.score.director.ScoreDirectorFactoryFactory.decideMultipleScoreDirectorFactories(ScoreDirectorFactoryFactory.java:106) at org.optaplanner.core.impl.score.director.ScoreDirectorFactoryFactory.buildScoreDirectorFactory(ScoreDirectorFactoryFactory.java:74) at org.optaplanner.core.impl.solver.DefaultSolverFactory.buildScoreDirectorFactory(DefaultSolverFactory.java:115) at org.optaplanner.core.impl.solver.DefaultSolverFactory.buildSolver(DefaultSolverFactory.java:83) at org.optaplanner.core.impl.solver.DefaultSolverManager.validateSolverFactory(DefaultSolverManager.java:70) at org.optaplanner.core.impl.solver.DefaultSolverManager.<init>(DefaultSolverManager.java:59) at org.optaplanner.core.api.solver.SolverManager.create(SolverManager.java:82) at org.optaplanner.quarkus.OptaPlannerBeanProvider.solverManager(OptaPlannerBeanProvider.java:56) at org.optaplanner.quarkus.OptaPlannerBeanProvider_ProducerMethod_solverManager_d6636211e93ca3985f0495d972987bdadf803f37_Bean.create(OptaPlannerBeanProvider_ProducerMethod_solverManager_d6636211e93ca3985f0495d972987bdadf803f37_Bean.zig:264) 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.access$000(AbstractSharedContext.java:14) 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.kie.kogito.examples.service.FlightSeatingSolveService_Bean.create(FlightSeatingSolveService_Bean.zig:218) ... 101 more Caused by: java.lang.NoSuchMethodException: org.optaplanner.core.impl.score.stream.drools.common.rules.AbstractUniGroupByMutator$$Lambda$32c3a1ddb2f6da6ceeacbdadd46ec5994fb7d9e7.writeReplace() at java.lang.Class.getDeclaredMethod(DynamicHub.java:2475) at org.drools.mvel.asm.LambdaIntrospector.extractLambda(LambdaIntrospector.java:80) ... 156 more [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 13.16 s <<< FAILURE! - in org.kie.kogito.examples.NativeFlightIT [ERROR] testFlightsProcess Time elapsed: 12.777 s <<< FAILURE! java.lang.AssertionError: 1 expectation failed. JSON path $.size doesn't match. Expected: is <1> Actual: 0
- causes
-
KOGITO-3576 Kogito Examples: Fix Native compilation in some tests
- Resolved
- is caused by
-
KOGITO-3765 Kogito core should not depend on drools-mvel
- Closed
-
DROOLS-5736 Move generation of classes for static executable model instantiation from kogito to drools
- Resolved
- is incorporated by
-
PLANNER-2214 Native compilation disabled
- Resolved
- is related to
-
DROOLS-5794 LambdaReadAccessor hashCode uses toString on the Lambda
- Closed
- relates to
-
KOGITO-3400 Native compilation is broken in optaplanner examples
- Resolved
-
PLANNER-2171 Quarkus native build warning: the following classes for reflection as they are not in the Jandex index
- Resolved