title: openfire error with no answers
body: <p>I am running openfire server as a basis for my chat server, but i am not happy with the robustness of the openfire, it seems to be having lot of java errors, </p>
  
  <p>java expert people who i talked to says that its all coding errors, that java exceptions hasn't handle correctly. Just want to know from a java expert is following errors are really java programming problem or a my server or settings problem.</p>
  
  <pre><code>java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  at java.util.ArrayList.RangeCheck(Unknown Source)
  at java.util.ArrayList.get(Unknown Source)
  at org.logicalcobwebs.proxool.util.FastArrayList.get(FastArrayList.java:475)
  at org.logicalcobwebs.proxool.ConnectionPool.getConnection(ConnectionPool.java:184)
  at org.logicalcobwebs.proxool.ProxoolDriver.connect(ProxoolDriver.java:89)
  at java.sql.DriverManager.getConnection(Unknown Source)
  at java.sql.DriverManager.getConnection(Unknown Source)
  at org.jivesoftware.database.DefaultConnectionProvider.getConnection(DefaultConnectionProvider.java:86)
  at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:124)
  at org.jivesoftware.openfire.spi.PresenceManagerImpl.userUnavailable(PresenceManagerImpl.java:280)
  at org.jivesoftware.openfire.handler.PresenceUpdateHandler.process(PresenceUpdateHandler.java:168)
  at org.jivesoftware.openfire.handler.PresenceUpdateHandler.process(PresenceUpdateHandler.java:135)
  at org.jivesoftware.openfire.handler.PresenceUpdateHandler.process(PresenceUpdateHandler.java:199)
  at org.jivesoftware.openfire.PresenceRouter.handle(PresenceRouter.java:149)
  at org.jivesoftware.openfire.PresenceRouter.route(PresenceRouter.java:85)
  at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:84)
  at org.jivesoftware.openfire.SessionManager$ClientSessionListener.onConnectionClose(SessionManager.java:1164)
  at org.jivesoftware.openfire.net.VirtualConnection.notifyCloseListeners(VirtualConnection.java:214)
  at org.jivesoftware.openfire.net.VirtualConnection.close(VirtualConnection.java:190)
  at org.jivesoftware.openfire.http.HttpSession$HttpVirtualConnection.systemShutdown(HttpSession.java:1008)
  at org.jivesoftware.openfire.spi.LocalRoutingTable.stop(LocalRoutingTable.java:146)
  at org.jivesoftware.openfire.spi.RoutingTableImpl.stop(RoutingTableImpl.java:857)
  at org.jivesoftware.openfire.XMPPServer.shutdownServer(XMPPServer.java:948)
  at org.jivesoftware.openfire.XMPPServer.access$700(XMPPServer.java:146)
  at org.jivesoftware.openfire.XMPPServer$ShutdownHookThread.run(XMPPServer.java:898)
  2012.11.24 05:50:37 org.jivesoftware.util.log.util.CommonsLogFactory - Problem
  java.sql.SQLException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  at org.logicalcobwebs.proxool.ConnectionPool.getConnection(ConnectionPool.java:235)
  at org.logicalcobwebs.proxool.ProxoolDriver.connect(ProxoolDriver.java:89)
  at java.sql.DriverManager.getConnection(Unknown Source)
  at java.sql.DriverManager.getConnection(Unknown Source)
  at org.jivesoftware.database.DefaultConnectionProvider.getConnection(DefaultConnectionProvider.java:86)
  at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:124)
  at org.jivesoftware.openfire.spi.PresenceManagerImpl.userUnavailable(PresenceManagerImpl.java:280)
  at org.jivesoftware.openfire.handler.PresenceUpdateHandler.process(PresenceUpdateHandler.java:168)
  at org.jivesoftware.openfire.handler.PresenceUpdateHandler.process(PresenceUpdateHandler.java:135)
  at org.jivesoftware.openfire.handler.PresenceUpdateHandler.process(PresenceUpdateHandler.java:199)
  at org.jivesoftware.openfire.PresenceRouter.handle(PresenceRouter.java:149)
  at org.jivesoftware.openfire.PresenceRouter.route(PresenceRouter.java:85)
  at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:84)
  at org.jivesoftware.openfire.SessionManager$ClientSessionListener.onConnectionClose(SessionManager.java:1164)
  at org.jivesoftware.openfire.net.VirtualConnection.notifyCloseListeners(VirtualConnection.java:214)
  at org.jivesoftware.openfire.net.VirtualConnection.close(VirtualConnection.java:190)
  at org.jivesoftware.openfire.http.HttpSession$HttpVirtualConnection.systemShutdown(HttpSession.java:1008)
  at org.jivesoftware.openfire.spi.LocalRoutingTable.stop(LocalRoutingTable.java:146)
  at org.jivesoftware.openfire.spi.RoutingTableImpl.stop(RoutingTableImpl.java:857)
  at org.jivesoftware.openfire.XMPPServer.shutdownServer(XMPPServer.java:948)
  at org.jivesoftware.openfire.XMPPServer.access$700(XMPPServer.java:146)
  at org.jivesoftware.openfire.XMPPServer$ShutdownHookThread.run(XMPPServer.java:898)   
  </code></pre>