1 Reply Latest reply on Jun 22, 2006 8:51 AM by Ramil Israfilov

    strange exception during JUnit tests with EJB3 embeddable

    Ramil Israfilov Newbie

      We use EJB3 embeddabel RC8 for JUNIT tests of our EJBs.
      After moving to RC8 version we have strange problem on JDK1.5_07 running on windows.
      From junit log file:
      64952 [main] INFO org.hibernate.impl.SessionFactoryImpl - closing
      64983 [main] ERROR junit.certipost.customers.belgacom.transformation.SignEncryptSplitTest - java.lang.RuntimeException: java.lang.IndexOutOfBoundsException: Index: 7, Size: 7
      java.lang.RuntimeException: java.lang.RuntimeException: java.lang.IndexOutOfBoundsException: Index: 7, Size: 7
      at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.scanClasspath(EJB3StandaloneBootstrap.java:296)
      at junit.certipost.customers.belgacom.transformation.SignEncryptSplitTest.startupEmbeddedJboss(SignEncryptSplitTest.java:204)
      at junit.certipost.customers.belgacom.transformation.SignEncryptSplitTest$1.setUp(SignEncryptSplitTest.java:142)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:18)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.extensions.TestSetup.run(TestSetup.java:23)
      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:297)
      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:672)
      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:567)
      Caused by: java.lang.RuntimeException: java.lang.IndexOutOfBoundsException: Index: 7, Size: 7
      at org.jboss.ejb3.MCKernelAbstraction.install(MCKernelAbstraction.java:95)
      at org.jboss.ejb3.Ejb3Deployment.registerEJBContainer(Ejb3Deployment.java:439)
      at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:486)
      at org.jboss.ejb3.embedded.EJB3StandaloneDeployer.start(EJB3StandaloneDeployer.java:460)
      at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.scanClasspath(EJB3StandaloneBootstrap.java:291)
      ... 8 more
      Caused by: java.lang.IndexOutOfBoundsException: Index: 7, Size: 7
      at EDU.oswego.cs.dl.util.concurrent.CopyOnWriteArrayList.rangeCheck(CopyOnWriteArrayList.java:752)
      at EDU.oswego.cs.dl.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:372)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:341)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:438)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:379)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:225)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:151)
      at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:79)
      at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:73)
      at org.jboss.ejb3.MCKernelAbstraction.install(MCKernelAbstraction.java:91)
      ... 12 more

      Strange thing if we run the same test on Solaris JVM (AMD64 platform) with JDK1.5_01 we never had such error.
      Does someone had such error ?