|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
IBM MQ Message to JMS: GetText() raises NullPointerException |
« View previous topic :: View next topic » |
Author |
Message
|
PatrickBlais |
Posted: Fri Jul 30, 2004 9:36 am Post subject: IBM MQ Message to JMS: GetText() raises NullPointerException |
|
|
 Novice
Joined: 07 Apr 2004 Posts: 12 Location: Montreal
|
We've setup a java jms server on a sun machine.
We have been able to send information correctly to the CICS transaction but the reception of the CICS response doesn't work.
In my messageListener class , I put a system out that tells me that my message is an instanceof com.ibm.jms.JMSTextMessage.
Every time I try to call the getText() method, I get a NullPointer Exception.
When I browse my message, everything seems ok
Can someone tell what is wrong?
StrucId : 'MD ' Version : 2
Report : 0 MsgType : 8
Expiry : -1 Feedback : 0
Encoding : 273 CodedCharSetId : 819
Format : 'MQSTR '
Priority : 0 Persistence : 1
MsgId : X'C3E2D840D4D8E3D34040404040404040BB97F5992EB9F880'
CorrelId : X'000000000000000000000000000000000000000000000000'
BackoutCount : 0
ReplyToQ : ' '
ReplyToQMgr : 'MQTL '
** Identity Context
UserIdentifier : ' '
AccountingToken :
X'1910C2D3C1E4D5C5E34BC1F0F1C3C9C3E2E397F3627BBA160003000000000000'
ApplIdentityData : ' '
** Origin Context
PutApplType : '1'
PutApplName : 'A01CICSTDV00 '
PutDate : '20040730' PutTime : '13023860'
ApplOriginData : ' '
GroupId : X'000000000000000000000000000000000000000000000000'
MsgSeqNumber : '1'
Offset : '0'
MsgFlags : '0'
OriginalLength : '-1'
**** Message ****
length - 121 bytes
00000000: 534D 5230 3030 3030 3031 3535 3038 3453 'SMR000000155084S'
00000010: 5749 4654 2020 2032 3030 3430 3732 3830 'WIFT 200407280'
00000020: 3130 3230 3330 3030 3220 2020 204F 4346 '102030002 OCF'
00000030: 4356 4355 503A 2053 5441 5455 533D 204E 'CVCUP: STATUS= N'
00000040: 412C 454C 454D 3D43 5550 4550 5350 432C 'A,ELEM=CUPEPSPC,'
00000050: 2020 2020 2020 2020 2C00 0000 0000 0020 ' ,...... '
00000060: 2020 2020 2000 0000 0000 0000 002D 0000 ' ........-..'
00000070: 0000 0000 0000 2C20 2A '......, * ' _________________ Patrick Blais , Expertus Technologies Inc.
Analyste Programmeur
Courriel/Email: patrick.blais@expertus.ca |
|
Back to top |
|
 |
vennela |
Posted: Fri Jul 30, 2004 2:12 pm Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
How are you setting the format of the message
It should be
Notice the spaces after MQSTR
Looks like something is wrong there. |
|
Back to top |
|
 |
EddieA |
Posted: Fri Jul 30, 2004 3:05 pm Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
It could be because the message isn't all text:
Quote: |
00000050: 2020 2020 2020 2020 2C00 0000 0000 0020 ' ,...... '
00000060: 2020 2020 2000 0000 0000 0000 002D 0000 ' ........-..'
00000070: 0000 0000 0000 2C20 2A '......, * ' |
Don't know about the '2A', or '2C' (don't have my ASCII card handy), but the '00's definitely 'aint text.
I'd get back to your mainframe people and tell then to SPACE fill everything. Don't use LOW-VALUES.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|