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 » BIP2925E: (, 12.32) : A byte array literal must have an even

Post new topic  Reply to topic
 BIP2925E: (, 12.32) : A byte array literal must have an even « View previous topic :: View next topic » 
Author Message
rohit
PostPosted: Mon Sep 03, 2007 5:57 am    Post subject: BIP2925E: (, 12.32) : A byte array literal must have an even Reply with quote

Apprentice

Joined: 05 Jul 2005
Posts: 40

Hi ,
when i try to use the blob message as hex value in my esql ,it gives the following error in the event log;

Quote:
BIP2925E: (, 12.32) : A byte array literal must have an even number of digits.

This is most likely to have been caused by attempting to use a X'' literal with an odd number of digits (0-9, A-F, a-f) between the quotes.

Ensure that the literal has an even number of digits.

For example,
For the word apple i am using as
DECLARE MSG BLOB X'6170706C6'


Can anybody suggest me where i am wrong?

Thanks in advance

Regards,
Rohit
_________________
IBM Certified System Administrator - WebSphere MQ V6.0
------------------------------------
Don't think that you can!...But,Know that you can!..
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Sep 03, 2007 6:13 am    Post subject: Re: BIP2925E: (, 12.32) : A byte array literal must have an Reply with quote

Grand High Poobah

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

rohit wrote:
This is most likely to have been caused by attempting to use a X'' literal with an odd number of digits (0-9, A-F, a-f) between the quotes.

Ensure that the literal has an even number of digits.



rohit wrote:
DECLARE MSG BLOB X'6170706C6'



rohit wrote:
Can anybody suggest me where i am wrong?


You've miscounted?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
leopucci
PostPosted: Tue Dec 26, 2017 11:46 am    Post subject: Reply with quote

Apprentice

Joined: 09 Nov 2017
Posts: 28

i think that by the time, you already have solved. But if anyone check this thread, the problem is that you are passing a odd number of characters to be casted to blob.

Blob holds even numbers only. if you are making blob manipulation, you will also have to complete octets and manipulations to even after math manipulation.
Regards
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Dec 26, 2017 1:06 pm    Post subject: Re: BIP2925E: (, 12.32) : A byte array literal must have an Reply with quote

Grand High Poobah

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

rohit wrote:

For example,
For the word apple i am using as
DECLARE MSG BLOB X'6170706C6'


Can anybody suggest me where i am wrong?

Thanks in advance

Regards,
Rohit


Should it not be x'6170706C65' for apple?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
leopucci
PostPosted: Tue Dec 26, 2017 1:28 pm    Post subject: Re: BIP2925E: (, 12.32) : A byte array literal must have an Reply with quote

Apprentice

Joined: 09 Nov 2017
Posts: 28

fjb_saper wrote:
rohit wrote:

For example,
For the word apple i am using as
DECLARE MSG BLOB X'6170706C6'


Can anybody suggest me where i am wrong?

Thanks in advance

Regards,
Rohit


Should it not be x'6170706C65' for apple?



The first message contains the wrong number of characters:
wrong 61 70 70 6C 6
right 61 70 70 6C 65
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 » BIP2925E: (, 12.32) : A byte array literal must have an even
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.