mojira.dev
MCL-75

java.security.NoSuchAlgorithmException: Error constructing implementation

The launcher don't seem to work at all, the console freezes after "Starting launcher" and uses 100% of 2 of my cpu cores.

This is the output from the OS terminal, the launcher console is the same but without the last line ("Launcher started").

Bootstrap started
Looking for update
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma
Got reply in: 1765ms
No update found.
Reversing LZMA on /home/niko/.minecraft/launcher.pack.lzma to /home/niko/.minecraft/launcher.pack
Unpacking /home/niko/.minecraft/launcher.pack to /home/niko/.minecraft/launcher.jar
Cleaning up /home/niko/.minecraft/launcher.pack
Starting launcher.
Launcher started...

Is there a better output being saved somewhere?

PD: Sorry for the bad title, I couldn't come up with something better.

Linked issues

Comments 8

I can't really make much of this. Do you see any window created at all?

I don't see any window :/.

I can only classify this as 'broken java' then.

Ok, I made it work, but only using openjdk7, I tryed java-6-7-8 before that and didn't work, I tryed in other PC without luck, same problem, I even cleaned everything that java left behind (conf files and stuff) before change between versions. It would be cool if someone can try the launcher using Java, most of the linux users are using openjdk for sure.

Anyway, the launcher opens but I have some new errors.

Bootstrap started
Looking for update
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma
Exception: java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 2/10)
Exception: java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 3/10)
Exception: java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 4/10)
Exception: java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 5/10)
Exception: java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 6/10)
Exception: java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 7/10)
Exception: java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 8/10)
Exception: java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 9/10)
Exception: java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 10/10)
Exception: java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
Unable to download remote file. Check your internet connection/proxy settings.
Didn't find an update in time.
Reversing LZMA on /home/niko/.minecraft/launcher.pack.lzma to /home/niko/.minecraft/launcher.pack
Unpacking /home/niko/.minecraft/launcher.pack to /home/niko/.minecraft/launcher.jar
Cleaning up /home/niko/.minecraft/launcher.pack
Starting launcher.
Launcher started...
java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)

Obviously I can't login and the window size is slighty wrong, I can't see thee register and login buttons, I have to resize the window, that could be WM releated, I would try with other when I have some time.

This again is a broken java install. If you do not have the ability to have an SSL connection there is no way you can login to minecraft ever.

We're not doing any special code at all, we just open a HttpsURLConnection to the location where you download from. This should just work with a proper java setup.

After a quick google I found: http://stackoverflow.com/questions/6365209/java-and-ssl-java-security-nosuchalgorithmexception

Can you add the following options to your java cmd line?

-Djavax.net.debug=ssl,keymanager

So it should be something like:

java -Djavax.net.debug=ssl,keymanager -jar MinecraftDev.jar

maybe this will give more useful output.

Ok, that was usefull, the certificate for some reason was corrupt. If someone stumble with the same problem the certificate is no installed by the openjdk in most of the distributions, in my case was the package "ca-certificates-java-20121112 nmu2-1", you may want to take a look at that if have the same problem.

I solved my problem with openjdk, talking about java I found the problem, you guys seem to have a problem mapping the window using some re-parenting windows managers. Looking for the problem with the size of the launcher I found that the launcher is being mapped correctly in some window manager (openbox, kwin) and don't do it in others (mutter, twm).
The size problem I mentioned using openjdk may be related this too, the problem is that the window managers do whatever they want with the windows, I had some problems in the past with some stuff I'm making, for example in kwin the position of the window is giving by the parent of the parent and the decoration position is giving by the parent (border of the window) and I know works different in Mutter... so what I think happended is you guys are using the size of the window but not the difference between the position of the window and the position of the decoration in some cases (Mutter) so the decoration size is wrong (the difference is exactly the decoration), basicly DecorationSize=WindowSize but should be DecorationSize = WindowSize - WindowPosition + DecorationPosition... something is happening there and perhaps that is why the window is not being mapped in some WMs using Java but works using openjdk (but with the wrong size), or may be something related with that...

, you guys seem to have a problem mapping the window using some re-parenting windows managers.

Actually, we do not have a problem with that as we're not doing anything special, we're simply using java's swing framework to do things.

If this for whatever reason doesn't work on your 'foreign' java install you should complain with the people who do the packaging for said install or oracle/openjdk themselves.

Basically, if you are using linux, you will most likely get support until you start running the jarfile 🙂

Well that is true, java should have some exceptions for every WMs using EWMH, which openjdk does, but looks like is incorrect but at least the window can be mapped... anyway, I don't know what you guys did but the launcher is being correctly mapped using java in the new revision of the launcher (0.3), with the incorrect size but whatever, I don't really care about that.
This can be closed 😃.

PD: Fun fact, java can't be re-packaged at all, that is because oracle took off the DLJ (Distributor License for Java), that is why most of the linux distributions use openjdk 😛.

Nicolás Delgado

(Unassigned)

Unconfirmed

linux

Retrieved