cancel
Showing results for 
Search instead for 
Did you mean: 

Inconsistent DuplicateKeyException

Former Member
0 Kudos

Hi,

I'm getting those Exceptions, (deeply nested)

com.sap.dbtech.jdbc.exceptions.BatchUpdateExceptionSapDB: [250] (at 2): Duplicate secondary key:EIC_TYPES_I(input position 3)

com.sap.sql.DuplicateKeyException

instead of

javax.ejb.DuplicateKeyException

is this compliant?

anyway it's ugly ...

Accepted Solutions (0)

Answers (1)

Answers (1)

adrian_goerler
Active Participant
0 Kudos

Hi Konrad,

to my knowledge, javax.ejb.DuplicateKeyException is an EJB 2.1 exception indicating the atempt to create an entity bean, which already exists.

The com.sap.sql.DuplicateKeyException in an SQLException, which indicates a unique constraint violation on the database.

I hope this helps.

-Adrian