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 » General IBM MQ Support » DetailedIllegalStateException: JMSCC0020

Post new topic  Reply to topic
 DetailedIllegalStateException: JMSCC0020 « View previous topic :: View next topic » 
This session is closed. An application called a method that must not be used after the session is closed?
DetailedIllegalStateException: JMSCC0020
0%
 0%  [ 0 ]
This session is closed. An application called a method that must not be used after the session is closed
100%
 100%  [ 1 ]
Total Votes : 1
Author Message
kasturi.s
PostPosted: Thu Jun 27, 2013 5:33 am    Post subject: DetailedIllegalStateException: JMSCC0020 Reply with quote

Newbie

Joined: 27 Jun 2013
Posts: 1

Hi,

Im getting this exception occationally after a few messages are successfully pushed to the queue. My code looks like this. Please suggest what can be done to avoid this error.
BytesMessage message = queueSession.createBytesMessage();
byte[] b = msg.getBytes();
message.writeBytes(b);
message.setJMSCorrelationID(correlationID);
message.setJMSExpiration(2000000);
message.setIntProperty("JMS_IBM_MsgType", com.ibm.mq.MQC.MQMT_REPLY);
queueSender.send(msg);
queueConnection.stop();
queueSender.close();
queueSession.close();
queueConnection.close();

Error:
com.ibm.msg.client.jms.DetailedIllegalStateException: JMSCC0020: This session is closed. An application called a method that must not be used after the session is closed.
Ensure that the session is not closed before calling the method.
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 » General IBM MQ Support » DetailedIllegalStateException: JMSCC0020
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.