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

Fix script validation error on docker env #1004

Merged
merged 1 commit into from
Feb 27, 2024
Merged

Conversation

imbyungjun
Copy link
Contributor

resolve #940

This issue seems like ohsi error that is occurred in docker container env only.
Currently, base JDK version is changed to 11. So, updated oshi version to work with JDK 11.
And expect this change will fix the oshi issue also.

@imbyungjun imbyungjun self-assigned this Feb 27, 2024
Copy link

❌ Build & Test workflow failed ❌

@@ -205,7 +204,7 @@ public String buildJVMArgumentWithoutMemory() {
addAdditionalJavaOpt(jvmArguments);
}

String jdkVersion = getJDKVersion();
String jdkVersion = System.getProperty("java.specification.version");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getJDKVersion() method called only here. And it is not related with Oshi �unlike the other methods. So, remove the method and change to check system property here directly.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change also make Script Validation function doesn't depends on SystemInfoUtils. So, I expect that NoClassDefFoundError does not occur anymore.

Copy link
Contributor

@donggyu04 donggyu04 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@imbyungjun imbyungjun merged commit 5c702ff into develop Feb 27, 2024
0 of 2 checks passed
@imbyungjun imbyungjun deleted the feature/fix-oshi branch February 27, 2024 04:45
@imbyungjun imbyungjun changed the title Fix oshi Fix script validation error on docker env Feb 27, 2024
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.

why V3.5.7 Script Validation Error?
2 participants