Skip to content

Conversation

apupier
Copy link
Contributor

@apupier apupier commented Oct 15, 2025

No description provided.

part of apache#1641

Signed-off-by: Aurélien Pupier <[email protected]>
the initialize at runtime configured in the code is not working, I do
not understand why; It is working when using the comad-lien parameter
`-Dquarkus.native.additional-build-args="--initialize-at-run-time=org.apache.flink.util.AbstractID,--initialize-at-run-time=com.esotericsoftware.kryo.util.Object"`

the SPI classes are not working. i tried to register by reflection all
specified classes, also to enable ServiceLoader
(`-H:+UseServiceLoaderFeature,-H:+UnlockExperimentalVMOptions` in the
additional native build args) without success as ti is specified
`-H:-UseServiceLoaderFeature` somewhere else and it is this one which is
picked)
Signed-off-by: Aurélien Pupier <[email protected]>
@apupier
Copy link
Contributor Author

apupier commented Oct 15, 2025

draft created to better compare what I've done and seeking for help:

the initialize at runtime configured in the code is not working, I do not understand why; It is working when using the comad-lien parameter -Dquarkus.native.additional-build-args="--initialize-at-run-time=org.apache.flink.util.AbstractID,--initialize-at-run-time=com.esotericsoftware.kryo.util.Object".

the SPI classes are not working. i tried to register by reflection all specified classes, also to enable ServiceLoader (-H:+UseServiceLoaderFeature,-H:+UnlockExperimentalVMOptions in the additional native build args) without success as ti is specified -H:-UseServiceLoaderFeature somewhere else and it is this one which is picked)
it is causing this error at runtime:

Caused by: java.lang.IllegalStateException: No ExecutorFactory found to execute the application.
	at org.apache.flink.core.execution.DefaultExecutorServiceLoader.getExecutorFactory(DefaultExecutorServiceLoader.java:88)
	at org.apache.flink.streaming.api.environment.StreamExecutionEnvironment.getPipelineExecutor(StreamExecutionEnvironment.java:2995)
	at org.apache.flink.streaming.api.environment.StreamExecutionEnvironment.executeAsync(StreamExecutionEnvironment.java:2469)
	at org.apache.flink.streaming.api.environment.StreamExecutionEnvironment.execute(StreamExecutionEnvironment.java:2351)
	at org.apache.flink.streaming.api.environment.LocalStreamEnvironment.execute(LocalStreamEnvironment.java:68)
	at org.apache.flink.streaming.api.environment.StreamExecutionEnvironment.execute(StreamExecutionEnvironment.java:2325)
	at org.apache.flink.streaming.api.environment.StreamExecutionEnvironment.execute(StreamExecutionEnvironment.java:2303)
	at org.apache.camel.quarkus.component.flink.it.FlinkResource$1.doOnDataStream(FlinkResource.java:101)

@apupier apupier closed this Oct 17, 2025
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

Successfully merging this pull request may close these issues.

1 participant