ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » createTopicConnection throws ClassCastException in applet

Post new topic  Reply to topic
 createTopicConnection throws ClassCastException in applet « View previous topic :: View next topic » 
Author Message
SSachdeva
PostPosted: Fri Jan 16, 2004 12:03 pm    Post subject: createTopicConnection throws ClassCastException in applet Reply with quote

Apprentice

Joined: 04 Apr 2002
Posts: 33

Hi,
I am trying to run the following code as a signed java applet on a local browser, but I keep getting the Exception that follows the code. Any ideas?? - Any help is greatly appreciated.

CODE
m_mqTopicfactory = new MQTopicConnectionFactory();
//Set using client mode connection
m_mqTopicfactory.setTransportType( C.MQJMS_TP_CLIENT_MQ_TCPIP );
// Set host name for the broker
m_mqTopicfactory.setHostName( "PLAP32" );
// Set port for the MQ listener for the broker
m_mqTopicfactory.setPort( 1414 );
// Set the MQ channel for the broker
m_mqTopicfactory.setChannel( "SYSTEM.DEF.SVRCONN" );
// Indicate that this is a v2 broker
m_mqTopicfactory.setBrokerVersion( JMSC.MQJMS_BROKER_V2 );
// Set Queue Manager for the connection
m_mqTopicfactory.setQueueManager( "WMQIV5" );
// Indicate that the broker is to be the subscription store
m_mqTopicfactory.setSubscriptionStore(JMSC.MQJMS_SUBSTORE_BROKER);
// Create the Connection
m_connection = m_mqTopicfactory.createTopicConnection();
// Start the connection with the Broker
m_connection.start();
// Create a session with the broker.
subSession = m_connection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
// Create a topic for subscribing upon
Topic subTopic = subSession.createTopic("rfidtaglist");
((MQTopic)subTopic).setBrokerVersion(JMSC.MQJMS_BROKER_V2);
subscriber = subSession.createSubscriber( subTopic );
END CODE

EXCEPTION
java.lang.ClassCastException: com/ibm/mq/jms/services/NullTraceAdapter
at com/ibm/mq/jms/services/Trace.checkForTurnTracingOn
at com/ibm/mq/jms/MQConnection.<init>
at com/ibm/mq/jms/MQTopicConnection.<init>
at com/ibm/mq/jms/MQTopicConnection.<init>
at com/ibm/mq/jms/MQTopicConnectionFactory.createMQTopicConnection
at com/ibm/mq/jms/MQTopicConnectionFactory.createTopicConnection
at com/promenix/rfid/RFIDJMSSubscriber.initialise
at com/promenix/rfid/RFIDJMSSubscriber.start
at com/ms/applet/AppletPanel.securedCall0
at com/ms/applet/AppletPanel.securedCall
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.run
at java/lang/Thread.run

END EXCEPTION

Thanks,
Shammy
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » createTopicConnection throws ClassCastException in applet
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.