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 » XML parsing error Invalid character (Unicode: 0x1A)

Post new topic  Reply to topic
 XML parsing error Invalid character (Unicode: 0x1A) « View previous topic :: View next topic » 
Author Message
ranjith
PostPosted: Thu Dec 27, 2007 9:48 pm    Post subject: XML parsing error Invalid character (Unicode: 0x1A) Reply with quote

Apprentice

Joined: 04 May 2004
Posts: 25

This is a typical publish/subscribe scenario. The publisher receives data (with CCSID 870) which contains special characters (eg: OPAWE¬ UNAR, ¡WI£TEK ) from source application and we are forcing to convert the CCSID to 819 in the publisher's MQ input node. The output of the publisher which is a xml is published to the subscriber with CCSID 819. The subscriber is not able to parse the message with the special characters and throws XML parsing error Invalid character (Unicode: 0x1A). In the subscriber's MQ input node we tried the CCSID conversion to 1208. But still we are getting the same parser error. Find the broker trace below

Dec 28 06:44:53 miaibd02 MQSIv500[2166838]: (BMIAA34.RCG)[5151]BIP2230E: Error detected whilst processing a message in node 'WMB_WCC_PartyMasterSUB_RegularLoad.Trace'. : BMIAA34.acfe2d5f-1501-0000-0080-85f1751c0a56: /build/S500_P/src/DataFlowEngine/ImbTraceNode.cpp: 349: ImbTraceNode::evaluate: ComIbmTraceNode: WMB_WCC_PartyMasterSUB_RegularLoad#FCMComposite_1_12
Dec 28 06:44:53 miaibd02 MQSIv500[2166838]: (BMIAA34.RCG)[5151]BIP5009E: XML Parsing Errors have occurred. : BMIAA34.acfe2d5f-1501-0000-0080-85f1751c0a56: /build/S500_P/src/MTI/MTIforBroker/GenXmlParser2/XmlImbParser.cpp: 464: XmlImbParser::parseRightSibling: :
Dec 28 06:44:53 miaibd02 MQSIv500[2166838]: (BMIAA34.RCG)[5151]BIP5004E: XML parsing error (Invalid character (Unicode: 0x1A)) encountered on line 1 column 853 while parsing element http://www.gic.michelin.com/oagis/9/michelin/1:Name. : BMIAA34.acfe2d5f-1501-0000-0080-85f1751c0a56: /build/S500_P/src/MTI/MTIforBroker/GenXmlParser2/XmlBrokerAsgardParser.cpp: 815: XmlBrokerAsgardParser::error: :
Dec 28 06:44:54 miaibd02 MQSIv500[909382]: (BMIAA34.COMMON_GIC)[4884]BIP2648E: Message backed out to a queue; node 'XXX_MCE_PUBLISHER00_001.MQI.MCE.AIEVTRCV'. : BMIAA34.b373e6f6-1601-0000-0080-93819e319e3e: /build/S500_P/src/DataFlowEngine/ImbMqInputNode.cpp: 3396: ImbMqInputNode::eligibleForBackout: ComIbmMQInputNode: XXX_MCE_PUBLISHER00_001#FCMComposite_1_1


We are using MB 5.0.5 in AIX platform.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Dec 28, 2007 3:31 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

So this isn't a publish/subscribe problem.

It's a character conversion problem.

And mainly it's an issue with the publisher producing bad data.. You need to ensure that a) the publisher is sending only characters that are valid in 819 codepage, and b) sending valid XML data...
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Dec 28, 2007 6:40 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

OK so let's see for a moment how this should play out
  1. The publisher sets CCSID 1208 on the message and writes UTF-8 to the message
  2. The input node gets the message in UTF-8 (CCSID-1208
  3. The last compute node before the publish node sets CCSID 1208 to
    a) the RFH2 header
    b) OutputRoot.Properties.CodedCharSetId
  4. The subscriber sets CCSID 1208 to its tcf/qcf (so there will be no translation)
  5. The subscriber receives and parses the message in UTF-8



_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XML parsing error Invalid character (Unicode: 0x1A)
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.