Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4871782

JMX check on attribute type prevents Tomcat from starting

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 5.0
    • 5.0
    • core-svc
    • None
    • tiger
    • generic
    • generic

      Starting Tomcat 4.1.24 produces this exception:

      "ServerLifecycleListener: createMBeans: MBeanException
      java.lang.IllegalArgumentException: Not a valid Java type name:
      java.lang.String[]
              at
      javax.management.MBeanInfo.mustBeValidJavaTypeName(MBeanInfo.java:472)
              at
      javax.management.MBeanAttributeInfo.<init>(MBeanAttributeInfo.java:107)
              at
      javax.management.modelmbean.ModelMBeanAttributeInfo.<init>(ModelMBean
      AttributeInfo.java:233)
              at
      org.apache.commons.modeler.AttributeInfo.createAttributeInfo(Attribut
      eInfo.java:236)"

      The problem is that JMX 1.2 (the version included in Tiger) expects the declared type string for an array-valued attribute to use the JVM syntax, e.g. "[Ljava.lang.String;", while Tomcat is using the Java language syntax "java.lang.String[]". The JMX spec doesn't clearly specify whether one or the other is correct, and prior to JMX 1.2 the RI didn't check this string at all.

      Note: the subcategory of this bug should be classes_jmx, but that doesn't exist yet.

            dfuchs Daniel Fuchs
            emcmanus Eamonn McManus
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: