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 » MQRC 2242

Post new topic  Reply to topic
 MQRC 2242 « View previous topic :: View next topic » 
Author Message
Hi
PostPosted: Mon Nov 21, 2005 4:25 am    Post subject: MQRC 2242 Reply with quote

Newbie

Joined: 21 Nov 2005
Posts: 4

Dear Friends!

I have a problemb with WebSphere MQ 5.3 CSD07 in my program when get messages from Queue.

my enviroment below:
1) my program(service) is running on client (10.3.64.60)
2) MQ Server is on server (10.3.64.58(1515))

What I want :
my service is focusing on sending & receiving messages from MQ server and do some processes, but i can't get messages, i get reason code: 2195 i catch Exeption to Close Queue then get reason code 2242(Logical message not complete).

Notes: My program run well, before
My Code (VB.NET):

Code:

mqMsg = New MQMessage
        mqMsg.MessageFlags = MQMF_SEGMENTATION_ALLOWED
        mqMsg.CharacterSet = 1208 ' UTF-8

        'Set option to get message
        mqGetMsgOpts = New MQGetMessageOptions
        mqGetMsgOpts.Options = MQGMO_LOGICAL_ORDER
        mqGetMsgOpts.Options = mqGetMsgOpts.Options + MQC.MQGMO_SYNCPOINT
        mqGetMsgOpts.Options = mqGetMsgOpts.Options + MQC.MQGMO_ALL_SEGMENTS_AVAILABLE
        mqGetMsgOpts.Version = MQC.MQGMO_VERSION_2
        mqGetMsgOpts.MatchOptions = MQC.MQMO_MATCH_MSG_SEQ_NUMBER
        ' While message in queue
        While (mqe.Reason <> MQRC_NO_MSG_AVAILABLE And mqMsg.MessageFlags <> 7)
            Try
                mqQueue.Get(mqMsg, mqGetMsgOpts)
                If (mqMsg.Format.CompareTo(MQC.MQFMT_STRING) = 0) Then
                    str = mqMsg.ReadString(mqMsg.MessageLength)
                    strMessage = strMessage + str
                    If mqMsg.MessageFlags = 7 Then
                        blnHasMessage = True
                        Return strMessage
                    End If
                End If
            Catch mqe
                blnHasMessage = False
                ' report the error
                If (mqe.Reason <> MQRC_NO_MSG_AVAILABLE) Then
                    Throw New TDTTException("MQRC-" & mqe.Reason, "GetMessage.Get ", mqe.ToString)
                End If
            End Try
        End While
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Nov 21, 2005 4:38 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

There should be more information on your MQRC_UNEXPECTED_ERROR in the log for the queue manager or for MQ on the server system.

There may also be more information in the Event Log on the client machine.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Hi
PostPosted: Mon Nov 21, 2005 5:09 pm    Post subject: Reply with quote

Newbie

Joined: 21 Nov 2005
Posts: 4

OK, thanks for Reply.

Here Error log:

----- amqccita.c : 958 --------------------------------------------------------
11/17/2005 11:54:28
AMQ9206: Error sending data to host Webtincc (10.3.64.58 )

EXPLANATION:
An error occurred sending data over TCP/IP to Webtincc (10.3.64.58 ) This may
be due to a communications failure.
ACTION:
The return code from the TCP/IP(send) call was 10054 X('2746'). Record these
values and tell your systems administrator.
----- amqccita.c : 2052 ------------------------------------------------------
Back to top
View user's profile Send private message
wschutz
PostPosted: Mon Nov 21, 2005 5:31 pm    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

10054 is "Connection reset by peer". You need to look at the logs on the server to see whats happening.
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
Hi
PostPosted: Mon Nov 21, 2005 7:11 pm    Post subject: Reply with quote

Newbie

Joined: 21 Nov 2005
Posts: 4

Logs on My Server:

----- amqrfpta.c : 334 --------------------------------------------------------
11/17/2005 11:37:08
AMQ9496: Channel ended by a remote exit.

EXPLANATION:
Channel program 'THU7010000.SVR.CHAN' was ended because the channel exit at the
remote end requested it.
ACTION:
Examine the error logs at the remote end of the channel to see the reason why
the remote exit ended the channel.
----- amqrfpta.c : 334 --------------------------------------------------------
Back to top
View user's profile Send private message
hopsala
PostPosted: Mon Nov 21, 2005 9:28 pm    Post subject: Reply with quote

Guardian

Joined: 24 Sep 2004
Posts: 960

Well, the problem is quite clear then, neh? Your channel exit had, for some reason, stopped the channel - review your exit code and logs.

And don't forget:
Hi wrote:
Examine the error logs at the remote end of the channel to see the reason why the remote exit ended the channel.
Back to top
View user's profile Send private message
wschutz
PostPosted: Tue Nov 22, 2005 2:32 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Hopsala:
I wonder.... the "remote end" from the server's perspective is the java client application.

"Hi": the timestamps in the log samples are off... is that okay?
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
Hi
PostPosted: Tue Nov 22, 2005 3:23 am    Post subject: Reply with quote

Newbie

Joined: 21 Nov 2005
Posts: 4

the timestamp when i get error is 11/17/2005 07:38:30 (MQRC 2195 - Unexpected error occurred).

the timestamp in the log sample is 11/17/2005 11:37:08

Note: the "remote end" from the server's perspective is the C client application.

Thanks very much!
Back to top
View user's profile Send private message
hopsala
PostPosted: Tue Nov 22, 2005 10:09 am    Post subject: Reply with quote

Guardian

Joined: 24 Sep 2004
Posts: 960

wschutz wrote:
Hopsala:
I wonder.... the "remote end" from the server's perspective is the java client application.

Yes, I had intended that Hi has to look at the exit error logs if there are any... I was a bit unclear I guess.

Hi (confusing nick, that), a four hours difference in log entries means they are probably unrelated; you must be clear here if you want us to help you - run you application again, and post the messages that appear in the log at that time, and only these. Older messages, or messages half an hour later are irrelevant for now.
Regardless, you still have to check what's gone wrong with your exit; It might be unrelated to the 2195 RC, but it's a problem nonetheless.

One last option - what is your client and server CSD level? you said CSD07 but I don't know to which you were referring. If you're using CSD08 or 09 on either side then that's your problem - see CSD08 AND CSD09
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 » MQRC 2242
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.