Skip to content

Running native images results in DynamicProxyConfigurationResources is deprecated warnings #34855

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

Closed
philwebb opened this issue May 2, 2025 · 3 comments
Labels
status: duplicate A duplicate of another issue

Comments

@philwebb
Copy link
Member

philwebb commented May 2, 2025

Care of @odrotbohm

[INFO]     [creator]     Warning: Option 'DynamicProxyConfigurationResources' is deprecated and might be removed in a future release: This can be caused by a proxy-config.json file in your META-INF directory. Consider including proxy configuration in the reflection section of reachability-metadata.md instead.. Please refer to the GraalVM release notes.
$ java --version
Picked up JAVA_TOOL_OPTIONS: -Duser.country=US -Duser.language=en
java 24.0.1 2025-04-15
Java(TM) SE Runtime Environment Oracle GraalVM 24.0.1+9.1 (build 24.0.1+9-jvmci-b01)
Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 24.0.1+9.1 (build 24.0.1+9-jvmci-b01, mixed mode, sharing)
@philwebb philwebb added the type: bug A general bug label May 2, 2025
@bclozel
Copy link
Member

bclozel commented May 3, 2025

If this is mainly about the proxy-config.json file being present, I think we will have to live with this until Framework 7.0 / Boot 4.0 when we will broadly adopt the new reachability metadata format, see https://github.com/spring-projects/spring-framework/wiki/Spring-Framework-7.0-Release-Notes#graalvm-native-applications

@philwebb
Copy link
Member Author

philwebb commented May 5, 2025

I see, I thought DynamicProxyConfigurationResources was one of our classes that we'd deprecated. I seems like it's actually a GraalVM thing. Pushing to 4.0.x

@snicoll
Copy link
Member

snicoll commented May 6, 2025

I believe this should be transferred to framework as we don't generate those files.

@snicoll snicoll transferred this issue from spring-projects/spring-boot May 6, 2025
@snicoll snicoll added status: waiting-for-triage An issue we've not yet triaged or decided on and removed type: bug A general bug labels May 6, 2025
@bclozel bclozel closed this as completed May 6, 2025
@bclozel bclozel added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels May 6, 2025
izeye added a commit to izeye/graal that referenced this issue May 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants