Skip to content
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

Task :conclave-grpc:compileKotlin FAILED #1

Closed
v13s opened this issue Feb 10, 2021 · 4 comments
Closed

Task :conclave-grpc:compileKotlin FAILED #1

v13s opened this issue Feb 10, 2021 · 4 comments

Comments

@v13s
Copy link

v13s commented Feb 10, 2021

Build failed while trying to setup the project over Ubuntu 18.04.

Java Version:
openjdk version "1.8.0_282"
OpenJDK Runtime Environment (build 1.8.0_282-8u282-b08-0ubuntu1~18.04-b08)
OpenJDK 64-Bit Server VM (build 25.282-b08, mixed mode)

Kotlin version 1.4.30-release-302 (JRE 1.8.0_282-8u282-b08-0ubuntu1~18.04-b08)
(failed with 1.4.10 as well)

Following error was received:

root@cloudvm:/opt/cordacon-conclave-tutorial# gradle host:shadowJar

Task :conclave-grpc:compileKotlin
e: /opt/cordacon-conclave-tutorial/conclave-grpc/src/main/kotlin/com/r3/conclave/grpc/ConclaveGRPCMethods.kt: (28, 54): Unresolved reference: readAllBytes
e: /opt/cordacon-conclave-tutorial/conclave-grpc/src/main/kotlin/com/r3/conclave/grpc/ConclaveGRPCMethods.kt: (33, 86): Unresolved reference: readAllBytes
e: /opt/cordacon-conclave-tutorial/conclave-grpc/src/main/kotlin/com/r3/conclave/grpc/ConclaveGRPCMethods.kt: (37, 65): Unresolved reference: nullInputStream

Task :conclave-grpc:compileKotlin FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':conclave-grpc:compileKotlin'.

Compilation error. See log for more details

  • 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

BUILD FAILED in 24s
1 actionable task: 1 executed
root@ticketing:/opt/cordacon-con

Any help appreciated.

@shamsasari
Copy link
Contributor

Can you try with the Gradle wrapper: ./gradlew host:shadowJar

@v13s
Copy link
Author

v13s commented Feb 11, 2021

Yes. I get the same error when I try the ./gradlew host:shadowJar as well.

@v13s
Copy link
Author

v13s commented Mar 2, 2021

Fixed after switching to openjdk-11 instead of openjdk-8.

@v13s v13s closed this as completed Mar 2, 2021
@shamsasari
Copy link
Contributor

I'm glad you got that working. Odd that it didn't work in Java 8 for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants