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 » Multiphase Commit » .NET and Distributed Transaction

Post new topic  Reply to topic
 .NET and Distributed Transaction « View previous topic :: View next topic » 
Author Message
macpak
PostPosted: Wed Jul 31, 2013 7:34 am    Post subject: .NET and Distributed Transaction Reply with quote

Newbie

Joined: 31 Jul 2013
Posts: 2

Hello,

In our environment, we have a system that connects to the mq server, gets messages, processes them and saves data in ms sql db. We want all it go inside a distributed transaction. As a coordinator, we use MSDTC.
In our code, we open TransactionScope, create a connection,session,destination,consumer and then we receive a message. We do it all the time, 5 times a second or so. However, after some time of running, we get an exception:
Code:
XMS attempted to close a WebSphere MQ destination, but encountered an error. The destination might already be closed, or another thread may be performing an MQGET while close() is called.

Use the linked exception to determine the cause of this error. You may be able to perform the close() later.

   at IBM.XMS.Client.WMQ.WmqMessageConsumer.CheckNmqiCallSuccess(String messageid, String insert, String insertKey, Int32 completionCode, Int32 reason, NmqiEnvironment environment, String probeid, WmqCommonConnection commonConnection, Hconn hconn)

   at IBM.XMS.Client.WMQ.WmqConsumerShadow.Close()

   at IBM.XMS.Client.WMQ.WmqMessageConsumer.Close()

   at IBM.XMS.Client.Impl.XmsMessageConsumerImpl.Close()

   at IBM.XMS.Client.Impl.XmsMessageConsumerImpl.Dispose()

Linked Exception : CompCode: 2, Reason: 6109


We don't know what is going on, because we don't use threading here. Can anyone help ?
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Jul 31, 2013 7:55 am    Post subject: Re: .NET and Distributed Transaction Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

macpak wrote:
Can anyone help ?


So what does this yield when you look:

macpak wrote:
Use the linked exception to determine the cause of this error

_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
hughson
PostPosted: Wed Jul 31, 2013 9:18 am    Post subject: Re: .NET and Distributed Transaction Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1914
Location: Bay of Plenty, New Zealand

macpak wrote:
Code:
Linked Exception : CompCode: 2, Reason: 6109


We don't know what is going on, because we don't use threading here. Can anyone help ?

Link to Reason: 6109
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
macpak
PostPosted: Wed Jul 31, 2013 11:26 am    Post subject: Reply with quote

Newbie

Joined: 31 Jul 2013
Posts: 2

I've checked the reason, but it doesn't make much sense for me. It says
Quote:
The connection reference is null. A connection to an ImqQueueManager object is required
which doesn't make sense for me, because I get the exception when I'm trying to dispose the consumer. I was able to receive a message and then when I want to clean up my connection disappears ?
Back to top
View user's profile Send private message
hughson
PostPosted: Wed Jul 31, 2013 11:54 pm    Post subject: Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1914
Location: Bay of Plenty, New Zealand

macpak wrote:
I've checked the reason, but it doesn't make much sense for me. It says
Quote:
The connection reference is null. A connection to an ImqQueueManager object is required
which doesn't make sense for me, because I get the exception when I'm trying to dispose the consumer. I was able to receive a message and then when I want to clean up my connection disappears ?
If you believe you do still have a connection reference at the time your application is trying to close the consumer (which must have a connection reference in order to be used) then this may be worth reporting via a PMR.

Cheers
Morag
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Multiphase Commit » .NET and Distributed Transaction
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.