Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-5660

java.net.preferIPv4Stack=true should be set by default in case Java 7+ or JMX is used with Nexus

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3, 2.4
    • Fix Version/s: 2.5
    • Component/s: Transport
    • Labels:

      Description

      According to NEXUS-5218 this was done - however I could find no record of the actual commit, by searching git history and grepping source code it. Connecting to nexus 2.4.0-08 with visual vm does not show the property being set either.

      In the case of running with Java 7 and inside a network with a router that does not understand IPv6, this could present an issue.

      You may also run into issues connecting to the JMX interface (even locally) because by default JMX binds to IPv6 if it's available. This case is also solved by passing '-Djava.net.preferIPv4Stack=true' explicitly as a JVM option. This will prompt JMX to bind to a given IPv4 IP address.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jdillon Jason Dillon
              Reporter:
              plynch Peter Lynch
              Last Updated By:
              Peter Lynch Peter Lynch
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title