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 » IBM MQ Message to JMS: GetText() raises NullPointerException

Post new topic  Reply to topic
 IBM MQ Message to JMS: GetText() raises NullPointerException « View previous topic :: View next topic » 
Author Message
PatrickBlais
PostPosted: Fri Jul 30, 2004 9:36 am    Post subject: IBM MQ Message to JMS: GetText() raises NullPointerException Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
vennela
PostPosted: Fri Jul 30, 2004 2:12 pm    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

How are you setting the format of the message

Quote:
Format : 'MQSTR '


It should be
Quote:
Format : 'MQSTR '

Notice the spaces after MQSTR

Looks like something is wrong there.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
EddieA
PostPosted: Fri Jul 30, 2004 3:05 pm    Post subject: Reply with quote

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
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 » IBM MQ Message to JMS: GetText() raises NullPointerException
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.