0 Replies Latest reply on Mar 22, 2002 11:06 PM by sbm5c2j8

    ejbSelect bug in JBoss3-beta2 ?

    sbm5c2j8 Newbie

      I am getting ArrayIndexOutOfBoundsException when calling ejbSelect from home method. This code works OK with beta1.

      my environment: Windows 2000, JVM 1.3.1


      <query-method>
      <method-name>ejbSelectValuesBetween</method-name>
      <method-params>
      <method-param>java.lang.Integer</method-param>
      <method-param>java.lang.Integer</method-param>
      </method-params>
      </query-method>
      <ejb-ql>
      <![CDATA[SELECT OBJECT(o)
      FROM TestSimple AS o
      WHERE o.id BETWEEN ?1 AND ?2
      ]]>
      </ejb-ql>


      2002-03-22 20:54:10,743 INFO [myunit.ejb.SimpleTest] select the values between 1 and 5
      2002-03-22 20:54:10,743 ERROR [mytest.entity.TestSimpleEJB] ejbHomeGetValuesBetwen failed
      java.lang.ArrayIndexOutOfBoundsException
      at mytest.entity.TestSimpleEJB$Proxy.ejbSelectValuesBetween()
      at mytest.entity.TestSimpleEJB.ejbHomeGetValuesBetween(TestSimpleEJB.java:52)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1080)
      at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:73)
      at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:222)
      at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:134)
      at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:79)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:98)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:167)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:52)
      at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:102)
      at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:109)
      at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:468)
      at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invokeHome(BaseLocalContainerInvoker.java:243)
      at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker$HomeProxy.invoke(BaseLocalContainerInvoker.java:367)
      at $Proxy12.getValuesBetween(Unknown Source)
      at myunit.ejb.SimpleTest.testSimple(SimpleTest.java:92)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.apache.cactus.AbstractTestCase.runServerTest(AbstractTestCase.java:491)
      at org.apache.cactus.AbstractTestCase.runBareServerTest(AbstractTestCase.java:456)
      at org.apache.cactus.server.AbstractTestCaller.doTest(AbstractTestCaller.java:137)
      at org.apache.cactus.server.AbstractTestController.handleRequest(AbstractTestController.java:122)
      at org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java:134)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:326)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:572)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1356)
      at org.mortbay.jetty.servlet.FilterHandler$Chain.doFilter(FilterHandler.java:368)
      at org.mortbay.jetty.servlet.FilterHandler.handle(FilterHandler.java:228)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1356)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1309)
      at org.mortbay.http.HttpServer.service(HttpServer.java:744)
      at org.jboss.jetty.Jetty.service(Jetty.java:530)
      at org.mortbay.http.HttpConnection.service(HttpConnection.java:743)
      at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:916)
      at org.mortbay.http.HttpConnection.handle(HttpConnection.java:758)
      at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:145)
      at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:287)
      at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:715)
      at java.lang.Thread.run(Thread.java:484)