java.lang.ArrayIndexOutOfBoundsException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • running "ant eg" on Hibernate 3.0 beta 1 gives an ArrayIndexOutOfBoundsException when generating the test data. The tables were created fine, it's the insertion of the test data that breaks. [java] Setting up some test data [java] 12:20:08,341 INFO DriverManagerConnectionProvider:147 - cleaning up connection pool: jdbc:oracle:thin:@xxx:1521:xxx [java] 12:20:08,697 ERROR AbstractBatcher:71 - Exception executing batch: [java] java.lang.ArrayIndexOutOfBoundsException: 1 [java] Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1 [java] at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:56) [java] at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:56) [java] at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:148) [java] at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:148) [java] at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:69) [java] at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:69) [java] at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:65) [java] at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:65) [java] at org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:125) [java] at org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:125) [java] at org.hibernate.persister.BasicEntityPersister.insert(BasicEntityPersister.java:1653) [java] at org.hibernate.persister.BasicEntityPersister.insert(BasicEntityPersister.java:1653) [java] at org.hibernate.persister.BasicEntityPersister.insert(BasicEntityPersister.java:2012) [java] at org.hibernate.persister.BasicEntityPersister.insert(BasicEntityPersister.java:2012) [java] at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:42) [java] at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:42) [java] at org.hibernate.impl.ActionQueue.executeActions(ActionQueue.java:232) [java] at org.hibernate.impl.ActionQueue.executeActions(ActionQueue.java:232) [java] at org.hibernate.impl.ActionQueue.executeActions(ActionQueue.java:137) [java] at org.hibernate.impl.ActionQueue.executeActions(ActionQueue.java:137) [java] at org.hibernate.event.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:255) [java] at org.hibernate.event.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:255) [java] at org.hibernate.event.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26) [java] at org.hibernate.event.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26) [java] at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:814) [java] at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:814) [java] at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:75) [java] at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:75) [java] at org.hibernate.auction.Main.createTestAuctions(Main.java:345) [java] at org.hibernate.auction.Main.createTestAuctions(Main.java:345) [java] at org.hibernate.auction.Main.main(Main.java:366) [java] at org.hibernate.auction.Main.main(Main.java:366) BUILD FAILED file:/home/colin/downloads/hibernate-3.0/build.xml:619: Java returned: 1 Total time: 4 seconds
    via by Colin Wilson-Salt,
  • running "ant eg" on Hibernate 3.0 beta 1 gives an ArrayIndexOutOfBoundsException when generating the test data. The tables were created fine, it's the insertion of the test data that breaks. [java] Setting up some test data [java] 12:20:08,341 INFO DriverManagerConnectionProvider:147 - cleaning up connection pool: jdbc:oracle:thin:@xxx:1521:xxx [java] 12:20:08,697 ERROR AbstractBatcher:71 - Exception executing batch: [java] java.lang.ArrayIndexOutOfBoundsException: 1 [java] Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1 [java] at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:56) [java] at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:56) [java] at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:148) [java] at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:148) [java] at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:69) [java] at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:69) [java] at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:65) [java] at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:65) [java] at org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:125) [java] at org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:125) [java] at org.hibernate.persister.BasicEntityPersister.insert(BasicEntityPersister.java:1653) [java] at org.hibernate.persister.BasicEntityPersister.insert(BasicEntityPersister.java:1653) [java] at org.hibernate.persister.BasicEntityPersister.insert(BasicEntityPersister.java:2012) [java] at org.hibernate.persister.BasicEntityPersister.insert(BasicEntityPersister.java:2012) [java] at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:42) [java] at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:42) [java] at org.hibernate.impl.ActionQueue.executeActions(ActionQueue.java:232) [java] at org.hibernate.impl.ActionQueue.executeActions(ActionQueue.java:232) [java] at org.hibernate.impl.ActionQueue.executeActions(ActionQueue.java:137) [java] at org.hibernate.impl.ActionQueue.executeActions(ActionQueue.java:137) [java] at org.hibernate.event.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:255) [java] at org.hibernate.event.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:255) [java] at org.hibernate.event.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26) [java] at org.hibernate.event.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26) [java] at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:814) [java] at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:814) [java] at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:75) [java] at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:75) [java] at org.hibernate.auction.Main.createTestAuctions(Main.java:345) [java] at org.hibernate.auction.Main.createTestAuctions(Main.java:345) [java] at org.hibernate.auction.Main.main(Main.java:366) [java] at org.hibernate.auction.Main.main(Main.java:366) BUILD FAILED file:/home/colin/downloads/hibernate-3.0/build.xml:619: Java returned: 1 Total time: 4 seconds
    via by Colin Wilson-Salt,
    • java.lang.ArrayIndexOutOfBoundsException: 1 at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:56) at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:56) at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:148) at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:148) at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:69) at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:69) at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:65) at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:65) at org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:125) at org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:125) at org.hibernate.persister.BasicEntityPersister.insert(BasicEntityPersister.java:1653) at org.hibernate.persister.BasicEntityPersister.insert(BasicEntityPersister.java:1653) at org.hibernate.persister.BasicEntityPersister.insert(BasicEntityPersister.java:2012) at org.hibernate.persister.BasicEntityPersister.insert(BasicEntityPersister.java:2012) at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:42) at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:42) at org.hibernate.impl.ActionQueue.executeActions(ActionQueue.java:232) at org.hibernate.impl.ActionQueue.executeActions(ActionQueue.java:232) at org.hibernate.impl.ActionQueue.executeActions(ActionQueue.java:137) at org.hibernate.impl.ActionQueue.executeActions(ActionQueue.java:137) at org.hibernate.event.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:255) at org.hibernate.event.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:255) at org.hibernate.event.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26) at org.hibernate.event.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:814) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:814) at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:75) at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:75) at org.hibernate.auction.Main.createTestAuctions(Main.java:345) at org.hibernate.auction.Main.createTestAuctions(Main.java:345) at org.hibernate.auction.Main.main(Main.java:366) at org.hibernate.auction.Main.main(Main.java:366)
    No Bugmate found.