[MC-6399] Won't login / doesnt respect JVM security provider settings (bouncy castle) Created: 06/Jan/13 Updated: 06/Sep/15 Resolved: 26/Nov/13 |
|
| Status: | Resolved |
| Project: | Minecraft: Java Edition |
| Component/s: | None |
| Affects Version/s: | Minecraft 1.4.6 |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Ross | Assignee: | Unassigned |
| Resolution: | Invalid | Votes: | 0 |
| Labels: | bouncycastle, connecting, digest, mappings, security | ||
| Environment: |
Windows 7 64bit running the jar via win shortcut with target |
||
| Issue Links: |
|
||||||||
| Confirmation Status: | Unconfirmed | ||||||||
| Description |
|
I recently installed Bouncy Castle security provider for a project I am working on. Once installed the Minecraft client stopped logging into the server I run locally. (Tho its still working for friends who connect remotely) I get the following stack trace to the console when trying to connect with the client. The GUI eventually times out and does not connect. If I comment out the line enabling Bouncy Castle in java.security file I still get the same error. IMO this shouldn't happen as in commenting the line Bouncy Castle is not enabled. (I've confirmed this with a simple test program showing BC wasn't available) However once I removed bcprov-jdk15on-147 from ext it the client worked. I see a few issues here. For some reason the java.security provider precedence is being ignored. Bouncy Castle is the last provider in my precedence list. Shouldn't it be using Sun, or what ever provider is working now instead of BC when it's enabled anyway? Even when BC is not enabled in the precedence chain in java.security Minecraft is using it anyway. How and why is this so? |
| Comments |
| Comment by Talven81 [ 26/Nov/13 ] |
|
No response in 4 months, assuming no longer an issue. |
| Comment by Tails [ 25/Jul/13 ] |
|
Is this still a concern in the current Minecraft version 1.6.2 / Launcher version 1.1.2 ? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases. |
| Comment by Jack Hardcastle [ 20/Apr/13 ] |
|
I solved my issue. Uninstalling Java completely (using the directions at http://stikine.wordpress.com/2012/03/02/howto-remove-java/) and then reinstalling it from Apple fixed it. Prior to that, I did try installing Oracle Java 1.7, which wouldn't launch at all. |
| Comment by Jack Hardcastle [ 19/Apr/13 ] |
|
Having the same problem on my Mac, 10.8, using the installed Java with the system. I cannot find bouncycastle anywhere on my system (locate, spotlight, etc.). ---- Minecraft Crash Report ---- Time: 4/19/13 2:05 PM java.lang.InternalError: cannot create instance of org.bouncycastle.jcajce.provider.digest.GOST3411$Mappings : java.lang.ClassCastException: org.bouncycastle.jcajce.provider.digest.GOST3411$Mappings cannot be cast to aso A detailed walkthrough of the error, its code path and all known details is as follows: – System Details – |
| Comment by Mustek [ 14/Apr/13 ] |
|
Reopening, received the following crashlog via irc. 2013-04-14 22:56:22 [SERVER] [INFO] Starting integrated minecraft server version 1.5.1 2013-04-14 22:56:22 [SERVER] [INFO] Generating keypair java.lang.NoClassDefFoundError: Could not initialize class kl at bjh.c(SourceFile:102) at net.minecraft.server.MinecraftServer.run(SourceFile:306) at gp.run(SourceFile:573) 2013-04-14 22:56:22 [SERVER] [SEVERE] Encountered an unexpected exception NoClas sDefFoundError java.lang.NoClassDefFoundError: Could not initialize class kl at bjh.c(SourceFile:102) at net.minecraft.server.MinecraftServer.run(SourceFile:306) at gp.run(SourceFile:573) 2013-04-14 22:56:22 [SERVER] [SEVERE] This crash report has been saved to: C:\Us ers\hafnero\AppData\Roaming\.minecraft\crash-reports\crash-2013-04-14_22.56.22-s erver.txt 2013-04-14 22:56:22 [SERVER] [INFO] Stopping server 2013-04-14 22:56:22 [SERVER] [INFO] Saving players 2013-04-14 22:56:22 [SERVER] [INFO] Saving worlds java.lang.NullPointerException at net.minecraft.server.MinecraftServer.a(SourceFile:252) at net.minecraft.server.MinecraftServer.k(SourceFile:276) at bjh.k(SourceFile:229) at net.minecraft.server.MinecraftServer.run(SourceFile:364) at gp.run(SourceFile:573) |
| Comment by Tails [ 06/Apr/13 ] |
|
No answer on querry, assuming not an issue anymore. |
| Comment by Tails [ 17/Mar/13 ] |
|
Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases. |
| Comment by [Mod] Torabi [ 13/Jan/13 ] |
|
Minecraft includes some Bouncy Castle code. So it's probably an interaction between the code embedded in Minecraft, and the external Bouncy Castle security provider. I don't have any idea which component the bug lies in though. |
| Comment by Kumasasa [ 07/Jan/13 ] |
|
Ok, got it. Reopened. |
| Comment by Ross [ 07/Jan/13 ] |
|
Gee I am so glad I wasted my time in raising this issue, and it is an issue, only for it to be immediately closed. The issue here IS with Minecraft, and not the "third party software", which for all intents and purposes is a part of the JVM. Minecraft is not only ignoring system settings it's using a provider that isn't even enabled. Hardly a problem with the 3rd party vendor. This is Minecraft's issue. |
| Comment by Kumasasa [ 06/Jan/13 ] |
|
This ticket is invalid as it relates to a modded or 3rd party client/server.
|