Closed Bug 1542949 Opened 5 years ago Closed 5 years ago

Build failure: Could not resolve org.yaml:snakeyaml:1.24 \ Could not initialize class sun.security.ssl.SSLContextImpl$TLSContext

Categories

(GeckoView :: General, defect, P3)

Unspecified
Android
defect

Tracking

(firefox66 unaffected, firefox67 unaffected, firefox68 affected)

RESOLVED WORKSFORME
Tracking Status
firefox66 --- unaffected
firefox67 --- unaffected
firefox68 --- affected

People

(Reporter: cpearce, Unassigned)

References

Details

(Keywords: regression)

Attachments

(1 file)

Regression from https://hg.mozilla.org/integration/autoland/rev/47d793fbd8cc, I see a build failure:

> Task :machBuildGeneratedAndroidCodeAndResources
 0:37.28 Executing task :machBuildGeneratedAndroidCodeAndResources
 0:37.28 :machBuildGeneratedAndroidCodeAndResources>  0:00.62 /usr/bin/make -C /home/chris/src/firefox/obj-arm-unknown-linux-androideabi -j14 -s backend
 0:37.28 :machBuildGeneratedAndroidCodeAndResources>  0:00.62 make[5]: warning: -jN forced in submake: disabling jobserver mode.
 0:37.28 :machBuildGeneratedAndroidCodeAndResources>  0:00.69 /usr/bin/make -C mobile/android/base -j14 -s generated_android_code_and_resources
 0:37.28 :machBuildGeneratedAndroidCodeAndResources>  0:00.69 make[5]: warning: -jN forced in submake: disabling jobserver mode.
 0:37.28 :machBuildGeneratedAndroidCodeAndResources>  0:00.73 mobile/android/base/generated_android_code_and_resources.stub
 0:37.28 :machBuildGeneratedAndroidCodeAndResources>  0:00.86 249 compiler warnings present.
 0:37.28 :machBuildGeneratedAndroidCodeAndResources>  0:00.90 Your build was successful!
 0:37.28 FAILURE: Build failed with an exception.
 0:37.28 * What went wrong:
 0:37.28 Could not resolve all files for configuration ':geckoview:withGeckoBinariesDebugCompileClasspath'.
 0:37.28 > Could not resolve org.yaml:snakeyaml:1.24.
 0:37.28   Required by:
 0:37.28       project :geckoview
 0:37.28    > Could not resolve org.yaml:snakeyaml:1.24.
 0:37.28       > java.lang.NoClassDefFoundError: Could not initialize class sun.security.ssl.SSLContextImpl$TLSContext
 0:37.28    > Could not resolve org.yaml:snakeyaml:1.24.
 0:37.29       > java.lang.NoClassDefFoundError: Could not initialize class sun.security.ssl.SSLContextImpl$TLSContext
 0:37.29    > Could not resolve org.yaml:snakeyaml:1.24.
 0:37.29       > java.lang.NoClassDefFoundError: Could not initialize class sun.security.ssl.SSLContextImpl$TLSContext
 0:37.29 * Try:
 0:37.29 Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
 0:37.29 * Get more help at https://help.gradle.org
 0:37.29 Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
 0:37.29 Use '--warning-mode all' to show the individual deprecation warnings.
 0:37.29 See https://docs.gradle.org/4.10.2/userguide/command_line_interface.html#sec:command_line_warnings
 0:37.29 BUILD FAILED in 3s

I'm using Ubuntu 18.04.2 LTS. Java 8:

chris@chris-VirtualBox:~/src/firefox$ java -version
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-2ubuntu0.18.04.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)

Reverting 47d793fbd8cc fixes the issue for me.

I have JDK10 installed, but JDK8 selected, as per https://bugzilla.mozilla.org/show_bug.cgi?id=1451447#c7

I see the same failure building on OSX. Reverting that commit fixes the build.

Nick, your YAML bug 1533385 seems to have some build problems related to org.yaml:snakeyaml.

Flags: needinfo?(nalexander)
Keywords: regression
OS: All → Android

(In reply to Wes Kocher (:KWierso) from comment #1)

I see the same failure building on OSX. Reverting that commit fixes the build.

kwierso: can I get more details? ./mach build -v output and ./mach android assemble-app --debug would be useful.

Flags: needinfo?(nalexander)

(In reply to Chris Peterson [:cpeterson] from comment #2)

Nick, your YAML bug 1533385 seems to have some build problems related to org.yaml:snakeyaml.

Yes. We'll find some other way to achieve the goal; I've asked #sheriffs to back it out.

(In reply to Nick Alexander :nalexander [he/him] from comment #3)

(In reply to Wes Kocher (:KWierso) from comment #1)

I see the same failure building on OSX. Reverting that commit fixes the build.

kwierso: can I get more details? ./mach build -v output and ./mach android assemble-app --debug would be useful.

Setting NI.

Flags: needinfo?(wkocher)

(In reply to Wes Kocher (:KWierso) from comment #6)

mach build -v: https://gist.github.com/KWierso/bd819de8937118884be1627f6c3de4b6
./mach android assemble-app --debug: https://gist.github.com/KWierso/64fe0ca5dd1257c44d02d64dddc5959b

The second one looks truncated, unfortunately -- and that's the one that would help. ./mach android geckoview:tasks --debug might do it too. (You might need to re-apply the patch since it's backed out upstream, Wes.)

Flags: needinfo?(wkocher)
Attached file androidassemble.log

Grr, gist cut it off. Sorry about that.

Flags: needinfo?(wkocher) → needinfo?(nalexander)

Bug 1533385 is being backed out now, so this build error will no longer be a problem.

https://bugzilla.mozilla.org/show_bug.cgi?id=1533385#c18

Priority: -- → P3

We've relanded the offending patch; we'll see if this re-occurs for significant numbers of people. We expect that upgrading Java versions will help.

Status: NEW → RESOLVED
Closed: 5 years ago
Flags: needinfo?(nalexander)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: