Author |
Message
|
Hi |
Posted: Mon Nov 21, 2005 4:25 am Post subject: MQRC 2242 |
|
|
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 |
|
 |
jefflowrey |
Posted: Mon Nov 21, 2005 4:38 am Post subject: |
|
|
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 |
|
 |
Hi |
Posted: Mon Nov 21, 2005 5:09 pm Post subject: |
|
|
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 |
|
 |
wschutz |
Posted: Mon Nov 21, 2005 5:31 pm Post subject: |
|
|
 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 |
|
 |
Hi |
Posted: Mon Nov 21, 2005 7:11 pm Post subject: |
|
|
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 |
|
 |
hopsala |
Posted: Mon Nov 21, 2005 9:28 pm Post subject: |
|
|
 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 |
|
 |
wschutz |
Posted: Tue Nov 22, 2005 2:32 am Post subject: |
|
|
 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 |
|
 |
Hi |
Posted: Tue Nov 22, 2005 3:23 am Post subject: |
|
|
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 |
|
 |
hopsala |
Posted: Tue Nov 22, 2005 10:09 am Post subject: |
|
|
 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 |
|
 |
|