3 Replies Latest reply on May 1, 2004 4:49 PM by Adrian Brock

    ArrayIndexOutOfBoundsException when self-made Connector work

    Yury Newbie

      We have developed two Connectors. Both of them throw ArrayIndexOutOfBoundsException while heavily tested.

      While trying to shutdown system:

      2004-04-30 10:43:19,807 WARN [org.jboss.resource.connectionmanager.IdleRemover] run: IdleRemover ignored unexpected runtime exception
      java.lang.ArrayIndexOutOfBoundsException: 10
      at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.removeTimedOut(InternalManagedConnectionPool.java:361)
      at org.jboss.resource.connectionmanager.IdleRemover$1.run(IdleRemover.java:70)
      at java.lang.Thread.run(Thread.java:536)


      2004-04-30 10:43:24,833 ERROR [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Stopping failed
      java.lang.ArrayIndexOutOfBoundsException: 10
      at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.flush(InternalManagedConnectionPool.java:345)
      at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.shutdown(InternalManagedConnectionPool.java:393)
      at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.shutdown(JBossManagedConnectionPool.java:574)
      at org.jboss.resource.connectionmanager.JBossManagedConnectionPool.stopService(JBossManagedConnectionPool.java:399)
      at org.jboss.system.ServiceMBeanSupport.stop(ServiceMBeanSupport.java:240)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
      at $Proxy14.stop(Unknown Source)
      at org.jboss.system.ServiceController.stop(ServiceController.java:471)
      at org.jboss.system.ServiceController.stop(ServiceController.java:462)
      at org.jboss.system.ServiceController.stop(ServiceController.java:462)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy17.stop(Unknown Source)
      at org.jboss.resource.RARDeployer.stop(RARDeployer.java:177)
      at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:489)
      at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:504)
      at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:472)
      at org.jboss.deployment.MainDeployer.shutdown(MainDeployer.java:359)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.system.server.ServerImpl$ShutdownHook.shutdownDeployments(ServerImpl.java:849)
      at org.jboss.system.server.ServerImpl$ShutdownHook.shutdown(ServerImpl.java:824)
      at org.jboss.system.server.ServerImpl$ShutdownHook.run(ServerImpl.java:812)


      A little bit earlier we see the following:
      2004-04-30 11:20:30,220 TRACE [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Getting connection from pool [InUse/Available/Max]: [1/11/10]

      We suppose it is a BUG. We can give you any sources you need to figure out what is happaning.