Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 3004, 1 year ago
Database operation failed. Update count for SQL statement was -2. Statement: INSERT INTO DB2ADMIN ANIMAL (JDOCLASS, JDOID, JDOVERSION, NAME0, PRICE) VALUES (?, ?, ?, ?, ?)
java.sql.SQLException: Database operation failed. Update count for SQLstatement was -2. Statement: INSERT INTO DB2ADMINANIMAL (JDOCLASS, JDOID, JDOVERSION, NAME0, PRICE) VALUES (?, ?, ?, ?, ?) at kodo.jdbc.runtime.PreparedStatementManager.checkUpdate( at kodo.jdbc.runtime.PreparedStatementManager.flush( at kodo.jdbc.runtime.UpdateManagerImpl.flush( at kodo.jdbc.runtime.UpdateManagerImpl.flush( at kodo.jdbc.runtime.JDBCStoreManager.flush( at kodo.runtime.DelegatingStoreManager.flush( at kodo.runtime.PersistenceManagerImpl.flushInternal( at kodo.runtime.PersistenceManagerImpl.beforeCompletion( at kodo.runtime.LocalManagedRuntime.commit( at kodo.runtime.PersistenceManagerImpl.commit( at tutorial.SeedDatabase.main(