The ArrayIndexOutOfBoundsException means that "the code" is being asked to access an array by number (index), and the number passed is larger (or smaller) then the number of elements in the array. The array could be empty which - if a network connection was needed to fill it - is quite possible.

The array in question could be one you've created in your application - or one created by OpenBD in order to process a command in your app. The "natural" Java error would indicate the later, but I imagine that every OpenBD array tag and function may not fail with a CF friendly message  - even if you brought on this condition yourself.

Those other issues you're seeing (like Network Error) might be flowing out of this - as the Java error could just be halting the thread and leaving the connection open. Or not ;-]

In these cases, my course has traditionally been to try to inventory ALL the array collections created (by me or CF) to service the process in question, and painstakingly determine what would happen if each one were the wrong size than assumed? A typical culprit is a loop, drawn on something with a dynamic length. Then I place a dump, throw or message at that point (where ArrayLen() lte 0 - for example).

I imagine that you folks probably know all of this already, but I was just putting here for the benefit of those who may follow someday.

Al


On 11/27/2013 10:44 AM, [email protected] wrote:
Hi there.  Our web application is on CentOS Linux 5.9 and we are using Apache, Tomcat, MySQL, and OpenBD.  Unfortunately I can't find where to tell what version of OpenBD we're currently on.  Our application is very AJAX-intensive (hand-written in _javascript_, no JSON), and at peak hours we receive several dozen web requests per minute.  Over the past few weeks we have been receiving more and more complaints of random errors with increasing frequency.  It has been incredibly hard to duplicate these errors since they seem to follow no rhyme or reason and can happen anywhere on the site at any time.  We also receive complaints about the pages often running very slow even though their and our network connections seem perfectly fine.  I have finally observed that many of the errors coming from Ajax simply report "NetworkError".
 
We noticed our Bluedragon logs were filling up rapidly (25 mb) with tons of...
 
11/06/13 14:26.46: Error decoding CLIENT data: java.lang.ArrayIndexOutOfBoundsException
 
So in bluedragon.xml (never could get the administrator to work on this build for some reason), we changed our <clientstorage> from local to our datasource, and that stopped these errors.  However, the problems for our clients have only continued to grow.  I did a netstat on our server, and we seem to have about 70 or so of these from various IP addresses...
 
tcp   0      0  www.ourwebsite.net:https   (ip address):17168     TIME_WAIT
 
I'm not sure if that is a lot or not, but our current reigning theory is that the connections are maxing out and not clearing fast enough.  That would at least explain the random nature of the network errors.  I found a post about Tomcat where someone mentions solving a similar issue by changing the following...
 
1) Changing the maxWait parameter in the context.xml file to "15" (15sec) to remove the closed connection.
2) Changed the removeAbandonedTimeout to "15" from 60 to lessen the time that the closed connections are removed
3) Changed the timeBetweenEvictionRunsMillis from 180000 to 900
 
However, I cannot find these fields in \\opt\openbd\tomcat\conf\context.xml.  I can't find them anywhere.  Can someone please help me figure out where to change these values or offer other suggestions of what might be wrong?
 
- Matt C
 
--
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en
 
---
You received this message because you are subscribed to the Google Groups "Open BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

--
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en
 
---
You received this message because you are subscribed to the Google Groups "Open BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to