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

JOPR-216 - jboss-as-5 plugin: Invoking any of the "list*Messages" operations for Topics and Queues that have multiple messages does not produce the correct results

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • EAP 5.0.0.CR3
    • EAP 5.0.0.CR1
    • Consoles
    • None

      When invoking the "listAllMessages", "listDurableMessages", and "listNonDurableMessages" operations for Topics and Queues that have multiple messages, either an empty table is displayed or a ClassCastException occurs.

      Steps to reproduce:

      Create a new Queue. Send some messages to the Queue. Invoke the "List All Messages" operation, specifying a selector. The operation fails with the following error:

      java.lang.ClassCastException: org.rhq.core.domain.configuration.definition.PropertyDefinitionSimple
      at org.rhq.plugins.jbossas5.adapter.api.AbstractPropertyMapAdapter.convertToProperty(AbstractPropertyMapAdapter.java:35)
      at org.rhq.plugins.jbossas5.adapter.impl.configuration.AbstractPropertyMapToCompositeValueAdapter.populatePropertyFromMetaValue(AbstractPropertyMapToCompositeValueAdapter.java:99)
      at org.rhq.plugins.jbossas5.adapter.impl.configuration.AbstractPropertyMapToCompositeValueAdapter.populatePropertyFromMetaValue(AbstractPropertyMapToCompositeValueAdapter.java:50)
      at org.rhq.plugins.jbossas5.adapter.api.AbstractPropertyMapAdapter.convertToProperty(AbstractPropertyMapAdapter.java:40)
      at org.rhq.plugins.jbossas5.adapter.api.AbstractPropertyMapAdapter.convertToProperty(AbstractPropertyMapAdapter.java:35)
      at org.rhq.plugins.jbossas5.adapter.impl.configuration.PropertyListToCollectionValueAdapter.populatePropertyFromMetaValue(PropertyListToCollectionValueAdapter.java:95)
      at org.rhq.plugins.jbossas5.adapter.impl.configuration.PropertyListToCollectionValueAdapter.populatePropertyFromMetaValue(PropertyListToCollectionValueAdapter.java:47)
      at org.rhq.plugins.jbossas5.adapter.api.AbstractPropertyListAdapter.convertToProperty(AbstractPropertyListAdapter.java:40)
      at org.rhq.plugins.jbossas5.adapter.api.AbstractPropertyListAdapter.convertToProperty(AbstractPropertyListAdapter.java:35)
      at org.rhq.plugins.jbossas5.util.ConversionUtils.convertManagedOperationResults(ConversionUtils.java:433)
      at org.rhq.plugins.jbossas5.ManagedComponentComponent.invokeOperation(ManagedComponentComponent.java:162)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:511)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
      at java.util.concurrent.FutureTask.run(FutureTask.java:123)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      at java.lang.Thread.run(Thread.java:595)

      However, invoking the same operation from the JMX Console succeeds and the output is something like:

      [JBossMessage[20375444816625664]:PERSISTENT, JBossMessage[20375444816805889]:PERSISTENT]

              rhn-engineering-lkrejci Lukas Krejci
              ozizka_jira Ondrej Zizka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: