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
Java version failed to build on Protobuf 3.5.1.1 #4269
Comments
|
Same thing here on java 10 with 3.6.0 |
|
Same issue on Ubuntu Linux 18.04 with protobuf 3.7.1, maven 3.6.0, openjdk-11: |
|
Same issue on Ubuntu 18.04, protobuf 3.7.1, maven 3.6.0, openjdk 11.0.3. Any update? |
|
@KaoCC As it has been some time since you saw this bug, have you already solved it? |
|
@leebird Unfortunately no. I remember at some point our project which required Java + Protobuf drastically shifted to C++ and it just worked. |
|
I believe this has already been fixed: https://github.com/protocolbuffers/protobuf/blob/master/java/core/src/test/java/com/google/protobuf/ExtensionRegistryFactoryTest.java#L276. |
|
I don't think that change addresses or fixes this error. I'm hitting the same error with same JDK (9.04), but Protobuf 3.10.1, which has the above change, on Ubuntu 16.04. The change also shows added catch for exception SecurityException, but that's not the reported error/exception. The exception is ExceptionInInitializerError. Any recommended workaround would be helpful. Perhaps run with newer JDK? |
Environment:
Java 9 (JDK 9.0.4) x64 on Windows 10
Protobuf 3.5.1.1
Error:
ExtensionRegistryFactoryTest.initializationError » ExceptionInInitializer
Details:
Test set: com.google.protobuf.ExtensionRegistryFactoryTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.001 s <<< FAILURE! - in com.google.protobuf.ExtensionRegistryFactoryTest
initializationError(com.google.protobuf.ExtensionRegistryFactoryTest) Time elapsed: 0.001 s <<< ERROR!
java.lang.ExceptionInInitializerError
at com.google.protobuf.ExtensionRegistryFactoryTest.getLiteOnlyClassLoader(ExtensionRegistryFactoryTest.java:253)
at com.google.protobuf.ExtensionRegistryFactoryTest.(ExtensionRegistryFactoryTest.java:59)
The text was updated successfully, but these errors were encountered: