com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry 'XXXX@gtalk.jivesoftware.com' for key 1

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

Samebug tips

,

Check whether privilege has the "not null" restriction. If so it always has to have a value and can never be null.

A different reason could be a wrong implementation of a foreign key. Check whether you always correctly insert/update in both tables.

Solutions on the web

via Jive Software Open Source by Daniel Henninger, 1 year ago
Duplicate entry 'XXXX@gtalk.jivesoftware.com' for key 1
via Jive Software Open Source by Daniel Henninger, 1 year ago
Duplicate entry 'XXXX@gtalk.jivesoftware.com' for key 1
via JIRA by Daniel Henninger, 1 year ago
Duplicate entry 'XXXX@gtalk.jivesoftware.com' for key 1
via Stack Overflow by atom.gregg
, 2 years ago
Cannot delete or update a parent row: a foreign key constraint fails (`db`.`car`, CONSTRAINT `FK_d66e39k3mjo6voey53j5uv7ox` FOREIGN KEY (`USER_ID`) REFERENCES `user` (`ID`))
via Stack Overflow by repo
, 2 years ago
Cannot delete or update a parent row: a foreign key constraint fails (`CT2_szet`.`User_competenciesValue`, CONSTRAINT `FK_887tayi9xe3w6xw8jv2cui829` FOREIGN KEY (`competenciesValue_KEY`) REFERENCES `Competency` (`id`))
com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry 'XXXX@gtalk.jivesoftware.com' for key 1
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
at com.mysql.jdbc.Util.getInstance(Util.java:381)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1016)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:957)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3376)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3308)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1837)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1961)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2543)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1737)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2022)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1940)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1925)
at org.jivesoftware.openfire.gateway.avatars.Avatar.insertIntoDb(Avatar.java:227)
at org.jivesoftware.openfire.gateway.avatars.Avatar.(Avatar.java:109)
at org.jivesoftware.openfire.gateway.protocols.xmpp.XMPPListener$1.run(XMPPListener.java:147)

Users with the same issue

2 times, 1 year ago
3 times, 4 weeks ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
70 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.