Author |
Message
|
brgmo |
Posted: Tue Nov 20, 2007 1:49 am Post subject: Conversion problem |
|
|
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 |
|
 |
Vitor |
Posted: Tue Nov 20, 2007 2:07 am Post subject: Re: Conversion problem |
|
|
 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 |
|
 |
brgmo |
Posted: Tue Nov 20, 2007 2:11 am Post subject: |
|
|
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 |
|
 |
Vitor |
Posted: Tue Nov 20, 2007 2:14 am Post subject: |
|
|
 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 |
|
 |
shalabh1976 |
Posted: Tue Nov 20, 2007 2:14 am Post subject: |
|
|
 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 |
|
 |
brgmo |
Posted: Tue Nov 20, 2007 2:19 am Post subject: |
|
|
Master
Joined: 03 Jun 2002 Posts: 227
|
yes the blob is a valid xml document. |
|
Back to top |
|
 |
shalabh1976 |
Posted: Tue Nov 20, 2007 2:24 am Post subject: |
|
|
 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 |
|
 |
AkankshA |
Posted: Tue Nov 20, 2007 2:24 am Post subject: Re: Conversion problem |
|
|
 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 |
|
 |
Vitor |
Posted: Tue Nov 20, 2007 2:25 am Post subject: |
|
|
 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 |
|
 |
brgmo |
Posted: Tue Nov 20, 2007 2:38 am Post subject: |
|
|
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 |
|
 |
AkankshA |
Posted: Tue Nov 20, 2007 2:41 am Post subject: |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
can u pls paste your cast statement here.... _________________ Cheers |
|
Back to top |
|
 |
Vitor |
Posted: Tue Nov 20, 2007 2:46 am Post subject: |
|
|
 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 |
|
 |
brgmo |
Posted: Tue Nov 20, 2007 3:06 am Post subject: |
|
|
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 |
|
 |
shalabh1976 |
Posted: Tue Nov 20, 2007 3:07 am Post subject: |
|
|
 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 |
|
 |
|