flowable / flowable-engine

A compact and highly efficient workflow and Business Process Management (BPM) platform for developers, system admins and business users.
https://www.flowable.org
Apache License 2.0
7.86k stars 2.6k forks source link

Micronaut + GraalVM - no compile #1974

Open mvniekerk opened 4 years ago

mvniekerk commented 4 years ago

Describe the bug Adding the flowable-engine dependency to a Micronaut engine, and instantiate the process engine causes compile failures when trying to make GraalVM native image.

Expected behavior Create a native image using GraalVM.

Code https://github.com/mvniekerk/micronaut-kotlin-graalvm-flowable

Additional context Flowable: 6.4.2

tijsrademakers commented 4 years ago

Hi,

Is this something you would like to contribute to the project to make Flowable work with Micronaut / GraalVM? Can you share the compile failures that you are seeing?

Thanks

mvniekerk commented 4 years ago

I'd like to help, but the best I can come up with is the repo above that reproduces a failure.

dbmalkovsky commented 4 years ago

I've played around a little (different Java versions and using Linux and Windows) with this and there are at least two issues that I can identify.

ScriptEngineManager is used in org.flowable.common.engine.impl.scripting.ScriptingEngines and org.flowable.osgi.OsgiScriptingEngines

This seems to be an issue with graal; see this issue and this issue.

BTW, on Windows I had to modify src\main\resources\logback.xml to read: <withJansi>false</withJansi> to stop another series of messages and tracebacks.