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 » WebSphere Message Broker (ACE) Support » Invalid Length in MQRFH2

Post new topic  Reply to topic
 Invalid Length in MQRFH2 « View previous topic :: View next topic » 
Author Message
SKK
PostPosted: Tue Aug 23, 2005 12:30 pm    Post subject: Invalid Length in MQRFH2 Reply with quote

Acolyte

Joined: 09 May 2005
Posts: 67

Hi,

I'm receiving an Input message to MQSI 2.1 Message Flow in the below format from an Application Tool.

RFH  ã  ¸ 9/usr/local/QA/xmlin/a1124801269843UBFE_QAin V HTTP V QA QA XML 4<686280374.1124801375599.JavaMail.wmit_adm@04a> a1124801269843QAin XML  0 CORR1124801205474.84-  AS2  %<?xml version="1.0" encoding="UTF-8"?>


When i open the message in RFH2 Util, it says "invalid length in RFH2 Variable Area" and my message flow is not able to recognise the message. Since the message type on input node is XML, this message goes to failure node.

I tried removing RFH2 Header.

Set OutputRoot.MQRFH2=null;

It didn't help. Can anyone let me know using ESQL how to remove the RFH2 Header and recognize the message as XML in subsequent nodes?

Thanks
KK
Back to top
View user's profile Send private message
recallsunny
PostPosted: Tue Aug 23, 2005 2:09 pm    Post subject: Reply with quote

Disciple

Joined: 15 Jun 2005
Posts: 163
Location: Massachusetts

Its not a Valid XML, so your Message Flow cannot recognise it. Try changing the Format to BLOB and then substring the Blob for the first occurance of <?xml till the end of message. Now you should have a well formed XML....

Add a ResetContentDescriptor and change Domain to XML, so that you can reparse the Root in XML domain.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Aug 24, 2005 3:12 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

If it were a valid RFH2 header, then the message flow would process that, and then be able to treat the XML as XML.

Also, fi the RFH2 header is there, and it specifies that the message is XML, then the broker will parse it as XML regardless of what the MQInput node says.

Are you getting any errors when the message passes to the failure node?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
EddieA
PostPosted: Wed Aug 24, 2005 8:12 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Also, can you dump the message with amqsbcg, as that will enable you to see the contents of the RFH header.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
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 » WebSphere Message Broker (ACE) Support » Invalid Length in MQRFH2
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.