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 Message Broker (ACE) Support » Array Index Outofbound Exeption in FileInput node

Post new topic  Reply to topic
 Array Index Outofbound Exeption in FileInput node « View previous topic :: View next topic » 
Author Message
nmaddisetti
PostPosted: Thu Jul 30, 2009 10:20 am    Post subject: Array Index Outofbound Exeption in FileInput node Reply with quote

Centurion

Joined: 06 Oct 2004
Posts: 145

Hi All,

We are getting follwing exception in the file input node and our flow description is as follows

FileInput-->TryCatch-->Compute node-->Java Compute node

and TryCath catch termianl is connected with our exception handler and there is no Throw node connected after exception handler

we saw the exception in the user log that means it did not crossed TryCath node and exception showing FileInput node name.

FileInput node is configured to read files from FTP location and we have same kind of configuration in couple of other flows but only this flow alone giving exception and only in one environment

Can some one tell us what might be the issue.

Exception from User log:

Jul 30 12:35:11 mbq01 WebSphere Broker v6103[25565]: [ID 702911 user.error] (BrokerQ6101_1.eg2)[77]BIP2628E: Exception condition detected on input node 'Ack_997_MsgFlow.997_File_fromTAG'. : BrokerQ6101_1.3bac9ff9-1e01-0000-0080-b2b4cce9bb9b: /build/S610_P/src/DataFlowEngine/TemplateNodes/ImbInputTemplateNode.cpp: 509: ImbInputTemplateNode::run: ComIbmFileInputNode: Ack_997_MsgFlow#FCMComposite_1_1
Jul 30 12:35:11 mbq01 WebSphere Broker v6103[25565]: [ID 702911 user.error] (BrokerQ6101_1.eg2)[77]BIP4367E: The method 'readData' in Java node '997_File_fromTAG' has thrown the following exception: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0. : BrokerQ6101_1.3bac9ff9-1e01-0000-0080-b2b4cce9bb9b: /build/S610_P/src/DataFlowEngine/PluginInterface/com_ibm_broker_plugin_CMbService.cpp: 1840: ImbJavaExceptionUtils::throwableToNativeException: :
Jul 30 12:35:11 mbq01 WebSphere Broker v6103[25565]: [ID 702911 user.error] (BrokerQ6101_1.eg2)[77]BIP4395E: Java exception: 'java.lang.IndexOutOfBoundsException'; thrown from class name: 'java.util.ArrayList', method name: 'RangeCheck', file: 'ArrayList.java', line: '546' : BrokerQ6101_1.3bac9ff9-1e01-0000-0080-b2b4cce9bb9b: /build/S610_P/src/DataFlowEngine/PluginInterface/com_ibm_broker_plugin_CMbService.cpp: 1858: ImbJavaExceptionUtils::throwableToNativeException: :

Thanks,
Venkat.
Back to top
View user's profile Send private message
kishoreraju
PostPosted: Thu Jul 30, 2009 10:32 am    Post subject: Reply with quote

Disciple

Joined: 30 Sep 2004
Posts: 156

Can you please tell what is the input message format. generally we will see these kind of errors with we are parsing a Fixed width data using a messsage set(when lenght of the record is less the lenght total neumber elements in the message set).
Back to top
View user's profile Send private message
WMBDEV1
PostPosted: Thu Jul 30, 2009 10:46 am    Post subject: Reply with quote

Sentinel

Joined: 05 Mar 2009
Posts: 888
Location: UK

You dont say what version of broker you are using. Try upgrading to the latest version to see if it still occurs and if it does, its probably worth raising a PMR as it doesnt look like correct behaviour!

Also, how do you know the FTP operation has completed before you attempt to read the file?
Back to top
View user's profile Send private message
nmaddisetti
PostPosted: Thu Jul 30, 2009 11:21 am    Post subject: Reply with quote

Centurion

Joined: 06 Oct 2004
Posts: 145

Quote:
Can you please tell what is the input message format


We are reading text file and Mesage Domain used is : BLOB

Quote:
You dont say what version of broker you are using


We are using 6.1.0.3 on z/OS

Quote:
Also, how do you know the FTP operation has completed before you attempt to read the file?

Well, There is a chance that source application didnt write all the files completly and MB flow trying to read but in that scenario we saw different error like MB flow reading un matured file and creating 0kb file on the destination side. we fixed that one in couple of other scenarios and I agree that for this flow we didnt handled that but zero kb files we didnt see for this scenario and do you think un matured file reading result is the exception in my previous post.

Note: This flow is running in one execution group with multiple instances and MB flow is reading file using FTP option in the FileInput node

Thanks,
Venkat.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Jul 30, 2009 11:39 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

It is not my understanding that Java exceptions thrown inside a JCN will be caught by the Try/Catch node, unless you wrap them in MBExceptions and rethrow those.
Back to top
View user's profile Send private message
kimbert
PostPosted: Thu Jul 30, 2009 12:14 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Raise a PMR. This is either an internal error, or a very poorly-worded user error. IBM needs to know about it, either way.
Back to top
View user's profile Send private message
nmaddisetti
PostPosted: Thu Jul 30, 2009 12:22 pm    Post subject: Reply with quote

Centurion

Joined: 06 Oct 2004
Posts: 145

Quote:
It is not my understanding that Java exceptions thrown inside a JCN will be caught by the Try/Catch node, unless you wrap them in MBExceptions and rethrow those.

In JCN we are handling exceptions and throwing back MBUserException and I believe it will be handled by TryCatch

Thanks,
Venkat.

[/quote]
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Jul 30, 2009 12:45 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

nmaddisetti wrote:
Quote:
It is not my understanding that Java exceptions thrown inside a JCN will be caught by the Try/Catch node, unless you wrap them in MBExceptions and rethrow those.

In JCN we are handling exceptions and throwing back MBUserException and I believe it will be handled by TryCatch

Then I am forced to agree with everyone else.

Open a PMR.

But please perform the needed must gather *first*. And submit a usertrace at debug level of the flow as well.

http://www-01.ibm.com/support/docview.wss?rs=849&uid=swg21299775
Back to top
View user's profile Send private message
WMBDEV1
PostPosted: Thu Jul 30, 2009 1:35 pm    Post subject: Reply with quote

Sentinel

Joined: 05 Mar 2009
Posts: 888
Location: UK

mqjeff wrote:
It is not my understanding that Java exceptions thrown inside a JCN will be caught by the Try/Catch node, unless you wrap them in MBExceptions and rethrow those.


Ok... but to me it looked like the exception was being thrown in the FileInputNode. Apologies if I was off the mark.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Jul 30, 2009 6:05 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

WMBDEV1 wrote:
mqjeff wrote:
It is not my understanding that Java exceptions thrown inside a JCN will be caught by the Try/Catch node, unless you wrap them in MBExceptions and rethrow those.


Ok... but to me it looked like the exception was being thrown in the FileInputNode. Apologies if I was off the mark.


It didn't look entirely cut and dried that way. But without a usertrace and a copy of the flow, I can't say for sure.
Back to top
View user's profile Send private message
WMBDEV1
PostPosted: Fri Jul 31, 2009 12:35 am    Post subject: Reply with quote

Sentinel

Joined: 05 Mar 2009
Posts: 888
Location: UK

mqjeff wrote:

It didn't look entirely cut and dried that way. But without a usertrace and a copy of the flow, I can't say for sure.


Fair enough, I guess I was also trusting the op when he said...
Quote:
we saw the exception in the user log that means it did not crossed TryCath node and exception showing FileInput node name.
and so I had assuming this was pretty much all the trace he had but I see where you're coming from.
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 » WebSphere Message Broker (ACE) Support » Array Index Outofbound Exeption in FileInput node
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.