cancel
Showing results for 
Search instead for 
Did you mean: 

Upgrade 1.3 preview => 1.3 RC2

tonytony
Champ in-the-making
Champ in-the-making
Getting problems getting Alfresco to apply patches. please see error


11:45:03,609 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply …
11:45:03,796 ERROR [org.hibernate.util.JDBCExceptionReporter] Duplicate entry 'patch.topLevelGroupParentChildAs' for key 1
11:45:03,812 ERROR [org.hibernate.event.def.AbstractFlushingEventListener] Could not synchronize database state with session
org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
   at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
   at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
   at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:202)
   at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:235)
   at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:139)
   at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(Abst….. bla blah blah….

Any ideas? I'm stuck.

thanks

tony
2 REPLIES 2

tonytony
Champ in-the-making
Champ in-the-making
sorry,

I had a clean install of 1.3 preview edition, and I installed 1.3 release candidate. When I start it, I get an error message on tomcat, and the above snippet in the alfresco.log.

Looks like some sort fo database error, but I don't understand what.

bartr
Champ in-the-making
Champ in-the-making
I guess you'll have figured it out by now, but for any other people running into the same problem:
The 'id'-column of the table 'applied_patches' had a length of 32 in 1.3preview, while the id of the patch that is being installed is longer than 32 characters. Altering the length to 64 characters and restarting Tomcat solves the issue.

Regards,

Bart