<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 12:11:04 UTC 2025

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Mojang Studios Jira</title>
    <link>https://bugs.mojang.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en</language>    <build-info>
        <version>9.12.2</version>
        <build-number>9120002</build-number>
        <build-date>10-01-2024</build-date>
    </build-info>


<item>
            <title>[MC-6399] Won&apos;t login / doesnt respect JVM security provider settings (bouncy castle)</title>
                <link>https://bugs.mojang.com/browse/MC-6399</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;p&gt;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)&lt;/p&gt;

&lt;p&gt;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.&lt;br/&gt;
Connecting to 192.168.1.43, 25565&lt;br/&gt;
java.lang.ClassCastException: org.bouncycastle.jcajce.provider.digest.GOST3411$M&lt;br/&gt;
appings cannot be cast to apl&lt;br/&gt;
        at apm.a(Unknown Source)&lt;br/&gt;
        at apm.a(Unknown Source)&lt;br/&gt;
        at apm.a(Unknown Source)&lt;br/&gt;
        at apn.run(Unknown Source)&lt;br/&gt;
        at java.security.AccessController.doPrivileged(Native Method)&lt;br/&gt;
        at apm.&amp;lt;init&amp;gt;(Unknown Source)&lt;br/&gt;
        at jt.&amp;lt;clinit&amp;gt;(SourceFile:40)&lt;br/&gt;
        at eq.a(SourceFile:28)&lt;br/&gt;
        at ef.a(SourceFile:192)&lt;br/&gt;
        at cg.i(SourceFile:249)&lt;br/&gt;
        at cg.c(SourceFile:15)&lt;br/&gt;
        at ch.run(SourceFile:93)&lt;br/&gt;
Exception in thread &quot;Client read thread&quot; java.lang.InternalError: cannot create&lt;br/&gt;
instance of org.bouncycastle.jcajce.provider.digest.GOST3411$Mappings : java.lan&lt;br/&gt;
g.ClassCastException: org.bouncycastle.jcajce.provider.digest.GOST3411$Mappings&lt;br/&gt;
cannot be cast to apl&lt;br/&gt;
        at apm.a(Unknown Source)&lt;br/&gt;
        at apm.a(Unknown Source)&lt;br/&gt;
        at apm.a(Unknown Source)&lt;br/&gt;
        at apn.run(Unknown Source)&lt;br/&gt;
        at java.security.AccessController.doPrivileged(Native Method)&lt;br/&gt;
        at apm.&amp;lt;init&amp;gt;(Unknown Source)&lt;br/&gt;
        at jt.&amp;lt;clinit&amp;gt;(SourceFile:40)&lt;br/&gt;
        at eq.a(SourceFile:28)&lt;br/&gt;
        at ef.a(SourceFile:192)&lt;br/&gt;
        at cg.i(SourceFile:249)&lt;br/&gt;
        at cg.c(SourceFile:15)&lt;br/&gt;
        at ch.run(SourceFile:93)&lt;/p&gt;

&lt;p&gt;If I comment out the line enabling Bouncy Castle in java.security file I still get the same error. IMO this shouldn&apos;t happen as in commenting the line Bouncy Castle is not enabled. (I&apos;ve confirmed this with a simple test program showing BC wasn&apos;t available)&lt;/p&gt;

&lt;p&gt;However once I removed bcprov-jdk15on-147 from ext it the client worked.&lt;/p&gt;


&lt;p&gt;I see a few issues here.&lt;/p&gt;

&lt;p&gt;For some reason the java.security provider precedence is being ignored.&lt;/p&gt;

&lt;p&gt;Bouncy Castle is the last provider in my precedence list. Shouldn&apos;t it be using Sun, or what ever provider is working now instead of BC when it&apos;s enabled anyway?&lt;/p&gt;

&lt;p&gt;Even when BC is not enabled in the precedence chain in java.security Minecraft is using it anyway. How and why is this so?&lt;/p&gt;
</description>
                <environment>Windows 7 64bit&lt;br/&gt;
java version &amp;quot;1.7.0_07&amp;quot;&lt;br/&gt;
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)&lt;br/&gt;
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)&lt;br/&gt;
&lt;br/&gt;
running the jar via win shortcut with target&lt;br/&gt;
C:\Windows\System32\java.exe -Xmx1024M -Xms512M -cp Minecraft.jar net.minecraft.LauncherFrame</environment>
        <key id="19070">MC-6399</key>
            <summary>Won&apos;t login / doesnt respect JVM security provider settings (bouncy castle)</summary>
                <type id="1" iconUrl="https://bugs.mojang.com/secure/viewavatar?size=xsmall&amp;avatarId=18903&amp;avatarType=issuetype">Bug</type>
                                    <status id="5" iconUrl="https://bugs.mojang.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="7">Invalid</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="ensignr">Ross</reporter>
                        <labels>
                            <label>bouncycastle</label>
                            <label>connecting</label>
                            <label>digest</label>
                            <label>mappings</label>
                            <label>security</label>
                    </labels>
                <created>Sun, 6 Jan 2013 16:08:28 +0100</created>
                <updated>Sun, 6 Sep 2015 21:56:33 +0200</updated>
                            <resolved>Tue, 26 Nov 2013 21:15:57 +0100</resolved>
                                    <version>Minecraft 1.4.6</version>
                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="121442" author="talven81" created="Tue, 26 Nov 2013 21:15:57 +0100"  >&lt;p&gt;No response in 4 months, assuming no longer an issue.&lt;/p&gt;</comment>
                            <comment id="94405" author="bljat" created="Fri, 26 Jul 2013 00:38:24 +0200"  >&lt;p&gt;    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.&lt;/p&gt;</comment>
                            <comment id="61715" author="jwhardcastle" created="Sat, 20 Apr 2013 03:44:40 +0200"  >&lt;p&gt;I solved my issue.  Uninstalling Java completely (using the directions at &lt;a href=&quot;http://stikine.wordpress.com/2012/03/02/howto-remove-java/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://stikine.wordpress.com/2012/03/02/howto-remove-java/&lt;/a&gt;) and then reinstalling it from Apple fixed it.&lt;/p&gt;

&lt;p&gt;Prior to that, I did try installing Oracle Java 1.7, which wouldn&apos;t launch at all.&lt;/p&gt;</comment>
                            <comment id="61507" author="jwhardcastle" created="Fri, 19 Apr 2013 20:09:05 +0200"  >&lt;p&gt;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.).&lt;/p&gt;

&lt;p&gt;---- Minecraft Crash Report ----&lt;br/&gt;
// Quite honestly, I wouldn&apos;t worry myself about that.&lt;/p&gt;

&lt;p&gt;Time: 4/19/13 2:05 PM&lt;br/&gt;
Description: Exception in server tick loop&lt;/p&gt;

&lt;p&gt;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&lt;br/&gt;
	at asp.a(Unknown Source)&lt;br/&gt;
	at asp.a(Unknown Source)&lt;br/&gt;
	at asp.a(Unknown Source)&lt;br/&gt;
	at asq.run(Unknown Source)&lt;br/&gt;
	at java.security.AccessController.doPrivileged(Native Method)&lt;br/&gt;
	at asp.&amp;lt;init&amp;gt;(Unknown Source)&lt;br/&gt;
	at kl.&amp;lt;clinit&amp;gt;(SourceFile:40)&lt;br/&gt;
	at bjh.c(SourceFile:102)&lt;br/&gt;
	at net.minecraft.server.MinecraftServer.run(SourceFile:306)&lt;br/&gt;
	at gp.run(SourceFile:573)&lt;/p&gt;


&lt;p&gt;A detailed walkthrough of the error, its code path and all known details is as follows:&lt;br/&gt;
---------------------------------------------------------------------------------------&lt;/p&gt;

&lt;p&gt;&amp;#8211; System Details &amp;#8211;&lt;br/&gt;
Details:&lt;br/&gt;
	Minecraft Version: 1.5.1&lt;br/&gt;
	Operating System: Mac OS X (x86_64) version 10.8&lt;br/&gt;
	Java Version: 1.6.0_45, Apple Inc.&lt;br/&gt;
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Apple Inc.&lt;br/&gt;
	Memory: 508250944 bytes (484 MB) / 554369024 bytes (528 MB) up to 1069416448 bytes (1019 MB)&lt;br/&gt;
	JVM Flags: 3 total; -Xbootclasspath/a:/System/Library/PrivateFrameworks/JavaApplicationLauncher.framework/Resources/LauncherSupport.jar -Xms512M -Xmx1024M&lt;br/&gt;
	AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used&lt;br/&gt;
	Suspicious classes: No suspicious classes found.&lt;br/&gt;
	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0&lt;br/&gt;
	Profiler Position: N/A (disabled)&lt;br/&gt;
	Player Count: 0 / 8; []&lt;br/&gt;
	Type: Integrated Server (map_client.txt)&lt;br/&gt;
	Is Modded: Probably not. Jar signature remains and both client + server brands are untouched.&lt;/p&gt;</comment>
                            <comment id="60322" author="mustek" created="Mon, 15 Apr 2013 00:12:54 +0200"  >&lt;p&gt;Reopening, received the following crashlog via irc.&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;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 &lt;span class=&quot;code-keyword&quot;&gt;class &lt;/span&gt;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 &lt;span class=&quot;code-keyword&quot;&gt;class &lt;/span&gt;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)&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="59125" author="bljat" created="Sat, 6 Apr 2013 23:00:13 +0200"  >&lt;p&gt;No answer on querry, assuming not an issue anymore.&lt;/p&gt;</comment>
                            <comment id="54690" author="bljat" created="Sun, 17 Mar 2013 20:41:17 +0100"  >&lt;p&gt;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.&lt;/p&gt;</comment>
                            <comment id="36559" author="torabi" created="Sun, 13 Jan 2013 20:28:04 +0100"  >&lt;p&gt;Minecraft includes some Bouncy Castle code. So it&apos;s probably an interaction between the code embedded in Minecraft, and the external Bouncy Castle security provider. I don&apos;t have any idea which component the bug lies in though.&lt;/p&gt;</comment>
                            <comment id="33919" author="kumasasa" created="Mon, 7 Jan 2013 08:06:07 +0100"  >&lt;p&gt;Ok, got it. Reopened.&lt;/p&gt;</comment>
                            <comment id="33852" author="ensignr" created="Mon, 7 Jan 2013 01:06:50 +0100"  >&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;The issue here IS with Minecraft, and not the &quot;third party software&quot;, which for all intents and purposes is a part of the JVM.&lt;/p&gt;

&lt;p&gt;Minecraft is not only ignoring system settings it&apos;s using a provider that isn&apos;t even enabled. Hardly a problem with the 3rd party vendor. This is Minecraft&apos;s issue.&lt;/p&gt;</comment>
                            <comment id="33649" author="kumasasa" created="Sun, 6 Jan 2013 16:50:55 +0100"  >&lt;p&gt;This ticket is invalid as it relates to a modded or 3rd party client/server.&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Any non-standard client/server build needs to be taken up with the appropriate team, not Mojang.&lt;/li&gt;
	&lt;li&gt;Any plugin issues need to be addressed to the plugin creator.&lt;/li&gt;
	&lt;li&gt;This site is for addressing issues related to the base unmodded MineCraft.&lt;/li&gt;
&lt;/ul&gt;
</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10102">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="29213">MCL-32</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10500" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Confirmation Status</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10300"><![CDATA[Unconfirmed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_11700" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_11100" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Linked</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i0gqnr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>