<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 11:58:40 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-2670] Java SocketException on shutdown</title>
                <link>https://bugs.mojang.com/browse/MC-2670</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;p&gt;Every time I issue the &quot;stop&quot; command, this happens:&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;java.net.SocketException: Socket closed
        at java.net.PlainSocketImpl.socketAccept(Native Method)
        at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:398)
        at java.net.ServerSocket.implAccept(ServerSocket.java:522)
        at java.net.ServerSocket.accept(ServerSocket.java:490)
        at hu.run(SourceFile:66)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This happens every time I stop the server, I only run bleeding edge builds on this server, but it is annoying that they don&apos;t make clean exits.  Additionally, either it isn&apos;t working or doesn&apos;t exist, but sigint quits java, not minecraft, which makes writing a good init.d script nigh impossible.&lt;/p&gt;</description>
                <environment>Ubuntu Server 12.04 LTS with openJDK 7.  I can supply build numbers upon request.</environment>
        <key id="14436">MC-2670</key>
            <summary>Java SocketException on shutdown</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="1">Fixed</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="maldridge">Michael Aldridge</reporter>
                        <labels>
                    </labels>
                <created>Sat, 10 Nov 2012 04:21:55 +0100</created>
                <updated>Sat, 7 Feb 2015 13:32:35 +0100</updated>
                            <resolved>Sat, 11 Jan 2014 21:25:37 +0100</resolved>
                                    <version>Minecraft 1.4.4</version>
                    <version>Minecraft 1.6.2</version>
                    <version>Minecraft 13w39b</version>
                    <version>Minecraft 1.7.4</version>
                                    <fixVersion>Minecraft 1.7.4</fixVersion>
                                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="135240" author="kwerti" created="Sat, 25 Jan 2014 20:07:38 +0100"  >&lt;p&gt;An error like this is still present in 1.7.4, but inconsistent. (sometimes it shows, sometimes not)&lt;/p&gt;</comment>
                            <comment id="121396" author="leizh" created="Tue, 26 Nov 2013 20:03:36 +0100"  >&lt;p&gt;Talven81, my 1.7.2 server is not throwing exceptions on shutdown anymore.&lt;/p&gt;</comment>
                            <comment id="121392" author="talven81" created="Tue, 26 Nov 2013 19:53:48 +0100"  >&lt;p&gt;Is this still a concern in the &lt;em&gt;current Minecraft version&lt;/em&gt; &lt;b&gt;1.7.2&lt;/b&gt; / Launcher version &lt;b&gt;1.3.4&lt;/b&gt; ? If so, please &lt;em&gt;update the affected versions&lt;/em&gt; in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.&lt;/p&gt;</comment>
                            <comment id="108443" author="xpaw" created="Thu, 3 Oct 2013 16:36:15 +0200"  >&lt;p&gt;This is still happening on latest snapshot.&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;[14:34:09] [Server Listen &lt;span class=&quot;code-object&quot;&gt;Thread&lt;/span&gt;/ERROR]: Exception handling pending connection
java.net.SocketException: Socket closed
        at java.net.PlainSocketImpl.socketAccept(Native Method) ~[?:1.7.0_25]
        at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:398) ~[?:1.7.0_25]
        at java.net.ServerSocket.implAccept(ServerSocket.java:530) ~[?:1.7.0_25]
        at java.net.ServerSocket.accept(ServerSocket.java:498) ~[?:1.7.0_25]
        at jt.run(SourceFile:66) [minecraft_server.jar:?]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="96142" author="kumasasa" created="Thu, 1 Aug 2013 00:14:45 +0200"  >&lt;p&gt;Ok, reopened.&lt;/p&gt;</comment>
                            <comment id="96045" author="leizh" created="Wed, 31 Jul 2013 19:51:14 +0200"  >&lt;p&gt;Agree with Michael. How could this be intended?? You should catch the exception and give a better message.&lt;/p&gt;</comment>
                            <comment id="69395" author="maldridge" created="Tue, 28 May 2013 04:11:25 +0200"  >&lt;p&gt;it is intended to throw errors on shutdown?  In my experience, good code doesn&apos;t do that!  I can look into it with oracle java, but seeing as that is EOL for my platform, I was trying to migrate away from it.&lt;/p&gt;</comment>
                            <comment id="69263" author="gravious" created="Mon, 27 May 2013 20:13:58 +0200"  >&lt;p&gt;It is a SocketException, therefore it is thrown inside of a &apos;try&apos;-loop, most definitely something that is not intended to be there.&lt;/p&gt;

&lt;p&gt;Also, perhaps the title should be changed to &quot;Java SocketException on shutdown&quot;, as I wasn&apos;t able to find it by searching for those keywords.&lt;/p&gt;</comment>
                            <comment id="20229" author="kumasasa" created="Sat, 10 Nov 2012 09:22:36 +0100"  >&lt;p&gt;This message is just telling you &quot;Socket closed&quot; nothing else. There is no error, this is normal.&lt;/p&gt;</comment>
                            <comment id="20178" author="selbram" created="Sat, 10 Nov 2012 04:30:30 +0100"  >&lt;p&gt;Do you get the same error with Oracle Java? Better question, Would you be willing to test Oracle Java to see if it gives the same error? &lt;img class=&quot;emoticon&quot; src=&quot;https://bugs.mojang.com/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10102">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="28751">MC-13575</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="32550">MC-16653</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="33240">MC-17244</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="11336">MC-91</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10103">
                    <name>Relates</name>
                                                                <inwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="25060">MC-10976</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>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i04ykv:</customfieldvalue>

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