2 Replies Latest reply on Sep 8, 2006 6:15 AM by markash

    JMX: UndeclaredThrowableException

    jimmy_ivanov

      Hi,

      I am trying to access JMX information from jboss 4.0.0 in a standalone
      java client. When I call:

      MBeanInfo mbeanInfo = mejb.getMBeanInfo(objectName);

      I get error:

      java.lang.reflect.UndeclaredThrowableException
      at $Proxy1.getMBeanInfo(Unknown Source)
      .....
      Caused by: java.io.InvalidClassException: org.apache.xerces.dom.AttributeMap; local class incompatib
      le: stream classdesc serialVersionUID = 8872606282138665383, local class serialVersionUID = -7315359
      030009568370

      I use Sun's java 1.4.2_06-b03 on Windows xp.

      What do I miss?
      Any information would be appreciated. Thanks in advance.

        • 1. Re: JMX: UndeclaredThrowableException
          dimitris

          You probably use a different version of xercesImpl.jar on the client, with that on the server.

          • 2. Re: JMX: UndeclaredThrowableException
            markash

            Good Day,

            I am getting the

            java.lang.reflect.UndeclaredThrowableException
            at $Proxy1.getMBeanInfo(Unknown Source)

            from the MEJB in JBoss 4.0.4 GA when the MBean throws an IOException. According to the code the XMBean throws an MBeanException in this case but somewhere along the line it is converted to an UndeclaredThrowableException.

            This causes a problem because UndeclaredThrowableException is a runtime exception.

            Regards,
            Mark P Ashworth