-
Notifications
You must be signed in to change notification settings - Fork 745
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
NoClassDefFoundError: com/google/inject/ProvisionException #3897
Comments
@djh82 can you share a stack trace, or a repro? Which dataflow version are you using? |
Thanks, can you try with Line 38 in 94a93e9
|
As expected, this also doesnt work. |
Sorry, I got distracted by the mention of dataflow, it makes sense that's unrelated to the missing The latest versions are using error-prone/check_api/src/main/java/com/google/errorprone/scanner/ErrorProneInjector.java Line 68 in 7335ba2
There is a testonly dep on it here, which might be preventing it from being included in the Lines 182 to 183 in 7335ba2
|
Hi, is there a workaround? I tried adding guice 5.1.0 to the compiler preprocessor jars and got "Failed to find an injectable constructor for AlwaysThrows requested by AlwaysThrows", and now I don't know if I'm doing it wrong or if I'm hitting the underlying reason why the ProvisionException is being loaded. |
I have the problem (via ant and using Java 11 and 17) and see the same error message "Failed to find an injectable constructor for AlwaysThrows requested by AlwaysThrows" ... if I disable this check, then then next pops up "Failed to find an injectable constructor for CheckReturnValue requested by CheckReturnValue" (stacktraces below) May this commit 01e7503 makes the constructor invisible? Stacktraces:
|
to simplify dependency requirements for OSS. #3897 PiperOrigin-RevId: 535265714
to simplify dependency requirements for OSS. #3897 PiperOrigin-RevId: 535265714
to simplify dependency requirements for OSS. #3897 PiperOrigin-RevId: 535265714
to simplify dependency requirements for OSS. #3897 PiperOrigin-RevId: 535289068
Short update regarding the "Failed to find an injectable constructor" problem - after reading #3931 and the linked PR https://github.com/PicnicSupermarket/error-prone-support/pull/621/files (including adding https://search.maven.org/artifact/javax.inject/javax.inject/1/jar) I tried the same and it worked :-) |
I think this was an oversight, I will look at getting it included in the next release. For anyone else who encounters this before then, adding https://repo1.maven.org/maven2/javax/inject/javax.inject/1/javax.inject-1.jar to the classpath should fix it. |
#3897 PiperOrigin-RevId: 571753912
#3897 PiperOrigin-RevId: 572286796
This is resolved in 2.23.0 |
The dependecy is included as of 2.23.0 #3897
Using ErrorProne 2.19.0 with the latest dataflow Jar (3.34), ProvisionException does not appear to be on the classpath.
The stacktrace is as follows (I can't get you the full one, sorry!):
The text was updated successfully, but these errors were encountered: