Description of problem: The Confirm button on rejecting a translation no longer works. An exception is thrown: 10:40:32,138 ERROR [org.zanata.webtrans.server.SeamDispatch] (http-/127.0.0.1:8080-1) Error dispatching action: java.lang.ClassCastException: org.hibernate.action.internal.EntityIdentityInsertAction cannot be cast to org.hibernate.action.internal.EntityInsertAction: java.lang.ClassCastException: org.hibernate.action.internal.EntityIdentityInsertAction cannot be cast to org.hibernate.action.internal.EntityInsertAction Version-Release number of selected component (if applicable): 3.5 How reproducible: Easy always Steps to Reproduce: 1. Go to any project where the user is a reviewer (or admin) 2. Select a version, language, document 3. On any translation target, enter some text and press the Reject (thumbs down) button Actual results: Nothing (except an exception) Expected results: Translation is set to rejected Additional info:
Related to issue in http://stackoverflow.com/questions/7412252/hibernate-java-lang-classcastexception-org-hibernate-action-entityidentityinser. Saving works when I remove this line from standalone.xml <property name="hibernate.order_inserts" value="true" />
Pull request: https://github.com/zanata/zanata-server/pull/594
Updated pull request to target release: https://github.com/zanata/zanata-server/pull/595
Verified on 3.5.0-SNAPSHOT (git-jenkins-zanata-server-build+verify-nightly-release-1167-299-ga85e7f8)