Author |
Message
|
nmaddisetti |
Posted: Thu Jul 30, 2009 10:20 am Post subject: Array Index Outofbound Exeption in FileInput node |
|
|
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 |
|
 |
kishoreraju |
Posted: Thu Jul 30, 2009 10:32 am Post subject: |
|
|
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 |
|
 |
WMBDEV1 |
Posted: Thu Jul 30, 2009 10:46 am Post subject: |
|
|
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 |
|
 |
nmaddisetti |
Posted: Thu Jul 30, 2009 11:21 am Post subject: |
|
|
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 |
|
 |
mqjeff |
Posted: Thu Jul 30, 2009 11:39 am Post subject: |
|
|
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 |
|
 |
kimbert |
Posted: Thu Jul 30, 2009 12:14 pm Post subject: |
|
|
 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 |
|
 |
nmaddisetti |
Posted: Thu Jul 30, 2009 12:22 pm Post subject: |
|
|
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 |
|
 |
mqjeff |
Posted: Thu Jul 30, 2009 12:45 pm Post subject: |
|
|
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 |
|
 |
WMBDEV1 |
Posted: Thu Jul 30, 2009 1:35 pm Post subject: |
|
|
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 |
|
 |
mqjeff |
Posted: Thu Jul 30, 2009 6:05 pm Post subject: |
|
|
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 |
|
 |
WMBDEV1 |
Posted: Fri Jul 31, 2009 12:35 am Post subject: |
|
|
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 |
|
 |
|