[Proxool-user] java.lang.IndexOutOfBoundsException who can help me?
UNMAINTAINED!
Brought to you by:
billhorsman
From: lxy <as...@gm...> - 2009-08-26 09:21:30
|
Hi: I was encounted a IndexOutOfBoundsException yestoday when I do the performance testing. I just make 60 new sessions per second to query database by Proxool-rc3, may be after 1hour, the followed exception occured: 15:46:58,879 ERROR [ConnectionPool] Problem getting connection *java.lang.IndexOutOfBoundsException: Index: 0, Size: 0* at java.util.ArrayList.RangeCheck(ArrayList.java:546) at java.util.ArrayList.get(ArrayList.java:321) at org.logicalcobwebs.proxool.util.FastArrayList.get(FastArrayList.java:475) at org.logicalcobwebs.proxool.ConnectionPool.getConnection(* ConnectionPool.java:190*) at org.logicalcobwebs.proxool.ProxoolDataSource.getConnection(ProxoolDataSource.java:97) at com.component.eds.db.HostGuestDSDefaultImpl.innerGetConnection(HostGuestDSDefaultImpl.java:608) so I look for the source code and found something like this: ConnectionPool.java, Line190 177 // By doing this in a try/catch we avoid needing to synch on the size(). We need to do be 178 // able to cope with connections being removed whilst we are going round this loop 179 try { 180 proxyConnection = (ProxyConnection) proxyConnections.get(nextAvailableConnection); 181 } catch (ArrayIndexOutOfBoundsException e) { 182 // This is thrown by a Vector (which we no longer use), but is 183 // kept here for a while. 184 nextAvailableConnection = 0; 185 proxyConnection = (ProxyConnection) proxyConnections.get(nextAvailableConnection); 186 } catch (IndexOutOfBoundsException e) { 187 // This is thrown by a true List 189 nextAvailableConnection = 0; 190 * proxyConnection = (ProxyConnection) proxyConnections.get(nextAvailableConnection);* // line 190 191 } the line 190 not included by a catch block for exception *IndexOutOfBoundsException *and the lastest source is same like this. I donnt know is this is a bug or not, anybody can help me ? thanks a lot! Best Regards. -- ****ASTROXL**** ^y^ |