Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Micronaut + GraalVM - no compile #1974

Open
mvniekerk opened this issue Oct 11, 2019 · 3 comments
Open

Micronaut + GraalVM - no compile #1974

mvniekerk opened this issue Oct 11, 2019 · 3 comments

Comments

@mvniekerk
Copy link

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
Copy link
Contributor

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
Copy link
Author

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

@dbmalkovsky
Copy link
Contributor

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.

  • This message is generated: 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

  • And this message multiple times: 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants