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 » Raise Completion Code 2, Reason 2033 when i publish a stream

Post new topic  Reply to topic
 Raise Completion Code 2, Reason 2033 when i publish a stream « View previous topic :: View next topic » 
Author Message
szjohn
PostPosted: Wed Nov 07, 2001 1:53 am    Post subject: Reply with quote

Newbie

Joined: 06 Nov 2001
Posts: 1

When I publish a streammessage,it raise a error(with link exception):

com.ibm.mq.MQException: Completion Code 2, Reason 2033
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
com.ibm.mq.MQException(int, int, java.lang.Object)
void com.ibm.mq.MQQueue.get(com.ibm.mq.MQMessage,
com.ibm.mq.MQGetMessageOptions)
void com.ibm.mq.jms.MQTopicSession.getBrokerResponse(com.ibm.mq.MQMessage)
void com.ibm.mq.jms.MQTopicPublisher.checkBrokerResponse()
void com.ibm.mq.jms.MQTopicPublisher.publish(javax.jms.Message, int, int,
long)
void com.ibm.mq.jms.MQTopicPublisher.publish(javax.jms.Message)
void test.TestClient.onSendMessage(java.awt.event.ActionEvent,
java.lang.String)
void
test.TestClient$IvjEventHandler.actionPerformed(java.awt.event.ActionEvent)
void java.awt.Button.processActionEvent(java.awt.event.ActionEvent)
void java.awt.Button.processEvent(java.awt.AWTEvent)
void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
boolean java.awt.EventDispatchThread.pumpOneEvent()
void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)
void java.awt.EventDispatchThread.run()

com.ibm.mq.jms.NoBrokerResponseException: MQJMS5053: *** the broker isn't
running,please use¡®strmqbrk¡¯to start it***
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
javax.jms.JMSException(java.lang.String)
com.ibm.mq.jms.NoBrokerResponseException(java.lang.String)
void com.ibm.mq.jms.MQTopicSession.getBrokerResponse(com.ibm.mq.MQMessage)
void com.ibm.mq.jms.MQTopicPublisher.checkBrokerResponse()
void com.ibm.mq.jms.MQTopicPublisher.publish(javax.jms.Message, int, int,
long)
void com.ibm.mq.jms.MQTopicPublisher.publish(javax.jms.Message)
void test.TestClient.onSendMessage(java.awt.event.ActionEvent,
java.lang.String)
void
test.TestClient$IvjEventHandler.actionPerformed(java.awt.event.ActionEvent)
void java.awt.Button.processActionEvent(java.awt.event.ActionEvent)
void java.awt.Button.processEvent(java.awt.AWTEvent)
void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
boolean java.awt.EventDispatchThread.pumpOneEvent()
void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)
void java.awt.EventDispatchThread.run()



And my source code is:
........
pub = session.createPublisher(topic);
msg = session.createStreamMessage();
msg.setStringProperty(getfdlSelect().getFile());
fis = new FileInputStream(new File(gettfdFile().getText()));
while ((count = fis.read(buffer)) > 0) {
msg.writeBytes(buffer);
}
pub.publish(msg);
pub.close();
} catch (JMSException jmse) {
Exception e = jmse.getLinkedException();
if (e != null)
e.printStackTrace();
jmse.printStackTrace();
} catch (Exception oe) {
oe.printStackTrace();
} finally {
return;
}

I sure the message was sended successful that i can find it in the queue by explorer.
why,what i would do?

Anyone seen that before. thank for any pointers.


john bao

Back to top
View user's profile Send private message
bower5932
PostPosted: Wed Nov 07, 2001 10:55 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

I'm not a pub/sub person, but your stack trace looks like it tried to publish the message. It then looks like it is waiting for a response back from the broker and it didn't get it (2033 is no message available). I would check to make sure that the broker is running: strmqbrk -m qmgrname.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Raise Completion Code 2, Reason 2033 when i publish a stream
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.