-
Notifications
You must be signed in to change notification settings - Fork 64
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
[BUG] Java client offline mode fails in nested-jar applications such as Spring Boot (initially reported by the Atlas team) #882
Comments
@jessiejuachon |
Hi @lyiyu66! I am not able to replicate the exception you are seeing. I just did a fresh git clone of the repo and checked out the commit. I did the steps that I put in the README. I did not get any exception: |
Hi @jessiejuachon , as we talked in Slack, the issue can't be reproducible on Linux. |
The issue and specific Windows issue have been fixed with commit 3678872. |
Describe the bug
Java client offline mode fails in nested-jar applications such as Spring Boot.
After investigation, the root cause seems to be the following:
To Reproduce
Steps to reproduce the behavior:
"gradle -b build-spring-boot.gradle build"
"java -jar ./build/libs/sample-spring-boot-with-shared-lib-1.0.jar"
Note: The build-spring-boot.gradle file has to be added. See Adding build file to sample-app-with-shared-lib to build it as Spring Boot app #883.
Expected behavior
No exceptions.
Solutions:
Note: Java 11 and below does not support any way to "walk" the file system of a nested jar. Hence, getSupportedLocales is expected to fail for nested jars, but should not block message fetch from resource bundle.
Additional context
This was initially reported by the Atlas team.
The text was updated successfully, but these errors were encountered: