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 » IBM MQ Java / JMS » Could not read EBCDIC data properly

Post new topic  Reply to topic
 Could not read EBCDIC data properly « View previous topic :: View next topic » 
Author Message
Umarul Farooq
PostPosted: Fri Apr 27, 2012 4:49 am    Post subject: Could not read EBCDIC data properly Reply with quote

Novice

Joined: 15 Jan 2012
Posts: 14

Hi All,

I have Message Driven Bean (MDB) to recieve EBCDIC data, When i read (print) the ebcdic data, it is not the exact data which put into the Queue.

I am getting some junk data.

Test Case:

1. I sent Ebcdic data to Queue, using Java Programe
2. MDB is listening to same queue, and immediately MDB will receive the data, But the data is not the same data

Could you please help me to solve this issue.

Thanks.
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Apr 27, 2012 5:19 am    Post subject: Reply with quote

Grand High Poobah

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

What platform is the sending Java on? If it's a non-EBCDIC platform why are you sending the data in EBCDIC rather than using the WMQ conversion?

What conversion options exist in the transport between the 2 apps?

What conversion options are being applied by the receiver? Both explicitly coded by you and implicitly?

Define "junk". Do you just mean "not what I need"?

What is the hex values of the payload being sent and being received? How does it differ (if at all)?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Umarul Farooq
PostPosted: Fri Apr 27, 2012 5:30 am    Post subject: Reply with quote

Novice

Joined: 15 Jan 2012
Posts: 14

Thank you for your response,

I need to read/listion the message from queue through MDB.

In production, (our client system) mainframe system will put the EBCDIC data into the queue.

For my testing, i writtern Java programe (simulator) to send EBCDIC data (I convert the text message to EBCDIC)

Not used any options, all are default values.
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Apr 27, 2012 5:51 am    Post subject: Reply with quote

Grand High Poobah

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

Umarul Farooq wrote:
For my testing, i writtern Java programe (simulator) to send EBCDIC data (I convert the text message to EBCDIC)


Convert how? Did you just convert the payload or actually send an EBCDIC message with the correct descriptor?

Umarul Farooq wrote:
Not used any options, all are default values.


I never said you had, I asked what options were in use. Which includes those used by your admin.

You've also decided not to answer my question about junk, or what the values are.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
rekarm01
PostPosted: Sun Apr 29, 2012 12:33 pm    Post subject: Re: Could not read EBCDIC data properly Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

Umarul Farooq wrote:
When i read (print) the ebcdic data, it is not the exact data which put into the Queue.

The problem is often with the application that writes the message data, not the application that reads it. Make sure that the message header(s) correctly describe the message data, before putting the message on the queue.

Umarul Farooq wrote:
I am getting some junk data.

That's not nearly enough information.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sun Apr 29, 2012 1:19 pm    Post subject: Reply with quote

Grand High Poobah

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

There is a known bug / behavioral difference in early versions of WMQ 7.0
Upgrade to the latest version (7.0.1. and let us know if you still have the problem.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
zpat
PostPosted: Sun Apr 29, 2012 11:37 pm    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Step 1 - browse it on the queue, without conversion, check the CCSID is correct for the message data (both should be ebcdic).

The data should be "unreadable". because your PC expects ASCII.

Step 2 - browse it on the queue, with conversion, check the data is now readable and the CCSID has changed to ASCII.

Step 3 - check why your app is not doing data conversion properly - use MQMGO_CONVERT, or JMS text (not byte) messages.

I use the support pac MO71 to view messages - it has a browse queue context menu option of convert or not (the default is to convert data).
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 » IBM MQ Java / JMS » Could not read EBCDIC data properly
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.