Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-8407

JBoss AS 6 JMXConnector fails to start with IPv6

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.0.0.CR1
    • None
    • JMX
    • None

      due to MalformedURLException. I'll attach the full server.log for reference.

      Also note that the AS server start scripts,
      14:15:33,367 INFO [SnmpAgentService] SNMP agent going active
      14:15:33,383 ERROR [TrapEmitter] SNMP send error for localhost/127.0.0.1:1162: <java.security.InvalidParameterException: Buffer overflow error converting IP address>
      14:15:33,640 WARN [InvokerLocator] Host resolves to null in socket://3ffe:ffff:100:f101::1:3873?timeout=300000. Perhaps the host contains an invalid character. See http://www.ietf.org/rfc/rfc2396.txt.
      14:15:34,060 WARNING [FileConfigurationParser] AIO wasn't located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal
      14:15:34,374 INFO [JMXConnector] starting JMXConnector on host 3ffe:ffff:100:f101::1:1090
      14:15:34,393 ERROR [JMXConnector] Could not start JMXConnector: java.net.MalformedURLException: Bad port number: "": java.lang.NumberFormatException: For input string: ""
      at javax.management.remote.JMXServiceURL.<init>(JMXServiceURL.java:193) [:1.6.0_13]
      at org.jboss.system.server.jmx.JMXConnector.start(JMXConnector.java:143) [:6.0.0.20100721-M4 (Build SVNTag:JBoss_6.0.0.20100721-M4 date: 20100723)]

      Note that the start scripts set java.net.preferIPv4Stack=true:

      1. Force IPv4 on Linux systems since IPv6 doesn't work correctly with jdk5 and lower
        if [ "$linux" = "true" ]; then
        JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true"
        fi

              smarlow1@redhat.com Scott Marlow
              smcgowan@redhat.com Shelly McGowan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: