SliTaz SliTaz Forum

You are not logged in.

#1 2013-04-22 07:20:05

frash23
Member
Registered: 2013-04-19
Posts: 35

Can't login to minecraft.

Hello!

I have slitaz, and i love it so far, but i ran into a problem;

I cannot login on the minecraft client. I tried my portable shell, and i was able to "play offline" just fine, but i need to be able to play on my servers, so this is an issue for me. I ran my shell in a terminal to look for any errors, and i got this:

[c]javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
    at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
    at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1665)
    at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1628)
    at sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1611)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1192)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1169)
    at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:440)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153)
    at net.minecraft.Util.excutePost(Util.java:101)
    at net.minecraft.LauncherFrame.login(LauncherFrame.java:97)
    at net.minecraft.LoginForm$6.run(LoginForm.java:217)
Caused by: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
    at sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:75)
    at sun.security.validator.Validator.getInstance(Validator.java:178)
    at sun.security.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:129)
    at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:225)
    at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:270)
    at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1144)
    at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:154)
    at sun.security.ssl.Handshaker.processLoop(Handshaker.java:610)
    at sun.security.ssl.Handshaker.process_record(Handshaker.java:546)
    at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:913)
    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1158)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1185)
    ... 7 more
Caused by: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
    at java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:200)
    at java.security.cert.PKIXParameters.<init>(PKIXParameters.java:120)
    at java.security.cert.PKIXBuilderParameters.<init>(PKIXBuilderParameters.java:104)
    at sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:73)
    ... 18 more[/c]
I also tried (on a fresh install) installing java 7 manually, same result.

Does anyone know a reason/fix for this?

Offline

#2 2013-04-29 10:14:31

frash23
Member
Registered: 2013-04-19
Posts: 35

Re: Can't login to minecraft.

I fixed it myself. In my frustrating (failed) attempts at installing java 7, i somehow got a SSL library with me (not sure).

Here's what i did. I used the normal ways to install jre7 from a tutorial here on the forum. Didnt work. java command gave a weird error, so i guessed it would be incompatible with slitaz. I kept trying though, and at last, i removed ALL java stuff, absolutely every folder and package. Install get-java6-jre, download the jre7.tar.gz file from java.com, extract it, empty the /etc/lib/jre-1.6.0_u20 (or something), and replace the files in there. Same error with java command. I then ram get-java6-jre -f, and it reinstalled java6 (without emptying the jre-1.6.0_u20 folder), and i guess it kept some jre7 files, and now it works.

Hope this will be usefull to someone.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]