Announcement Announcement Module
Collapse
No announcement yet.
Get JMS messages via WebLogic MBeans Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Get JMS messages via WebLogic MBeans

    Dear all,

    i need to get messages stored in WLS JMS destination (queue/topic)
    by invoking method getMessages from WLS MBeans,
    But i got this error..

    Exception in thread "main" javax.management.RuntimeMBeanException: RuntimeException thrown by the invoke method of the Dynamic MBean
    at weblogic.rjvm.ResponseImpl.unmarshalReturn(Respons eImpl.java:211)
    at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicR emoteRef.java:224)
    at javax.management.remote.rmi.RMIConnectionImpl_922_ WLStub.invoke(Unknown Source)
    at weblogic.management.remote.common.RMIConnectionWra pper$15.run(ClientProviderBase.java:606)
    at weblogic.security.acl.internal.AuthenticatedSubjec t.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(Se curityManager.java:147)
    at weblogic.security.Security.runAs(Security.java:61)
    at weblogic.management.remote.common.RMIConnectionWra pper.invoke(ClientProviderBase.java:604)
    at javax.management.remote.rmi.RMIConnector$RemoteMBe anServerConnection.invoke(Unknown Source)
    at JmxClient.main(JmxClient.java:71)
    Caused by: java.lang.UnsupportedOperationException: getMessages(String, Integer) not valid for class weblogic.jms.backend.BEDestinationRuntimeMBeanImpl
    at weblogic.jms.backend.BEMessageManagementRuntimeDel egate.getMessages(BEMessageManagementRuntimeDelega te.java:117)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at weblogic.management.jmx.modelmbean.WLSModelMBean.i nvoke(WLSModelMBean.java:411)
    at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke (DynamicMetaDataImpl.java:213)
    at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDa taImpl.java:220)
    at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.invoke(DefaultMBeanServerInterceptor.java:815)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxM BeanServer.java:784)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServer InterceptorBase.invoke(WLSMBeanServerInterceptorBa se.java:149)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServer InterceptorBase.invoke(WLSMBeanServerInterceptorBa se.java:149)
    at weblogic.management.mbeanservers.internal.Security Interceptor.invoke(SecurityInterceptor.java:426)
    at weblogic.management.mbeanservers.internal.Authenti catedSubjectInterceptor$10.run(AuthenticatedSubjec tInterceptor.java:377)
    at weblogic.security.acl.internal.AuthenticatedSubjec t.doAs(AuthenticatedSubject.java:363)
    at weblogic.management.mbeanservers.internal.Authenti catedSubjectInterceptor.invoke(AuthenticatedSubjec tInterceptor.java:375)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServer .invoke(WLSMBeanServer.java:310)
    at javax.management.remote.rmi.RMIConnectionImpl.doOp eration(RMIConnectionImpl.java:1408)
    at javax.management.remote.rmi.RMIConnectionImpl.acce ss$100(RMIConnectionImpl.java:81)
    at javax.management.remote.rmi.RMIConnectionImpl$Priv ilegedOperation.run(RMIConnectionImpl.java:1245)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.management.remote.rmi.RMIConnectionImpl.doPr ivilegedOperation(RMIConnectionImpl.java:1348)
    at javax.management.remote.rmi.RMIConnectionImpl.invo ke(RMIConnectionImpl.java:782)
    at javax.management.remote.rmi.RMIConnectionImpl_WLSk el.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicS erverRef.java:550)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicSe rverRef.java:440)
    at weblogic.security.acl.internal.AuthenticatedSubjec t.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(Se curityManager.java:147)
    at weblogic.rmi.internal.BasicServerRef.handleRequest (BasicServerRef.java:436)
    at weblogic.rmi.internal.BasicServerRef.access$300(Ba sicServerRef.java:58)
    at weblogic.rmi.internal.BasicServerRef$BasicExecuteR equest.run(BasicServerRef.java:975)
    at weblogic.work.ExecuteThread.execute(ExecuteThread. java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java :181)

    I have invoked other mbeans methods and they work fine, i guess it relates with special return type of getMessages method. Any suggestion?
    Thanks before..

    --
    Regards,
Working...
X