You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With #4239 now beeing resolved,
there sneaked another small missing AOT hint into the final version of Batch 5.0.0 / Boot 3.0
The Example from the other bug with an upgrade to boot 3.0 should show the problem.
Caused by: com.oracle.svm.core.jdk.UnsupportedFeatureError: Proxy class defined by interfaces [interface org.springframework.batch.core.launch.JobOperator, interface org.springframework.aop.SpringProxy, interface org.springframework.aop.framework.Advised, interface org.springframework.core.DecoratingProxy] not found. Generating proxy classes at runtime is not supported. Proxy classes need to be defined at image build time by specifying the list of interfaces that they implement. To define proxy classes use -H:DynamicProxyConfigurationFiles=<comma-separated-config-files> and -H:DynamicProxyConfigurationResources=<comma-separated-config-resources> options.
@goafabric Thank you for raising this! We will add that hint in the next patch version 5.0.1.
@wilkinsona Thank you for the heads up! We are planning to add a build plan for GraalVM in Batch to ensure that it continuously build/run in a native environment, see #3871. Will plan that for 5.0.1 as well.
With #4239 now beeing resolved,
there sneaked another small missing AOT hint into the final version of Batch 5.0.0 / Boot 3.0
The Example from the other bug with an upgrade to boot 3.0 should show the problem.
Caused by: com.oracle.svm.core.jdk.UnsupportedFeatureError: Proxy class defined by interfaces [interface org.springframework.batch.core.launch.JobOperator, interface org.springframework.aop.SpringProxy, interface org.springframework.aop.framework.Advised, interface org.springframework.core.DecoratingProxy] not found. Generating proxy classes at runtime is not supported. Proxy classes need to be defined at image build time by specifying the list of interfaces that they implement. To define proxy classes use -H:DynamicProxyConfigurationFiles=<comma-separated-config-files> and -H:DynamicProxyConfigurationResources=<comma-separated-config-resources> options.
However there is an easy mitigation:
hints.proxies().registerJdkProxy(AopProxyUtils.completeJdkProxyInterfaces(JobOperator.class));
Please add that to the next iteration of batch .. thanl you
The text was updated successfully, but these errors were encountered: