Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Not a Problem
    • Affects Version/s: 4.1.2, 5.2.0
    • Fix Version/s: 5.3.0
    • Component/s: Geronimo Integration
    • Labels:
      None
    • Environment:

      Windows XP + SUN JDK 1.5

    • Patch Info:
      Patch Available

      Description

      ActiveMQ server socket created with TcpTransportServer can't bind to localhost or actuall IP correctly.

      • expected result:
        • localhost ---> bind to 127.0.0.1
        • actual IP ----> bind to actual IP
      • actual result:
        • localhost ---> bind to 0.0.0.0
        • actual IP ----> bind to 0.0.0.0
      "org.apache.activemq.transport.tcp.TcpTransportServer"
        
            InetAddress addr = InetAddress.getByName(host);
      
             try {
                 if (host.trim().equals("localhost") || \
      addr.equals(InetAddress.getLocalHost())) {  //#1 start the socket with 0.0.0.0
                  this.serverSocket = \
      serverSocketFactory.createServerSocket(bind.getPort(), backlog);  }
                 else {
                  //#2  start the socket with the ip spcified in addr.
                  this.serverSocket = \
      serverSocketFactory.createServerSocket(bind.getPort(), backlog, addr);  }
      

      Since if you config the real IP as a host setting, \
      addr.equals(InetAddress.getLocalHost()) will allways be true so that the #1 will be used to start the socket with 0.0.0.0 by default. Which causes a defect of geronimo: https://issues.apache.org/jira/browse/GERONIMO-4404

      1. AMQ-2094.patch
        1.0 kB
        Shawn Jiang

        Issue Links

          Activity

          Timothy Bish made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Assignee David Jencks [ djencks ]
          Resolution Not A Problem [ 8 ]
          Jeff Turner made changes -
          Project Import Fri Nov 26 22:32:02 EST 2010 [ 1290828722158 ]
          c obrien made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Przemek Bruski made changes -
          Link This issue is related to AMQ-2771 [ AMQ-2771 ]
          Gary Tully made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Gary Tully made changes -
          Link This issue is duplicated by AMQ-2319 [ AMQ-2319 ]
          Colin MacNaughton made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          David Jencks made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 5.3.0 [ 11914 ]
          David Jencks made changes -
          Assignee David Jencks [ djencks ]
          Shawn Jiang made changes -
          Patch Info [Patch Available]
          Shawn Jiang made changes -
          Field Original Value New Value
          Attachment AMQ-2094.patch [ 17582 ]
          Shawn Jiang created issue -

            People

            • Assignee:
              Unassigned
              Reporter:
              Shawn Jiang
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development