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 Process Server (WID/WPS/WAS+) » Unable to read from queue

Post new topic  Reply to topic Goto page 1, 2  Next
 Unable to read from queue « View previous topic :: View next topic » 
Author Message
rudravarapu
PostPosted: Tue Aug 25, 2009 3:08 am    Post subject: Unable to read from queue Reply with quote

Newbie

Joined: 22 Jul 2009
Posts: 9

Hi all,

am a newbie to middleware and trying to get some hands on WID and MQ . For my current project am using WID 6.1 and MQ 7.0.

As a kickoff, i tried to read data from a queue(say Q1) , break the data into small parts and write them as xml to another queue(say Q2) . Both the queues are in under same queue manager. The problem is iam unable to read data from the queue. Iam able to write the data to the queue (if i hardcode the string am trying to fetch from Q1) , but back again , am unable to read any data from the queue.

i get StringArrayOutofBounds exception when i try to execute the module, the reason obviously being tat there is no data fetched and am trying to operate on it.

I have not configured any channels . using the default one (DEF.SVRCONN). Do you think there is some problem with this??

guys, any idea on whats going wrong?
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Aug 25, 2009 7:11 am    Post subject: Re: Unable to read from queue Reply with quote

Grand High Poobah

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

rudravarapu wrote:
guys, any idea on whats going wrong?


No, because you've provided no information that would be of any help. If you're unable to get data from the queue then somewhere there will be a WMQ reason code explaining why. Without that, it's impossible to know what's happening so you'd need to check all of the dozen or so common problem and could still come up empty.

Regarding your specific question it's not best practice to use the SYSTEM objects. You're better advised to define your own; this gives you control & visibility of the channel, and also allows you to lock down the queue manager by preventing unauthorised access via the SYSTEM objects. But it's unlikely to be the cause of your problem.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
rudravarapu
PostPosted: Tue Aug 25, 2009 8:19 pm    Post subject: Reply with quote

Newbie

Joined: 22 Jul 2009
Posts: 9

Thx for ur reply vitor.

Let me be more clear. Am generating a MQ binding for a business process that feteches data from first queue(Q1 in our case) , the data is processed in the business logic and then using the import node am writing the data to another queue (Q2 in our case).
Iam not getting any error message from MQ saying that it was unable to read the queue. The local variable , to which the data from the queue was assigned, turns up empty.So, am unable to figure out if it is the problem with the connection or the data has not been assigned properly to the local variable?

Is there any way , where in i can check whether the data from the connection has been fetched?
Let me know , if i can provide any specific information that would be helpfull and regarding the channel, will take your advice.
Back to top
View user's profile Send private message
WMBDEV1
PostPosted: Tue Aug 25, 2009 11:41 pm    Post subject: Reply with quote

Sentinel

Joined: 05 Mar 2009
Posts: 888
Location: UK

rudravarapu wrote:

Is there any way , where in i can check whether the data from the connection has been fetched?


Turn on a WAS JMS trace?
Turn on an MQ trace?

I prefer the first option as I it may give you more information in the case where the request never actually reaches MQ
Back to top
View user's profile Send private message
Ratan
PostPosted: Wed Aug 26, 2009 2:25 am    Post subject: Reply with quote

Grand Master

Joined: 18 Jul 2002
Posts: 1245

I havent worked on it lately so I cannot give clear instructions. Having said that, basically there should be an MDB listening on the input Q. So you can debug it by looking at the ipprocs of the queue you are trying to get from and also in WPS you can check if the mdb generated is listening. See for any errors in SystemOut log of your WPS.
_________________
-Ratan
Back to top
View user's profile Send private message Send e-mail
rudravarapu
PostPosted: Wed Aug 26, 2009 4:41 am    Post subject: Reply with quote

Newbie

Joined: 22 Jul 2009
Posts: 9

WMBDEV1 :

am using WPS. Checked the WPS log. find the part of the systemout log below.Can you tell me where can i check for the MQ trace?

@Ratan

I have the listener configured . Can you please tell me how can i check the ipprocs and the listener is listening or not.

Thanks to both of you.


Code:
[8/26/09 17:49:39:271 IST] 0000005f Core          I   CWSCA3009I: The SCA module "MQBindingsApp" is starting.
[8/26/09 17:49:39:333 IST] 0000005f SystemOut     O [474547][getSynchronizedExtendedMetaData] ConfigImpl=com.ibm.ws.sca.model.config.impl.ConfigImpl@22982298 (classLoader: null)
[8/26/09 17:49:39:349 IST] 0000005f Core          I   CWSCA3010I: The SCA module started successfully.
[8/26/09 17:49:39:396 IST] 0000005f EJBContainerI I   WSVR0037I: Starting EJB jar: MQBindingsEJB.jar
[8/26/09 17:49:39:443 IST] 0000005f ActivationSpe I   J2CA0523I: The Message Endpoint for ActivationSpec sca/MQBindings/ActivationSpec (com.ibm.ws.sib.ra.inbound.impl.SibRaActivationSpecImpl) and MDB Application MQBindingsApp#MQBindingsEJB.jar#ServiceSIBusMessageBean is activated.
[8/26/09 17:49:39:490 IST] 0000005f EJBContainerI I   WSVR0057I: EJB jar started: MQBindingsEJB.jar
[8/26/09 17:49:39:505 IST] 0000005f ApplicationMg A   WSVR0221I: Application started: MQBindingsApp
[8/26/09 17:49:39:724 IST] 0000005f FileRepositor A   ADMR0015I: User defaultWIMFileBasedRealm/admin created document cells/widCell/applications/MQBindingsApp.ear/deltas/MQBindingsApp/delta-1251289176411.
[8/26/09 17:49:39:740 IST] 0000005f FileRepositor A   ADMR0016I: User defaultWIMFileBasedRealm/admin modified document cells/widCell/applications/MQBindingsApp.ear/deployments/MQBindingsApp/deployment-bpc.xml.
[8/26/09 17:49:39:740 IST] 0000005f FileRepositor A   ADMR0016I: User defaultWIMFileBasedRealm/admin modified document cells/widCell/applications/MQBindingsApp.ear/deployments/MQBindingsApp/deployment.xml.
[8/26/09 17:49:46:630 IST] 00000067 ServletWrappe I   SRVE0242I: [TestController] [/TestControllerWEB] [TestControllerServlet]: Initialization successful.
[8/26/09 17:49:51:740 IST] 0000006b ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl initialize FFDC0009I: FFDC opened incident stream file C:\Program Files\IBM\WID61\pf\wps\logs\ffdc\server1_0000006b_09.08.26_17.49.51_0.txt
[8/26/09 17:49:51:755 IST] 0000006b ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\Program Files\IBM\WID61\pf\wps\logs\ffdc\server1_0000006b_09.08.26_17.49.51_0.txt
[8/26/09 17:49:53:240 IST] 0000006b HTM           I   CWTKE0044I: Originator becomes administrator of task OrderProcess.
[8/26/09 17:49:53:927 IST] 0000006b BpelEngine    I   CWWBE0163I: Business Process Choreographer is using JMS based navigation in long running business processes
[8/26/09 17:49:55:365 IST] 0000006b SystemOut     O The Input Order Record is **** BusinessObject: ProcessBO@a340a34 (orderString=)
[8/26/09 17:49:55:365 IST] 0000006b SystemOut     O A  test case 
[8/26/09 17:49:55:427 IST] 0000006b SystemOut     O Exception occured in snippet 'PrepareServiceCall': java.lang.StringIndexOutOfBoundsException
[8/26/09 17:49:55:427 IST] 0000006b SystemOut     O         ...
[8/26/09 17:49:55:427 IST] 0000006b SystemOut     O  8:     //String theOrder="This example uses a 70-byte fixed0123456789length flat text message";
[8/26/09 17:49:55:427 IST] 0000006b SystemOut     O  9: --> String orderNumber = theOrder.substring(0,7);
[8/26/09 17:49:55:443 IST] 0000006b SystemOut     O 10:     String orderRefStr = theOrder.substring(33,42);
[8/26/09 17:49:55:443 IST] 0000006b SystemOut     O         ...
[8/26/09 17:49:55:458 IST] 0000006b ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl initialize FFDC0009I: FFDC opened incident stream file C:\Program Files\IBM\WID61\pf\wps\logs\ffdc\server1_0000006b_09.08.26_17.49.55_0.txt
[8/26/09 17:49:55:474 IST] 0000006b ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\Program Files\IBM\WID61\pf\wps\logs\ffdc\server1_0000006b_09.08.26_17.49.55_0.txt
[8/26/09 17:49:56:161 IST] 0000006b BpelEngine    I   CWWBE0003E: An error occurred during the invocation of the activity implementation 'PrepareServiceCall'.
        java.lang.StringIndexOutOfBoundsException: null
[8/26/09 17:50:41:740 IST] 00000068 ServletWrappe I   SRVE0242I: [isclite] [/ibm/console] [/logon.jsp]: Initialization successful.
[8/26/09 17:50:41:786 IST] 00000068 SessionListen I SessionListener sessionCreated(HttpSessionEvent event) session with session ID=y1P-8VB_HdskQ9LWdBsWDm8getting created
Back to top
View user's profile Send private message
rudravarapu
PostPosted: Wed Aug 26, 2009 4:54 am    Post subject: Reply with quote

Newbie

Joined: 22 Jul 2009
Posts: 9

@Ratan

i have checked for IPPROCS for the queue am trying to fetch data. It is showing 2.
Back to top
View user's profile Send private message
WMBDEV1
PostPosted: Wed Aug 26, 2009 4:59 am    Post subject: Reply with quote

Sentinel

Joined: 05 Mar 2009
Posts: 888
Location: UK

rudravarapu wrote:
WMBDEV1 :
am using WPS. Checked the WPS log. find the part of the systemout log below.Can you tell me where can i check for the MQ trace?


This doesnt explain why you didnt run the WAS trace.

As for an MQ trace what did you try searching for before posting back on here? try "start mq trace" that should prove helpful.

But from your error....
Exception occured in snippet 'PrepareServiceCall': java.lang.StringIndexOutOfBoundsException

I suspect its not getting as far as making the MQ call. I'd look into the possible causes of this now.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Aug 26, 2009 9:16 am    Post subject: Reply with quote

Grand High Poobah

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

Probably due to your code. How fluent are you in JMS? How do you read the message? Did you explicitly "start" the connection before your receive operation? Also you must realize that when there is no message available the operation will return a null message object.... another reason for your index out of bounds exception... Finally have you considered all the transactionality implications? You cannot read/receive a message that has not yet been committed...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
rudravarapu
PostPosted: Fri Aug 28, 2009 2:53 am    Post subject: Reply with quote

Newbie

Joined: 22 Jul 2009
Posts: 9

WMBDEV1

am sry , i didn't try to google abt MQ Trace. now, am able to start the trace , but there are many files generated when i start the trace. i tried looking into them , but hardly ,i could find any error message. Can you please tell me which TRC file should i be looking into ?

Also, as i have said, the problem might be in WID as well. where in am using the EXPORT for fetching the data from queue. other way round may be that , the data is fetched correctly from the queue but there is some error assiging the fetched data to the local variable.

(For your ref i have followed the article : http://www.ibm.com/developerworks/websphere/library/techarticles/0802_fernandes/0802_fernandes.html)

fjb_saper

am jus a beginner in JMS. am currently reading the message using the EXPORT in WID. and regarding the commit, i am manually putting the messages into queue("put test message"). is there a problem with this?
Back to top
View user's profile Send private message
rudravarapu
PostPosted: Fri Aug 28, 2009 9:12 am    Post subject: Reply with quote

Newbie

Joined: 22 Jul 2009
Posts: 9

To add up,

from the article , i mentioned above, realized that the data binding class(InventoryCustomdataBinding) is not invoked. one reason i suspect is that , when we generate the MQ binding on business process, the request serialization type is not available in my case. could that be a reason of using MQ 7.0 with WID 6.1 ?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Aug 28, 2009 2:06 pm    Post subject: Reply with quote

Grand High Poobah

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

rudravarapu wrote:
To add up,

from the article , i mentioned above, realized that the data binding class(InventoryCustomdataBinding) is not invoked. one reason i suspect is that , when we generate the MQ binding on business process, the request serialization type is not available in my case. could that be a reason of using MQ 7.0 with WID 6.1 ?


The explanation is much more likely to be in here:
Code:
[8/26/09 17:49:39:443 IST] 0000005f ActivationSpe I   J2CA0523I: The Message Endpoint for ActivationSpec sca/MQBindings/ActivationSpec (com.ibm.ws.sib.ra.inbound.impl.SibRaActivationSpecImpl) and MDB Application MQBindingsApp#MQBindingsEJB.jar#ServiceSIBusMessageBean is activated.


Is this not rather for the SIBus JMS Engine than for MQ?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
rudravarapu
PostPosted: Fri Aug 28, 2009 10:50 pm    Post subject: Reply with quote

Newbie

Joined: 22 Jul 2009
Posts: 9

fjb_saper

Can you please make it more clear for me.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sun Aug 30, 2009 2:12 pm    Post subject: Reply with quote

Grand High Poobah

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

rudravarapu wrote:
fjb_saper

Can you please make it more clear for me.

Look it up. Different JMS providers.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
rudravarapu
PostPosted: Mon Aug 31, 2009 8:36 pm    Post subject: Reply with quote

Newbie

Joined: 22 Jul 2009
Posts: 9

but am using native MQ
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » WebSphere Process Server (WID/WPS/WAS+) » Unable to read from queue
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.