Mod won't export on Mac - SSL error

Status
Can not reproduce
Type
Product/platform
MCreator/macOS
Priority
Normal
Issue description

Whenever I try to export my workspace, I get a popup saying, "Your mod contains errors and could not be exported. No mod file was generated." Here's the error log:

 

Executing gradle command: clean build
Downloading https://services.gradle.org/distributions/gradle-2.14-bin.zip
Exception in thread "main" javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
   at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:190)
   at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1747)
   at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1708)
   at com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1691)
   at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1222)
   at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1199)
   at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:476)
   at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractD…
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.ja…
   at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnec…
   at org.gradle.wrapper.Download.downloadInternal(Download.java:58)
   at org.gradle.wrapper.Download.download(Download.java:44)
   at org.gradle.wrapper.Install$1.call(Install.java:59)
   at org.gradle.wrapper.Install$1.call(Install.java:46)
   at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
   at org.gradle.wrapper.Install.createDist(Install.java:46)
   at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:126)
   at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
Caused by: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
   at sun.security.validator.PKIXValidator.(PKIXValidator.java:57)
   at sun.security.validator.Validator.getInstance(Validator.java:161)
   at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:108)
   at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:204)
   at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:249)
   at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1188)
   at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:135)
   at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:593)
   at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:529)
   at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:943)
   at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1188)
   at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1215)
   ... 13 more
Caused by: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
   at java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:183)
   at java.security.cert.PKIXParameters.(PKIXParameters.java:103)
   at java.security.cert.PKIXBuilderParameters.(PKIXBuilderParameters.java:87)
   at sun.security.validator.PKIXValidator.(PKIXValidator.java:55)
   ... 24 more
Task completed with return code 1 in 2998 milliseconds

 

The stuff in bold is what I think has something to do with it. but I'm not the expert here. Any help will be appreciated. Thanks in advance!

 

I also posted this in a similar topic, but the problem was caused by a different source, and the suggested solution did not fix my particular case.

Issue comments

I reinstalled Java. The problem persists. The error log shows the same thing as last time. Also, this prevents MCreator from successfully recompiling the code.

Not trying to spam (really), but does it matter if I have the 32-bit or the 64-bit version of MCreator? I don't know which to get; I just got the 32-bit, and now I'm wondering if that might be the problem. I should've mentioned this sooner... (-_-)

I tried that. The downloaded file for the 32-bit and the 64-bit are the same. Can I please have some help? I am so close to being able to add literally anything I want into Minecraft and some stupid trustAnchors parameter has to go and screw it up!

 

Sorry for my outbursts, but this is how I feel. Being so close to something I love and then having it FAIL MISERABLY is very annoying.

I have posted some more tips in your second issue, but the discussion should be moved to this ticket.



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.