Hmm... this shouldn't happen. Probably the server was shutdown previously in the middle of a transaction or something like that. As this happens in the object link table, you could probably try to delete the duplicate row without any consequences.


Regards,
 Serge Huber.

chris markiewicz wrote:

I believe there is a minor error in one of my custom templates.  It is a
modification of the stock left_menu page.  I consistently see the error
shown below when I navigate to a page that uses this menu.  Note that
the page behaves normally, the error only appears in the log.

Also note that I do have a container field named "link" - which matches
the text in the error message ("Cannot store link...").

I can post the code if you like.  Thanks for your time.

chris

1968654 [Thread-21] ERROR - ERROR : Cannot store link in the database,
Invalid argument value,  message from server: "Duplicate entry '183697'
for key 1"
java.sql.SQLException: Invalid argument value,  message from server:
"Duplicate entry '183697' for key 1"
       at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1876)
       at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1098)
       at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1192)
       at com.mysql.jdbc.Connection.execSQL(Connection.java:2051)
       at
com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1308)
       at
org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPr
eparedStatement.java:168)
       at
org.jahia.services.database.PreparedStatementWrapper.execute(PreparedSta
tementWrapper.java:68)
       at
org.jahia.content.ObjectLinkDB.createObjectLink(ObjectLinkDB.java:639)
       at org.jahia.content.ObjectLink.createLink(ObjectLink.java:76)
       at
org.jahia.content.CrossReferenceManager.setObjectXRef(CrossReferenceMana
ger.java:256)
       at
org.jahia.content.ContentContainerListsXRefManager.setAbsoluteContainerL
istPageID(ContentContainerListsXRefManager.java:135)
       at
org.jahia.engines.core.Core_Engine.handleAbsoluteReferencesChanges(Core_
Engine.java:288)
       at
org.jahia.engines.core.Core_Engine.postProcessCore(Core_Engine.java:200)
       at
org.jahia.engines.core.Core_Engine.handleActions(Core_Engine.java:108)
       at
org.jahia.operations.OperationManager.handleOperations(OperationManager.
java:279)
       at org.jahia.bin.JahiaAction.execute(JahiaAction.java:50)
       at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
ocessor.java:484)
       at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
274)
       at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
       at org.jahia.bin.Jahia.process(Jahia.java:1477)
       at org.jahia.bin.Jahia.service(Jahia.java:796)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)







Reply via email to