Cannot compile kotlin native project

Completed

There is a problem when trying to download dependencies to compile the Kotlin HelloWorld that comes with the IDE. The error shown in console is:

Cannot download a dependency: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

Any ideas?

0
7 comments

Hello!

Could you please provide a screenshot of the error? Also please specify what CLion version and what JVM you use (Help | About CLion).

0
Avatar
Permanently deleted user

I've been using OpenJDK (default on Kubuntu 18.04). Then I installed Oracle JDK:
    java version "1.8.0_171"
    Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
    Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)

Though it seems that Clion is using OpenJDK

About Clion:

    CLion 2018.1.5
    Build #CL-181.5281.33, built on June 14, 2018
    Licensed to ##########
    Subscription is active until December 10, 2018
    For educational use only.
    JRE: 1.8.0_152-release-1136-b39 amd64
    JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
    Linux 4.15.0-24-generic




0

Do you use proxy in your network? Please go to the File | Settings | Appearance & Behavior | System Settings | HTTP Proxy section and configure the proxy settings if you do or enable the No Proxy option if you don't. Does the error still appear after that? 

0
Avatar
Permanently deleted user

No Proxy option is already enabled. Please note that I just downloaded the application and made no changes (except installing kotlin-native plugin).

0

Please send the idea.log file (Help | Show Log in ...) to clion-support at jetbrains.com.

0
Avatar
Permanently deleted user

Log file provided

0
Avatar
Permanently deleted user

It turned out to be an Ubuntu 18.04 related issue. More details, and a workaround solution (that worked for me) reported here: https://stackoverflow.com/questions/6784463/error-trustanchors-parameter-must-be-non-empty/50103533#50103533

0

Please sign in to leave a comment.