OpenJPA
  1. OpenJPA
  2. OPENJPA-295

ArrayIndexOutofBoundsException when under load and within a managed Transaction

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.6
    • Fix Version/s: 1.0.1, 1.1.0
    • Component/s: jpa
    • Labels:
      None
    • Environment:
      openjpa running under WebSphere development builds, as well as Geronimo development builds

      Description

      Recent development builds of our WAS products as well as the Geronimo project are seeing exceptions when running under load. An example of the exception is below:

      Caused by:
      java.lang.ArrayIndexOutOfBoundsException
      at java.util.ArrayList.add(ArrayList.java:378)
      at org.apache.openjpa.kernel.AbstractBrokerFactory.syncWithManagedTransaction(AbstractBrokerFactory.java:684)
      ... 39 more

      This is the deepest trace I can get with the actual exception, but the wrappering exception shows this stack trace for geronimo:

      <1.0.0-SNAPSHOT-SNAPSHOT nonfatal general error> org.apache.openjpa.persistence.PersistenceException: null
      at org.apache.openjpa.kernel.AbstractBrokerFactory.syncWithManagedTransaction(AbstractBrokerFactory.java:690)
      at org.apache.openjpa.kernel.BrokerImpl.initialize(BrokerImpl.java:304)
      at org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:182)
      at org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:142)
      at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:190)
      at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:55)
      at org.apache.geronimo.persistence.CMPEntityManagerTxScoped.createEntityManager(CMPEntityManagerTxScoped.java:74)
      at org.apache.geronimo.persistence.CMPEntityManagerTxScoped.getEntityManager(CMPEntityManagerTxScoped.java:55)
      at org.apache.geronimo.persistence.CMPEntityManagerTxScoped.createNamedQuery(CMPEntityManagerTxScoped.java:259)
      at org.apache.geronimo.samples.daytrader.ejb3.TradeSLSBBean.getClosedOrders(TradeSLSBBean.java:335)

      This is happening in two separate products with two different JTA implementations, and also both of these products were working at one point.

      Any ideas?

      1. OPENJPA-295.diff.txt
        13 kB
        Michael Dick
      2. openjpa-295.patch
        11 kB
        Craig L Russell
      3. OPENJPA295.patch
        6 kB
        Marc Prud'hommeaux

        Issue Links

          Activity

            People

            • Assignee:
              Michael Dick
              Reporter:
              Rob Wisniewski
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development