ArrayIndexOutOfBoundsException « Update « JPA Q&A





1. ArrayIndexOutOfBoundsException on save()    forum.hibernate.org

I keep getting an ArrayIndexOutOfBoundsException whenever I try to save() a mapped class. The class is a subclass (implements an interface) and is populated correctly (based on toString() debug output), but everytime it attempts to save, it throws that exception. Everything else is working (the site is 99% read only), so I have things setup correctly AFAICT. I've used p6spy to ...

2. ArrayIndexOutOfBoundsException when save    forum.hibernate.org

Emmanuel, Thanks for your reply. I downloaded the jtds jar file and put "net.sourceforge.jtds.jdbc.Driver" for the driver. It says "java.sql.SQLException: No suitable driver". Actually, I don't think it is driver problem. If I removed the two set BigDecimal statements in my java file, it works fine. The other tables with BigDecimal also work fine. It is really weird. Can you give ...

3. ArrayIndexOutOfBoundsException during update by rowid    forum.hibernate.org

protected String[] getSQLUpdateByRowIdStrings() { if ( sqlUpdateByRowIdString == null ) { throw new AssertionFailure( "no update by row id" ); } String[] result = new String[getTableSpan()]; result[0] = ...