org.hibernate.exception.ConstraintViolationException: could not execute statement ->

Google Groups | oronzo lezzi | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    how to remove user with artefact

    Google Groups | 2 years ago | oronzo lezzi
    org.hibernate.exception.ConstraintViolationException: could not execute statement ->

    Root Cause Analysis

    1. org.hibernate.exception.ConstraintViolationException

      could not execute statement ->

      at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert()
    2. org.hibernate.jpa
      QueryImpl.getResultList
      1. org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1763)
      2. org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1677)
      3. org.hibernate.jpa.internal.QueryImpl.getResultList(QueryImpl.java:458)
      3 frames
    3. org.olat.portfolio
      EPFrontendManager.deleteUserData
      1. org.olat.portfolio.manager.EPStructureManager.getStructureElementsForUser(EPStructureManager.java:200)
      2. org.olat.portfolio.manager.EPFrontendManager.getStructureElementsForUser(EPFrontendManager.java:687)
      3. org.olat.portfolio.manager.EPFrontendManager.deleteUserData(EPFrontendManager.java:159)
      3 frames
    4. org.olat.admin
      DirectDeleteController.event
      1. org.olat.admin.user.delete.service.UserDeletionManager.deleteIdentity(UserDeletionManager.java:306)
      2. org.olat.admin.user.delete.DirectDeleteController.deleteIdentities(DirectDeleteController.java:176)
      3. org.olat.admin.user.delete.DirectDeleteController.event(DirectDeleteController.java:124)
      3 frames
    5. org.olat.core
      ThreadLocalUserActivityLoggerInstaller.runWithUserActivityLogger
      1. org.olat.core.gui.control.DefaultController$1.run(DefaultController.java:246)
      2. org.olat.core.logging.activity.ThreadLocalUserActivityLoggerInstaller.runWithUserActivityLogger(ThreadLocalUserActivityLoggerInstaller.java:108)
      2 frames