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

Post new topic  Reply to topic
 XML parsing error « View previous topic :: View next topic » 
Author Message
wmqstankela
PostPosted: Mon Jun 06, 2016 3:40 am    Post subject: XML parsing error Reply with quote

Voyager

Joined: 29 Feb 2016
Posts: 94

Hi all,

I create message flow with SOAP input node, and when I send xml request:
Code:

<?xml version="1.0" encoding="UTF-8"?>
<tns0:Envelope xmlns:tns0="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns1="http://www.telekom.rs/WFM/services/CreateUpdateTask/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <tns0:Header/>
   <tns0:Body>
      <tns1:CreateTask>
         <sourceSystem>TIS</sourceSystem>
         <externalRefRecordID>215ž</externalRefRecordID>
         <area>area</area>
         <region>region</region>
         <district>district</district>
         <taskType>taskType</taskType>
         <number>number</number>
         <customer>customer</customer>
         <contactName>contactName</contactName>
         <contactPhoneNumber>contactPhoneNumber</contactPhoneNumber>
         <customerCategory>customerCategory</customerCategory>
         <contactMobilePhoneNumber>contactMobilePhoneNumber</contactMobilePhoneNumber>
         <customerEmail>customerEmail</customerEmail>
         <customerID>customerID</customerID>
         <serviceID>serviceID</serviceID>
         <serviceType>serviceType</serviceType>
         <slaPackage>slaPackage</slaPackage>
         <tCategory>tCategory</tCategory>
         <tSubCategory>tSubCategory</tSubCategory>
         <workAtHeight>false</workAtHeight>
         <workWithLead>false</workWithLead>
         <note>note</note>
         <countryID>countryID</countryID>
         <description>description</description>
         <dueDate>2002-01-01T11:00:00-00:00</dueDate>
         <earlyStart>2002-01-01T11:00:00-00:00</earlyStart>
      </tns1:CreateTask>
   </tns0:Body>
</tns0:Envelope>

I've got this exception:
Code:

( ['MQROOT' : 0x2ae57ef0]
  (0x01000000:Name):RecoverableException = (
    (0x03000000:NameValue):File            = 'F:\build\slot1\S900_P\src\DataFlowEngine\SQLNodeLibrary\ImbTraceNode.cpp' (CHARACTER)
    (0x03000000:NameValue):Line            = 360 (INTEGER)
    (0x03000000:NameValue):Function        = 'ImbTraceNode::evaluate' (CHARACTER)
    (0x03000000:NameValue):Type            = 'ComIbmTraceNode' (CHARACTER)
    (0x03000000:NameValue):Name            = 'CreateUpdateTaskMainFlow#FCMComposite_1_28' (CHARACTER)
    (0x03000000:NameValue):Label           = 'CreateUpdateTaskMainFlow.Trace2' (CHARACTER)
    (0x03000000:NameValue):Catalog         = 'BIPmsgs' (CHARACTER)
    (0x03000000:NameValue):Severity        = 3 (INTEGER)
    (0x03000000:NameValue):Number          = 2230 (INTEGER)
    (0x03000000:NameValue):Text            = 'Caught exception and rethrowing' (CHARACTER)
    (0x01000000:Name     ):Insert          = (
      (0x03000000:NameValue):Type = 14 (INTEGER)
      (0x03000000:NameValue):Text = 'CreateUpdateTaskMainFlow.Trace2' (CHARACTER)
    )
    (0x01000000:Name     ):ParserException = (
      (0x03000000:NameValue):File            = 'F:\build\slot1\S900_P\src\WebServices\WSLibrary\ImbSOAPParser.cpp' (CHARACTER)
      (0x03000000:NameValue):Line            = 2136 (INTEGER)
      (0x03000000:NameValue):Function        = 'ImbSOAPParser::createSoapShapedTree' (CHARACTER)
      (0x03000000:NameValue):Type            = '' (CHARACTER)
      (0x03000000:NameValue):Name            = '' (CHARACTER)
      (0x03000000:NameValue):Label           = '' (CHARACTER)
      (0x03000000:NameValue):Catalog         = 'BIPmsgs' (CHARACTER)
      (0x03000000:NameValue):Severity        = 3 (INTEGER)
      (0x03000000:NameValue):Number          = 3614 (INTEGER)
      (0x03000000:NameValue):Text            = 'problem creating SOAP tree from bitstream' (CHARACTER)
      (0x01000000:Name     ):ParserException = (
        (0x03000000:NameValue):File            = 'F:\build\slot1\S900_P\src\MTI\MTIforBroker\GenXmlParser4\ImbXMLNSCParser.cpp' (CHARACTER)
        (0x03000000:NameValue):Line            = 1139 (INTEGER)
        (0x03000000:NameValue):Function        = 'ImbXMLNSCParser::parseRightSibling' (CHARACTER)
        (0x03000000:NameValue):Type            = '' (CHARACTER)
        (0x03000000:NameValue):Name            = '' (CHARACTER)
        (0x03000000:NameValue):Label           = '' (CHARACTER)
        (0x03000000:NameValue):Catalog         = 'BIPmsgs' (CHARACTER)
        (0x03000000:NameValue):Severity        = 3 (INTEGER)
        (0x03000000:NameValue):Number          = 5009 (INTEGER)
        (0x03000000:NameValue):Text            = 'XML Parsing Errors have occurred' (CHARACTER)
        (0x01000000:Name     ):ParserException = (
          (0x03000000:NameValue):File     = 'F:\build\slot1\S900_P\src\MTI\MTIforBroker\GenXmlParser4\ImbXMLNSCDocHandler.cpp' (CHARACTER)
          (0x03000000:NameValue):Line     = 702 (INTEGER)
          (0x03000000:NameValue):Function = 'ImbXMLNSCDocHandler::handleParseErrors' (CHARACTER)
          (0x03000000:NameValue):Type     = 'ComIbmSOAPInputNode' (CHARACTER)
          (0x03000000:NameValue):Name     = 'CreateUpdateTaskMainFlow#FCMComposite_1_1' (CHARACTER)
          (0x03000000:NameValue):Label    = 'CreateUpdateTaskMainFlow.SOAP Input' (CHARACTER)
          (0x03000000:NameValue):Catalog  = 'BIPmsgs' (CHARACTER)
          (0x03000000:NameValue):Severity = 3 (INTEGER)
          (0x03000000:NameValue):Number   = 5004 (INTEGER)
          (0x03000000:NameValue):Text     = 'An XML parsing error has occurred while parsing the XML document' (CHARACTER)
          (0x01000000:Name     ):Insert   = (
            (0x03000000:NameValue):Type = 2 (INTEGER)
            (0x03000000:NameValue):Text = '1502' (CHARACTER)
          )
          (0x01000000:Name     ):Insert   = (
            (0x03000000:NameValue):Type = 2 (INTEGER)
            (0x03000000:NameValue):Text = '2' (CHARACTER)
          )
          (0x01000000:Name     ):Insert   = (
            (0x03000000:NameValue):Type = 2 (INTEGER)
            (0x03000000:NameValue):Text = '6' (CHARACTER)
          )
          (0x01000000:Name     ):Insert   = (
            (0x03000000:NameValue):Type = 2 (INTEGER)
            (0x03000000:NameValue):Text = '31' (CHARACTER)
          )
          (0x01000000:Name     ):Insert   = (
            (0x03000000:NameValue):Type = 5 (INTEGER)
            (0x03000000:NameValue):Text = 'An invalid XML character (Unicode: 0xffffffff) was found in the element content of the document.' (CHARACTER)
          )
          (0x01000000:Name     ):Insert   = (
            (0x03000000:NameValue):Type = 5 (INTEGER)
            (0x03000000:NameValue):Text = '/XMLNSC/http://schemas.xmlsoap.org/soap/envelope/:Envelope/http://schemas.xmlsoap.org/soap/envelope/:Body/http://www.telekom.rs/WFM/services/CreateUpdateTask/:CreateTask/externalRefRecordID' (CHARACTER)
          )
        )
      )
    )
  )
)


Problem is in character 'ž' in request. Exception is thrown by xml parser, because it can't create SOAP tree from xml request. Default CCSID is 1208, but it can't recognize this character 'ž'. I can change this parameter in compute node after SOAP input node, but exception is thrown before that.
How to resolve this problem? Some help please
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Jun 06, 2016 4:28 am    Post subject: Reply with quote

Grand High Poobah

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

Quote:
An invalid XML character (Unicode: 0xffffffff)

This looks suspiciously like some CCSID error.

hex value -1 or 0xffffffff can also be portrayed as 0xFFFF which can then be interpreted as a BOM (byte order mask) in unicode.

This would tell me that your XML is not 1208 as it would claim to be...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
wmqstankela
PostPosted: Mon Jun 06, 2016 5:08 am    Post subject: Reply with quote

Voyager

Joined: 29 Feb 2016
Posts: 94

Thanks fjb_saper for quick response.
CCSID of my local QMGR is 852, but in property of message CCSID is 1208
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Jun 06, 2016 5:58 am    Post subject: Reply with quote

Grand High Poobah

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

wmqstankela wrote:
Thanks fjb_saper for quick response.
CCSID of my local QMGR is 852, but in property of message CCSID is 1208


Well 1208 matters but is the content of the message in UTF-8?

I suspect the content might be 1201 or 1202... or any other CCSID with a byte order mark.

Worst case scenario the app creating the message is prefixing the content with hex -1... or writing a buffer with the wrong offset...
Also make sure you request CCSID 1208 when retrieving the message (assuming that this is a message with MQFMT_STRING format)
_________________
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
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.