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 » Base64 Conversion Error

Post new topic  Reply to topic
 Base64 Conversion Error « View previous topic :: View next topic » 
Author Message
TonyD
PostPosted: Sun Jun 12, 2005 11:42 pm    Post subject: Base64 Conversion Error Reply with quote

Knight

Joined: 15 May 2001
Posts: 540
Location: New Zealand

I have incoming XML messages that contain Base64 encoded file attachments. Mostly this works fine but I have just encountered:

Quote:

2005-06-13 17:04:40.580017 4492 ParserException BIP5285E: Message Translation Interface Parsing Errors have occurred:
Message Set Name : 'msPortalXML52'
Message Set Level : '1'
Message Format : 'XML1'
Message Type Path : 'InboundSecureMessageRequest'
Review further error messages for an indication to the cause of the errors.
2005-06-13 17:04:40.580123 4492 ParserException BIP5404E: XML data conversion error.
Error converting characters at position 2617 to logical type 'Binary' in message 'InboundSecureMessageRequest', current element 'http://www.xyz/Messages/Portal/2005/05/PortalXMLSchema_52:FileAttachment'.
Please ensure that the element specified contains valid data for the logical type specified (Binary).



A couple of questions:

1. How can I determine which character(s) cause the problem?

2. What is the starting point for 'position 2617' referenced above, as far as the parser is concerned...from the start of the MQMD, the XML declaration at the beginning of the message, or the start of the root element?

Alternatively, here is the problematical attachment:

Code:

<FileAttachment>UjBsR09EbGhrQUVzQWZjQUFQLy8vLy8velB2NTdQbjQ5L2IzLy8vL21mLy9NKzd2L3ZEdjdmZm5v
dXprNU9IaC92ZnFjTy9qdjl6ZjQvVFcwdUxaMU5iVy9zelk0dWJmUk5iVzFmcmNFY3pNLzh6TzJP
SEt3c3pNek9iRHBiL0Evc0MvNUwrL3Y4bTlzT083ZE51MnRiQzkwcTY3N2NlNW9iVzEvKzZucUxP
MXQ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UVNyZlFyQzRKQ0pMd3Z6cTkyZzluQWpJTnZiRFN3
VnN4WmphNFVocWFERS82a3ZHSWtseDhBSUNBRHM9AA==</FileAttachment>


Looks perfectly fine to me!
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Mon Jun 13, 2005 3:12 am    Post subject: Re: Base64 Conversion Error Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

TonyD wrote:
2. What is the starting point for 'position 2617' referenced above, as far as the parser is concerned...from the start of the MQMD, the XML declaration at the beginning of the message, or the start of the root element?

I'm going to say that you should start counting at the first byte in the body of the message - immediately after the end of every header.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Jun 13, 2005 4:29 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Alternatively, you could find out what the starting point is by deliberately introducing an error at a known point - say, at the start of the element which fails. For instance, you could convert the opening tag of FileAttachment into a closing tag, causing the XML document to be badly-formed at that point. Even better, you could deliberately insert a bad character at the start of the base64 data, if you know what a bad character looks like (I don't).
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 » Base64 Conversion 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.