|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Exception While Using Channel Exits. |
« View previous topic :: View next topic » |
Author |
Message
|
ajayvizag |
Posted: Mon Mar 23, 2009 3:05 am Post subject: Exception While Using Channel Exits. |
|
|
Apprentice
Joined: 20 Feb 2009 Posts: 31
|
Hi All,
I was trying to use the following the command to create a Client Connection Channel.
DEFINE CHANNEL ('TEST') CHLTYPE(CLNTCONN) +
* ALTDATE (2008-06-27) +
* ALTTIME (15.16.47) +
TRPTYPE(TCP) +
CONNAME('MAchineName(1460)') +
LOCLADDR(' ') +
DESCR('') +
HBINT(300) +
MAXMSGL(104857600) +
QMNAME('AID2') +
RCVDATA(' ') +
RCVEXIT(' ') +
SCYDATA(' ') +
SCYEXIT(' ') +
SENDDATA(' ') +
SENDEXIT(' ') +
USERID(' ') +
SSLCIPH(' ') +
SSLPEER(' ') +
KAINT(AUTO) +
COMPMSG(NONE) +
COMPHDR(NONE) +
REPLACE
and connecting to the Queue Manager by using the TAB file so generated.
But when i am trying to use connect to the QueueManager using the command "new MQQueueManager(strQMgrName,urlChannelTable))" its throwing a exception probably a null pointer.
Has this got something to do with me specyfing the CHANNEL EXITS?.
Because the moment i remove the statements RCVEXIT(' ') from the script i am able to successfully able to connect to the QueueManager.
Let me know if the above information is not adequate.
Last edited by ajayvizag on Mon Mar 23, 2009 11:37 pm; edited 2 times in total |
|
Back to top |
|
 |
ajayvizag |
Posted: Mon Mar 23, 2009 8:57 pm Post subject: |
|
|
Apprentice
Joined: 20 Feb 2009 Posts: 31
|
In oder to add to the earlier one. If i specify a value ='' or dnt add that field while creating channel are they not one and the same |
|
Back to top |
|
 |
RogerLacroix |
Posted: Tue Mar 24, 2009 12:38 pm Post subject: Re: Exception While Using Channel Exits. |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
ajayvizag wrote: |
But when i am trying to use connect to the QueueManager using the command "new MQQueueManager(strQMgrName,urlChannelTable))" its throwing a exception probably a null pointer. |
What is the exception? What did MQ or the JVM return in your "catch" section?
ajayvizag wrote: |
Has this got something to do with me specyfing the CHANNEL EXITS?. |
What exits? Are you referring to the server-side? Again, what is the exception? What did MQ or the JVM return in your "catch" section?
ajayvizag wrote: |
Because the moment i remove the statements RCVEXIT(' ') from the script i am able to successfully able to connect to the QueueManager. |
I don't see anything in your above channel definition, so this is server side? Exits MUST be matched in pairs (send exit on one side and receive exit on the other end).
ajayvizag wrote: |
In oder to add to the earlier one. If i specify a value ='' or dnt add that field while creating channel are they not one and the same |
I have no clue what you are talking about. Do not use SMS short-form on this board.
Regards,
Roger Lacroix _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
Back to top |
|
 |
ajayvizag |
Posted: Tue Mar 24, 2009 9:01 pm Post subject: |
|
|
Apprentice
Joined: 20 Feb 2009 Posts: 31
|
Thanks Roger,
The exception that i got was a null pointer and not a MQException. The script that i mentioned had the paramtere Send and Recieve Exit specified as RCVEXIT(' ') , SENDEXIT(' ') while creating the Client Connection Channel. But we did not intend to use the exits. The CCDT that was created with the above parametes was used to connect to the QueueManager and the following lime in my code
"new MQQueueManager(strQMgrName,urlChannelTable))" is throwing a null pointer. I tried to find out the reaosn and found the following explanation by IBM:-"On platforms other than z/OS, a string containing no characters (that is, two single quotation marks with no space in between) is interpreted as a quoted blank space, in other words, (’’) is interpreted in the same way as (’ ’)."
Please let me know if u have any information. |
|
Back to top |
|
 |
ajayvizag |
Posted: Fri Mar 27, 2009 2:38 am Post subject: |
|
|
Apprentice
Joined: 20 Feb 2009 Posts: 31
|
|
Back to top |
|
 |
manicminer |
Posted: Fri Mar 27, 2009 5:31 am Post subject: |
|
|
 Disciple
Joined: 11 Jul 2007 Posts: 177
|
If you want help with an exception in a piece of code you are writing the best thing to do would be:
1) Check error logs for MQ in the appropriate locations, post any relevant details from the logs or FDC information that you find (if you don't find any - tell us that you looked and didn't find anything)
2) Post a code snippet showing how you are using the MQ call that is causing problems
3) Post the exception stack trace so that people can see what is going wrong
Doing at very least those 3 things will help someone at least understand what you are attempting to do and should help someone figure out why it is wrong. _________________ Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime. |
|
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
|
|
|
|