java.sql.BatchUpdateException: Invalid argument value, message from server: "Duplicate entry '2' for key 1"

Oracle Community | 3004 | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    How to use a MAP whithout join table

    Oracle Community | 1 decade ago | 3004
    java.sql.BatchUpdateException: Invalid argument value, message from server: "Duplicate entry '2' for key 1"
  2. 0

    kodo3-SQLServer exception

    Oracle Community | 1 decade ago | 3004
    java.sql.BatchUpdateException: com.jnetdirect.jsql.v: sp_cursoropen/sp_cursorprepare: el par__metro de la instrucci__n s__lo puede ser una selecci__n __nica o un solo procedimiento almacenado.

    Root Cause Analysis

    1. java.sql.BatchUpdateException

      Invalid argument value, message from server: "Duplicate entry '2' for key 1"

      at kodo.jdbc.sql.SQLExceptions.getFatalDataStore()
    2. kodo.jdbc.sql
      SQLExceptions.getFatalDataStore
      1. kodo.jdbc.sql.SQLExceptions.getFatalDataStore(SQLExceptions.java:42)
      2. kodo.jdbc.sql.SQLExceptions.getFatalDataStore(SQLExceptions.java:24)
      2 frames
    3. kodo.jdbc.runtime
      JDBCStoreManager.flush
      1. kodo.jdbc.runtime.JDBCStoreManager.flush(JDBCStoreManager.java:594)
      1 frame
    4. kodo.runtime
      PersistenceManagerImpl.commit
      1. kodo.runtime.DelegatingStoreManager.flush(DelegatingStoreManager.java:152)
      2. kodo.runtime.PersistenceManagerImpl.flushInternal(PersistenceManagerImpl.java:964)
      3. kodo.runtime.PersistenceManagerImpl.beforeCompletion(PersistenceManagerImpl.java:813)
      4. kodo.runtime.LocalManagedRuntime.commit(LocalManagedRuntime.java:69)
      5. kodo.runtime.PersistenceManagerImpl.commit(PersistenceManagerImpl.java:542)
      5 frames
    5. tutorial
      CreateTranslatableDescription.main
      1. tutorial.CreateTranslatableDescription.main(CreateTranslatableDescription.java:48)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:324)
      4 frames
    7. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(Unknown Source)
      1 frame