[opencms-dev] somebody needs synchronisation ...

Ruben Malchow ruben at khm.de
Tue Sep 23 11:05:41 CEST 2008


hi,

the exception below is from an opencms7.05 installation that occurs when
an automated process logs on twice in two separate threads at pretty much
the same time ...

this is not exactly critical for us, we can delay the second login, but
still it seems that something should be synchronized and/or the statement
needs a change. i would definitely consider this a bug.

regards

ruben

------------------------------------------------

Caused by:
com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException:
Duplicate entry 'c300ba5c-01e8-3727-b305-5dcc9ccae1ee-USER_ADDRESS' for
key 1
	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)
	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985)
	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631)
	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)
	at com.mysql.jdbc.Connection.execSQL(Connection.java:3256)
	at
com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1313)
	at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1585)
	at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1500)
	at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1485)
	at
org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:102)
	at
org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:102)
	at
org.opencms.db.generic.CmsUserDriver.writeUserInfo(CmsUserDriver.java:1904)




More information about the opencms-dev mailing list