Description of problem: In TCK6 com/sun/ts/tests/jms/ee/all/queuetests/QueueTests.java#queueBrowserMsgsRemainOnQueueTest, the test throws a ClassCastException: [javatest.batch] 04:26:38,539 INFO [stdout] (Thread-59) 09-19-2013 04:26:38: SVR: Checking for 3 messages with QueueBrowser [javatest.batch] 04:26:39,868 INFO [stdout] (Thread-59) 09-19-2013 04:26:39: SVR-ERROR: java.lang.ClassCastException: com.tibco.tibjms.TibjmsObjectMessage cannot be cast to javax.jms.TextMessage [javatest.batch] 04:26:39,868 INFO [stdout] (Thread-59) at com.sun.ts.tests.jms.ee.all.queuetests.QueueTests.queueBrowserMsgsRemainOnQueueTest(QueueTests.java:705) [javatest.batch] 04:26:39,869 INFO [stdout] (Thread-59) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [javatest.batch] 04:26:39,869 INFO [stdout] (Thread-59) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [javatest.batch] 04:26:39,869 INFO [stdout] (Thread-59) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [javatest.batch] 04:26:39,869 INFO [stdout] (Thread-59) at java.lang.reflect.Method.invoke(Method.java:601) [javatest.batch] 04:26:39,869 INFO [stdout] (Thread-59) at com.sun.ts.lib.harness.EETest.run(EETest.java:495) [javatest.batch] 04:26:39,869 INFO [stdout] (Thread-59) at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:113) The messages that are sent are TextMessages (instances of com.tibco.tibjms.TibjmsTextMessage) and the message received by the queue receiver with the message selector is correct (instance of com.tibco.tibjms.TibjmsTextMessage). However, the messages received by the QueueBrowser does not have the same type (instances of com.tibco.tibjms.TibjmsObjectMessage) and the class cast to TextMessage fails. The generic RA does not intervene in the QueueBrowser code and this issue looks to be located in TIBCO code. How reproducible: Always Steps to Reproduce: 1. use the latest generic JMS RA from https://github.com/jms-ra/generic-jms-ra 2. setup TCK6 + TIBCO EMS 3. run the failing test: $TS_HOME/src/com/sun/ts/tests/jms/ee/all/queuetests$ ant runclient -Dtest.client=QueueTests -Dtest=queueBrowserMsgsRemainOnQueueTest_from_ejb Actual results: The test fails because of a ClassCastException. Expected results: The test must pass. Additional info:
the test is passing in the latest run... closing the bug.