google/data-transfer-project

`gradle test` is now failing with tons of IllegalArgumentException errors

jzacsh opened this issue · 1 comments

This could be a non-issue if it turns out this is something wrong on my local setup, but I'm finding gradle test is no longer passing for me.

test failure

$ gradle test

# jzacsh@ snipped

> Task :extensions:data-transfer:portability-data-transfer-google:test
OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended

org.datatransferproject.datatransfer.google.contacts.GoogleContactsImporterTest > importFirstResources FAILED
    org.mockito.exceptions.base.MockitoException at GoogleContactsImporterTest.java:54
        Caused by: org.mockito.exceptions.base.MockitoException at GoogleContactsImporterTest.java:54
            Caused by: java.lang.IllegalStateException at GoogleContactsImporterTest.java:54
                Caused by: java.lang.IllegalArgumentException at GoogleContactsImporterTest.java:54

org.datatransferproject.datatransfer.google.contacts.GoogleContactsExporterTest > exportFirstPage FAILED
    org.mockito.exceptions.base.MockitoException at GoogleContactsExporterTest.java:80
        Caused by: org.mockito.exceptions.base.MockitoException at GoogleContactsExporterTest.java:80
            Caused by: java.lang.IllegalStateException at GoogleContactsExporterTest.java:80
                Caused by: java.lang.IllegalArgumentException at GoogleContactsExporterTest.java:80

# jzacsh@ snipped


29 tests completed, 21 failed

> Task :extensions:data-transfer:portability-data-transfer-google:test FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':extensions:data-transfer:portability-data-transfer-google:test'.
> There were failing tests. See the report at: file:///home/jzacsh/media/src/data-transfer-project/extensions/data-transfer/portability-data-transfer-google/build/reports/tests/test/index.html

* Try:
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.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 1m 21s
152 actionable tasks: 105 executed, 47 up-to-date

just filed this really so I could answer my own question, for posterity, as I'm sure this will happen to someone else. (took me a couple hours of head-scratching to resolve).

solution: I was accidentally on a machine with jdk17. Installing jdk11 fixed my problem and everything's passing again.