Open mvniekerk opened 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
I'd like to help, but the best I can come up with is the repo above that reproduces a failure.
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 providers.next(): javax.script.ScriptEngineFactory: Provider com.oracle.truffle.js.scriptengine.GraalJSEngineFactory could not be instantiated
ScriptEngineManager
is used in org.flowable.common.engine.impl.scripting.ScriptingEngines
and org.flowable.osgi.OsgiScriptingEngines
Error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Invoke with MethodHandle argument could not be reduced to at most a single call: java.lang.invoke.MethodHandleImpl.buildVarargsArray(MethodHandle, MethodHandle, int)
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.
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