-
Notifications
You must be signed in to change notification settings - Fork 557
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
v0.7.2 java.lang.NullPointerException: Cannot invoke "java.lang.String.replaceAll(java.lang.String, java.lang.String)" because the return value of "java.lang.Package.getImplementationTitle()" is null #2061
Comments
I create a repo to reproduce this issue: https://github.com/abcfy2/clickhouse_java_issue_2061 This will cause when using gradle shadow plugin |
I find the reason. shadow plugin will bundle all the dependencies into one fat jar, so As a quick and dirty sulotion, I have to add a FAKE tasks.withType<ShadowJar> {
archiveClassifier.set("all")
archiveVersion.set("")
manifest {
attributes(
mapOf(
"Implementation-Title" to "ClickHouse Client API",
"Implementation-Version" to "client-v2 $clickhouseClientV2Version",
// other attributes
)
)
}
mergeServiceFiles()
} |
I got the same issue when using the assembly plugin in Maven. the solution looks like this:
However I think the library should provide the setters or functions to allow the user to set both "Implementation-title" and "Implementation-version" manually. |
Good day, @abcfy2 ! |
Good day, @grant-guo! |
watching Just came here to raise this very issue.... |
Describe the bug
This is the new BUG only in
0.7.2
, but0.7.1
is working very well.I have this code in my project:
This code runs in Vertx worker verticle (which is VIRTUAL THREAD environment)
And I will see this stracetrack:
The NPE is from
clickhouse-java/client-v2/src/main/java/com/clickhouse/client/api/internal/HttpAPIClientHelper.java
Line 691 in 33b1fad
Error log
Configuration
Environment
The text was updated successfully, but these errors were encountered: