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 » javax.jms.JMSException: MQJMS3009

Post new topic  Reply to topic
 javax.jms.JMSException: MQJMS3009 « View previous topic :: View next topic » 
Author Message
APCGR
PostPosted: Mon Jan 21, 2002 12:46 pm    Post subject: Reply with quote

Newbie

Joined: 28 Oct 2001
Posts: 7

The following is client code that works on many MQServer Installations but we have two new installations where we have trouble. The new installations check out ok with PSIVTRUN admin tool bu not with this basic cookbook code??

At this point I would find a question refreshing and an answer unthinkable!!

Thanks for your help.


First is the code: (see further down for the exception)

protected void initializeJMS(boolean transacted, int clientType)
throws MQJMSTopicsClientException
{

MQTopicConnectionFactory factory = null;
TopicSession session = null;
TopicConnection conn = null;
Topic destination = null;
TopicPublisher producer = null;
TopicSubscriber consumer = null;

try
{
factory = new MQTopicConnectionFactory();
factory.setTransportType(JMSC.MQJMS_TP_CLIENT_MQ_TCPIP);
factory.setQueueManager(this.clientSpec_.getQueueManager());
factory.setHostName(this.clientSpec_.getHostname());
factory.setChannel(this.clientSpec_.getChannel());
factory.setPort(this.clientSpec_.getPort());

// Get a TopicConnection from the MQTopicConnectionFactory
conn = factory.createTopicConnection();
conn.start();

// Get a TopicSession - auto-acknowledge - and use the parameter to
// determine if it is transacted or not...

session = conn.createTopicSession(transacted, Session.AUTO_ACKNOWLEDGE);

destination = session.createTopic(this.clientSpec_.getQueueName());

// *** Exception is thrown in the next line ***
consumer = session.createSubscriber(destination);
// *** The next line is never reached ***
this.println("Subscriber Created, listening: "+destination.getTopicName());

}
catch(Exception e)
{
e.printStackTrace();
throw new MQJMSTopicsClientException("initializeJMS(): "+e.toString());
}
}

=============================================================================
results of e.printStackTrace();
javax.jms.JMSException: MQJMS3009: Failed to publish command to MQ queue
at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironm
ent.java:418)
at com.ibm.mq.jms.MQTopicSession.sendCommand(MQTopicSession.java:1431)
at com.ibm.mq.jms.MQTopicSession.sendCommand(MQTopicSession.java:1353)
at com.ibm.mq.jms.MQTopicSession.createSubscriber(MQTopicSession.java:49
1)
at com.ibm.mq.jms.MQTopicSession.createSubscriber(MQTopicSession.java:37
4)
at com.ibm.btv.MQClient.MQJMSTopicsClient.initializeJMS(MQJMSTopicsClien
t.java:108)
at com.ibm.btv.MQClient.MQJMSClient.connect(MQJMSClient.java:221)
at com.ibm.btv.ClientFW.ClientCollection.put(ClientCollection.java:20)
at com.ibm.btv.ClientFW.ClientCollection.initialized(ClientCollection.ja
va:99)
at com.ibm.btv.MQClient.MQJMSTopicsClient.initialized(MQJMSTopicsClient.
java:63)
at com.ibm.btv.MQClient.MQJMSTopicsClient.<init>(MQJMSTopicsClient.java:
5
at com.ibm.btv.MQPubSubClient.MQClientMainPanel.processSubscriber(MQClie
ntMainPanel.java:439)
at com.ibm.btv.MQPubSubClient.MQClientMainPanel.startStopButton_actionPe
rformed(MQClientMainPanel.java:261)
at com.ibm.btv.MQPubSubClient.MQClientMainPanel$3.actionPerformed(MQClie
ntMainPanel.java:102)
at javax.swing.AbstractButton.fireActionPerformed(Compiled Code)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra
ctButton.java:1101)
at javax.swing.DefaultButtonModel.fireActionPerformed(Compiled Code)
at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.
java:251)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
istener.java:217)

=====================
Additional Context:
Since it is impossible for anyone to know what is in my clientSpec_ I thought I would provide the actual resulting settings of the objects:
MQTopicConnectionFactory::
BrokerControlQueue:SYSTEM.BROKER.CONTROL.QUEUE
BrokerPubQueue:SYSTEM.BROKER.DEFAULT.STREAM
BrokerVersion:0
Channel:SYSTEM.DEF.SVRCONN
ClientID:null
Description:null
HostName:SMSTAGING.fishkill.ibm.com
Port:1414
QueueManager:SMSTGING
TransportType:1
Version:1

TopicConnection::
ClientID:null

TopicSession::
toString():com.ibm.mq.jms.MQTopicSession@c37dd705

Topic::
TopicName:topic://TOOL.SENSOR.COMMAND.STREAM


[ This Message was edited by: APCGR on 2002-01-21 13:46 ]
Back to top
View user's profile Send private message
APCGR
PostPosted: Mon Jan 21, 2002 5:41 pm    Post subject: Reply with quote

Newbie

Joined: 28 Oct 2001
Posts: 7

We found the cause of this problem. Upgrading or clients to the latest MA88 eliminated the error. Apparently we have different versions of MQServer. The latest MA88 works with all. Should have tried this first!!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » javax.jms.JMSException: MQJMS3009
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.