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 » Conversion problem

Post new topic  Reply to topic
 Conversion problem « View previous topic :: View next topic » 
Author Message
brgmo
PostPosted: Tue Nov 20, 2007 1:49 am    Post subject: Conversion problem Reply with quote

Master

Joined: 03 Jun 2002
Posts: 227

Hi All,

I am trying to parse a blob ad i get the following error:

Can't convert %3 to %4

Any idea why this error comes.

Regards
brgmo
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Nov 20, 2007 2:07 am    Post subject: Re: Conversion problem Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

brgmo wrote:
I am trying to parse a blob ad i get the following error:


Presumably using WMB but which version? On which platform? Fixed to what level?

Parsing the BLOB into what domain? XML? A message set? Does the blob match the message set? Could there (just guessing here) be a non-convertable string where the parser expects a numeric?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
brgmo
PostPosted: Tue Nov 20, 2007 2:11 am    Post subject: Reply with quote

Master

Joined: 03 Jun 2002
Posts: 227

I am using wmb version 5.0.5 on windows platform. I am using xmlns as the domain.no message set.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Nov 20, 2007 2:14 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

And you know the BLOB is a valid XML document?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
shalabh1976
PostPosted: Tue Nov 20, 2007 2:14 am    Post subject: Reply with quote

Partisan

Joined: 18 Jul 2002
Posts: 381
Location: Gurgaon, India

You might be missing a cast statement somewhere. However without the exception list or the event log this might be very difficult to say where.
You can even check out the mqsichangetrace to find out the exact place where the error occurs.
However in any case your details are very sketchy to conjecture a solution at this point.
_________________
Shalabh
IBM Cert. WMB V6.0
IBM Cert. MQ V5.3 App. Prog.
IBM Cert. DB2 9 DB Associate
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
brgmo
PostPosted: Tue Nov 20, 2007 2:19 am    Post subject: Reply with quote

Master

Joined: 03 Jun 2002
Posts: 227

yes the blob is a valid xml document.
Back to top
View user's profile Send private message
shalabh1976
PostPosted: Tue Nov 20, 2007 2:24 am    Post subject: Reply with quote

Partisan

Joined: 18 Jul 2002
Posts: 381
Location: Gurgaon, India

But what are you trying to do with it?
Looks like an error during a read from CHAR to BLOB.
Can you give a more descriptive explanation of your problem?
_________________
Shalabh
IBM Cert. WMB V6.0
IBM Cert. MQ V5.3 App. Prog.
IBM Cert. DB2 9 DB Associate
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
AkankshA
PostPosted: Tue Nov 20, 2007 2:24 am    Post subject: Re: Conversion problem Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

brgmo wrote:
Hi All,

I am trying to parse a blob ad i get the following error:

Can't convert %3 to %4

Any idea why this error comes.

Regards
brgmo


seems like a familiar error message... cant recall completely

kindly post the complete env details with exception list
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
Vitor
PostPosted: Tue Nov 20, 2007 2:25 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

brgmo wrote:
yes the blob is a valid xml document.


Then why is it a BLOB you're trying to parse manually?

You really need to be providing a bit more context here if we're going to help. Single sentance answers may be accurate but they're not especially informative!
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
brgmo
PostPosted: Tue Nov 20, 2007 2:38 am    Post subject: Reply with quote

Master

Joined: 03 Jun 2002
Posts: 227

I am trying to read a xml message and then convert it to a flat file structure as shown below:
@*@EventID:blahblah
@*@MsgID:blahblah....
Now before i output this message to output queue, i am logging the message.Now at this point i have a blob structure of the above format.when i try to convert this to char it throws the following error.

Error casting from %3 to %4.


Regards
brgmo
Back to top
View user's profile Send private message
AkankshA
PostPosted: Tue Nov 20, 2007 2:41 am    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

can u pls paste your cast statement here....
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
Vitor
PostPosted: Tue Nov 20, 2007 2:46 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

brgmo wrote:
I am trying to read a xml message and then convert it to a flat file structure as shown below:


So why not parse the XML into XMLNS domain via an input node, convert that into a message set to obtain the flat file format and then log the XML (or flat file structure) to wherever the log is prior to output?

What's doing the logging and why do you have a blob?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
brgmo
PostPosted: Tue Nov 20, 2007 3:06 am    Post subject: Reply with quote

Master

Joined: 03 Jun 2002
Posts: 227

Thanks guys. The problem is resolved. it was CCSID that was creating the problems.the output was expecting 1208 as the ccsid and i was passing the 437 as the ccsid.
Back to top
View user's profile Send private message
shalabh1976
PostPosted: Tue Nov 20, 2007 3:07 am    Post subject: Reply with quote

Partisan

Joined: 18 Jul 2002
Posts: 381
Location: Gurgaon, India

Use the CCSID and Encoding options on your CAST
_________________
Shalabh
IBM Cert. WMB V6.0
IBM Cert. MQ V5.3 App. Prog.
IBM Cert. DB2 9 DB Associate
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Conversion problem
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.