<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:52:22 UTC 2024

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>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[JAVA-471] Internet connectivity + Java GlassFish + Connections</title>
                <link>https://jira.mongodb.org/browse/JAVA-471</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;I am accessing Mongo from Java. Using 2.7 Javadriver with Glassfish as server.&lt;/p&gt;

&lt;p&gt;Question I have is regarding a weired situation I am facing.&lt;/p&gt;

&lt;p&gt;When I dissconnect from internet, all the connections which are open(from java) are closed. I can see this on the mongo server log.&lt;/p&gt;

&lt;p&gt;When I connect back to internet, my glass fish server runs and when I try to do something it fails as all the connections are closed and it is not creating a new connection.&lt;/p&gt;

&lt;p&gt;Even I stop mongodb server and start it back doesn&apos;t work. I have to stop &amp;amp; start the glass fish server with mongo server works.&lt;/p&gt;

&lt;p&gt;Any Idea whats going on..&lt;/p&gt;</description>
                <environment>Windows7 64 bit</environment>
        <key id="24920">JAVA-471</key>
            <summary>Internet connectivity + Java GlassFish + Connections</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="jagadeshpaladugula">jagadesh paladugula</reporter>
                        <labels>
                    </labels>
                <created>Tue, 15 Nov 2011 13:46:30 +0000</created>
                <updated>Wed, 11 Sep 2019 19:12:54 +0000</updated>
                            <resolved>Tue, 15 Nov 2011 14:33:17 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="66792" author="jagadeshpaladugula" created="Tue, 15 Nov 2011 15:04:19 +0000"  >&lt;p&gt;Ok Thx. I appreciate for your time.&lt;/p&gt;</comment>
                            <comment id="66789" author="scotthernandez" created="Tue, 15 Nov 2011 14:55:53 +0000"  >&lt;p&gt;No, this is not a bug. It is issue with your machine (network) configuration.&lt;/p&gt;

&lt;p&gt;This has nothing to do with the mongo java driver nor mongodb and completely part of your network configuration for the local machine. I suggest you read up on networking, name resolution, or find someone to help you on that front.&lt;/p&gt;

&lt;p&gt;Using 127.0.0.1 will bypass all of these issues and may be a fine solution if you can&apos;t find other help, nor address the underlying network configuration.&lt;/p&gt;</comment>
                            <comment id="66786" author="jagadeshpaladugula" created="Tue, 15 Nov 2011 14:49:43 +0000"  >&lt;p&gt;Hey, its working when I give 127.0.0.1&lt;br/&gt;
But it fails when I give localhost. I think when I give localhost, internally it gets ip address.&lt;br/&gt;
Is this a bug. Not sure&lt;/p&gt;</comment>
                            <comment id="66776" author="scotthernandez" created="Tue, 15 Nov 2011 14:33:06 +0000"  >&lt;p&gt;Connect to 127.0.0.1 (loopback address) or get help from your network/sys-admin to address your machine connection issues.&lt;/p&gt;

&lt;p&gt;If you connect via an address which is not permanent then you will get issues like this, as you have found. &lt;/p&gt;</comment>
                            <comment id="66772" author="jagadeshpaladugula" created="Tue, 15 Nov 2011 14:22:21 +0000"  >&lt;p&gt;I connect to mongodb with localhost:27017.&lt;/p&gt;

&lt;p&gt;But, when I tried ipconfig, the ipaddress is(14.96.115.169) which is different form the above one and its changeing every time when I disconnect and connect.&lt;/p&gt;

&lt;p&gt;How should I solve this one&lt;/p&gt;</comment>
                            <comment id="66768" author="scotthernandez" created="Tue, 15 Nov 2011 14:09:10 +0000"  >&lt;p&gt;What does the machine network configuration look like, ips, subnets, and routes? Is this address (14.99.100.23) set via DHCP?&lt;/p&gt;

&lt;p&gt;I think you need to connect via localhost (127.0.0.1) or a private address with mongodb which isn&apos;t tied to your internet address.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="13835" name="stack trace.txt" size="6008" author="jagadeshpaladugula" created="Tue, 15 Nov 2011 13:46:30 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrhbj3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>14668</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>