martinweiler opened a new issue, #1260:
URL: https://github.com/apache/incubator-kie-issues/issues/1260
Applications using workflow feature fail in native mode:
```
./target/process-usertasks-quarkus-runner
__ ____ __ _____ ___ __ ____ ______
--/ __ \/ / / / _ | / _ \/ //_/ / / / __/
-/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\ \
--\___\_\____/_/ |_/_/|_/_/|_|\____/___/
2024-05-21 16:16:59,846 WARN
[org.kie.kog.ser.reg.ProcessDefinitionEventRegistry] (main) Not source found
for process id approvals
2024-05-21 16:16:59,852 INFO [io.quarkus] (main) process-usertasks-quarkus
999-20240509-SNAPSHOT native (powered by Quarkus 3.8.4) started in 0.051s.
Listening on: http://0.0.0.0:8080/
2024-05-21 16:16:59,852 INFO [io.quarkus] (main) Profile prod activated.
2024-05-21 16:16:59,852 INFO [io.quarkus] (main) Installed features: [cdi,
kogito-decisions, kogito-predictions, kogito-processes, kogito-rules, resteasy,
resteasy-jackson, smallrye-context-propagation, smallrye-health,
smallrye-openapi, swagger-ui, vertx]
2024-05-21 16:20:08,800 ERROR [io.qua.ver.htt.run.QuarkusErrorHandler]
(executor-thread-1) HTTP Request to /approvals failed, error id:
c9a5bfcb-0188-4cbb-97fd-79d1e85a8d32-1:
org.jboss.resteasy.spi.UnhandledException: java.lang.IllegalArgumentException:
Illegal node type: class org.jbpm.workflow.core.node.StartNode
at
org.jboss.resteasy.core.ExceptionHandler.handleApplicationException(ExceptionHandler.java:107)
at
org.jboss.resteasy.core.ExceptionHandler.handleException(ExceptionHandler.java:344)
at
org.jboss.resteasy.core.SynchronousDispatcher.writeException(SynchronousDispatcher.java:205)
at
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:452)
at
org.jboss.resteasy.core.SynchronousDispatcher.lambda$invoke$4(SynchronousDispatcher.java:240)
at
org.jboss.resteasy.core.SynchronousDispatcher.lambda$preprocess$0(SynchronousDispatcher.java:154)
at
org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:321)
at
org.jboss.resteasy.core.SynchronousDispatcher.preprocess(SynchronousDispatcher.java:157)
at
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:229)
at
io.quarkus.resteasy.runtime.standalone.RequestDispatcher.service(RequestDispatcher.java:82)
at
io.quarkus.resteasy.runtime.standalone.VertxRequestHandler.dispatch(VertxRequestHandler.java:147)
at
io.quarkus.resteasy.runtime.standalone.VertxRequestHandler$1.run(VertxRequestHandler.java:93)
at
io.quarkus.vertx.core.runtime.VertxCoreRecorder$14.runWith(VertxCoreRecorder.java:582)
at
org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2513)
at
org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1538)
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 [email protected]/java.lang.Thread.runWith(Thread.java:1596)
at [email protected]/java.lang.Thread.run(Thread.java:1583)
at
org.graalvm.nativeimage.builder/com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:896)
at
org.graalvm.nativeimage.builder/com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:872)
Caused by: java.lang.IllegalArgumentException: Illegal node type: class
org.jbpm.workflow.core.node.StartNode
at
org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.getNodeInstance(WorkflowProcessInstanceImpl.java:312)
at
org.jbpm.ruleflow.instance.RuleFlowProcessInstance.internalStart(RuleFlowProcessInstance.java:39)
at
org.jbpm.process.instance.impl.ProcessInstanceImpl.start(ProcessInstanceImpl.java:276)
at
org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.start(WorkflowProcessInstanceImpl.java:517)
at
org.jbpm.process.instance.KogitoProcessRuntimeImpl.startProcessInstance(KogitoProcessRuntimeImpl.java:167)
at
org.jbpm.process.instance.KogitoProcessRuntimeImpl.startProcessInstance(KogitoProcessRuntimeImpl.java:76)
...
```
To register `META-INF/services` entries automatically, the following system
property has to be set [1]:
```
quarkus.native.auto-service-loader-registration=true
```
[1] https://quarkus.io/guides/building-native-image
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]