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
{
// *** Exception is thrown in the next line ***
consumer = session.createSubscriber(destination);
// *** The next line is never reached ***
this.println("Subscriber Created, listening: "+destination.getTopicName());
=============================================================================
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
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!!
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