Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-10729

MXBeanUtils assuming Type == Class for ParameterizedType causing ClassCastException

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • EAP_EWP 5.3.0.ER1
    • EAP_EWP 5.2.0
    • JMX
    • None
    • Release Notes
    • Hide
      Previous versions of JBoss EAP 5 could sometimes throw a ClassCastException if the ParameterizedType was not a collection or map. This was because the product asssumed the ParameterizedType was a Class, which would lead to a failure and the exception. This issue has been resolved in this release.
      Show
      Previous versions of JBoss EAP 5 could sometimes throw a ClassCastException if the ParameterizedType was not a collection or map. This was because the product asssumed the ParameterizedType was a Class, which would lead to a failure and the exception. This issue has been resolved in this release.
    • Documented as Resolved Issue
    • NEW

    Description

      When a ParameterizedType is not a collection, map, ... JBoss assumes it is a Class and fails with the ClassCastException below. ParameterizedType should get the rawType from ParameterizedType for the Class

      Caused by: java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl cannot be cast to java.lang.Class
      at org.jboss.mx.mxbean.MXBeanUtils.getOpenType(MXBeanUtils.java:98)
      at org.jboss.mx.mxbean.MXBeanMetaData.buildParameter(MXBeanMetaData.java:332)
      at org.jboss.mx.mxbean.MXBeanMetaData.buildConstructor(MXBeanMetaData.java:318)
      at org.jboss.mx.mxbean.MXBeanMetaData.buildConstructors(MXBeanMetaData.java:302)
      at org.jboss.mx.mxbean.MXBeanMetaData.build(MXBeanMetaData.java:199)
      ... 150 more

      Attachments

        Activity

          People

            rhn-support-bmaxwell Brad Maxwell
            rhn-support-bmaxwell Brad Maxwell
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: