Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-462

JMX Connector ignores port number

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • 1.0-M2
    • 1.0-M5
    • general
    • None

    Description

      The JMX connector processes a port number in a URI like this:

      jmx:rmi://localhost:1234561234/jndi/rmi:/JMXConnector

      For example, if you put in a port number that's too large, you get:

      Bad port number: "123456123434526": java.lang.NumberFormatException: For input string: "123456123434526"

      However, the connector will connect no matter what port number you specify in the URI. I suspect that means that if the server side is listening on a different port, it will not connect, no matter what port you use. But as I don't know how to change the port that the server listens on, it's difficult to test. Perhaps it's going for the rmiregistry on 1099?

      In any case, to test this, try to run:

      java -jar bin/deployer.jar --uri deployer:geronimo:jmx:rmi://localhost:1234561234/jndi/rmi:/JMXConnector list-targets

      and just fool with the port numbers in the URI

      Attachments

        Activity

          People

            Unassigned Unassigned
            ammulder Aaron Mulder
            Votes:
            3 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: