java.sql.SQLException

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.

  • DB2 Batch Update Problem
    via by 3004,
    • java.sql.SQLException: Database operation failed. Update count for SQL statement was -2. Statement: INSERT INTO DB2ADMIN ANIMAL (JDOCLASS, JDOID, JDOVERSION, NAME0, PRICE) VALUES (?, ?, ?, ?, ?) at kodo.jdbc.runtime.PreparedStatementManager.checkUpdate(PreparedStatementManager.java:259) at kodo.jdbc.runtime.PreparedStatementManager.flush(PreparedStatementManager.java:207) at kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:170) at kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:71) at kodo.jdbc.runtime.JDBCStoreManager.flush(JDBCStoreManager.java:507) at kodo.runtime.DelegatingStoreManager.flush(DelegatingStoreManager.java:158) at kodo.runtime.PersistenceManagerImpl.flushInternal(PersistenceManagerImpl.java:788) at kodo.runtime.PersistenceManagerImpl.beforeCompletion(PersistenceManagerImpl.java:644) at kodo.runtime.LocalManagedRuntime.commit(LocalManagedRuntime.java:69) at kodo.runtime.PersistenceManagerImpl.commit(PersistenceManagerImpl.java:416) at tutorial.SeedDatabase.main(SeedDatabase.java:32)
    No Bugmate found.