com.liferay.portal.kernel.events.ActionException: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "assetentry_pkey"

liferay.com | 8 months 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

    RE: Upgrade 5.2.3 to 6.0.5 - Forums | Liferay

    liferay.com | 1 year ago
    com.liferay.portal.kernel.events.ActionException: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "assetentry_pkey"
  2. 0

    RE: Upgrade 5.2.3 to 6.0.5 - Forums | Liferay

    liferay.com | 1 year ago
    com.liferay.portal.kernel.events.ActionException: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "assetentry_pkey"
  3. 0

    Upgrade 5.2.3 to 6.0.5 - Forums | Liferay

    liferay.com | 2 years ago
    com.liferay.portal.kernel.events.ActionException: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "assetentry_pkey"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Upgrade 5.2.3 to 6.0.5 - 论坛 | Liferay

    liferay.com | 2 years ago
    com.liferay.portal.kernel.events.ActionException: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "assetentry_pkey"
  6. 0

    RE: Upgrade 5.2.3 to 6.0.5 - Forums | Liferay

    liferay.com | 1 year ago
    com.liferay.portal.kernel.events.ActionException: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "assetentry_pkey"
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.postgresql.util.PSQLException

    ERROR: duplicate key value violates unique constraint "assetentry_pkey"

    at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse()
  2. PostgreSQL JDBC Driver
    AbstractJdbc2Statement.executeUpdate
    1. org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2062)
    2. org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1795)
    3. org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)
    4. org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:479)
    5. org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:367)
    6. org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:321)
    6 frames
  3. Embedded GlassFish Web
    PreparedStatementWrapper.executeUpdate
    1. com.sun.gjc.spi.base.PreparedStatementWrapper.executeUpdate(PreparedStatementWrapper.java:108)
    1 frame
  4. Liferay Portal Impl
    UpgradeAsset.doUpgrade
    1. com.liferay.portal.upgrade.v6_0_0.UpgradeAsset.addEntry(UpgradeAsset.java:137)
    2. com.liferay.portal.upgrade.v6_0_0.UpgradeAsset.updateAssetEntries(UpgradeAsset.java:466)
    3. com.liferay.portal.upgrade.v6_0_0.UpgradeAsset.doUpgrade(UpgradeAsset.java:386)
    3 frames
  5. Liferay Portal Service
    UpgradeProcess.upgrade
    1. com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:111)
    2. com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:130)
    2 frames
  6. Liferay Portal Impl
    UpgradeProcess_6_0_0.doUpgrade
    1. com.liferay.portal.upgrade.UpgradeProcess_6_0_0.doUpgrade(UpgradeProcess_6_0_0.java:45)
    1 frame
  7. Liferay Portal Service
    UpgradeProcess.upgrade
    1. com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:111)
    1 frame
  8. Liferay Portal Impl
    MainServlet.init
    1. com.liferay.portal.upgrade.UpgradeProcessUtil._upgradeProcess(UpgradeProcessUtil.java:80)
    2. com.liferay.portal.upgrade.UpgradeProcessUtil.upgradeProcess(UpgradeProcessUtil.java:37)
    3. com.liferay.portal.events.StartupHelper.upgradeProcess(StartupHelper.java:73)
    4. com.liferay.portal.events.StartupHelperUtil.upgradeProcess(StartupHelperUtil.java:40)
    5. com.liferay.portal.tools.DBUpgrader.upgrade(DBUpgrader.java:94)
    6. com.liferay.portal.events.StartupAction.doRun(StartupAction.java:117)
    7. com.liferay.portal.events.StartupAction.run(StartupAction.java:47)
    8. com.liferay.portal.servlet.MainServlet.processStartupEvents(MainServlet.java:1166)
    9. com.liferay.portal.servlet.MainServlet.init(MainServlet.java:199)
    9 frames
  9. JavaServlet
    GenericServlet.init
    1. javax.servlet.GenericServlet.init(GenericServlet.java:242)
    1 frame
  10. Glassfish Core
    StandardContext.start
    1. org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1428)
    2. org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1230)
    3. org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5007)
    4. org.apache.catalina.core.StandardContext.start(StandardContext.java:5280)
    4 frames
  11. Glassfish
    WebModule.start
    1. com.sun.enterprise.web.WebModule.start(WebModule.java:499)
    1 frame
  12. Glassfish Core
    StandardHost.addChild
    1. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928)
    2. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912)
    3. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694)
    3 frames
  13. Glassfish
    WebApplication.start
    1. com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1947)
    2. com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1619)
    3. com.sun.enterprise.web.WebApplication.start(WebApplication.java:90)
    3 frames
  14. Private APIs of Glassfish
    ApplicationInfo.start
    1. org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)
    2. org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241)
    3. org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236)
    3 frames
  15. Kernel Classes
    ApplicationLoaderService.postConstruct
    1. com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:339)
    2. com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:362)
    3. com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:185)
    3 frames
  16. Inversion of Control / Autodependency mechanism
    ConstructorWomb$1.run
    1. com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:174)
    2. com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:87)
    2 frames
  17. Java RT
    AccessController.doPrivileged
    1. java.security.AccessController.doPrivileged(Native Method)
    1 frame
  18. Inversion of Control / Autodependency mechanism
    AbstractInhabitantImpl.get
    1. com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:84)
    2. com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
    3. com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
    4. com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
    5. com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
    5 frames
  19. Kernel Classes
    AppServerStartup.start
    1. com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:236)
    2. com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:128)
    2 frames
  20. HK2 core module
    Main.launch
    1. com.sun.enterprise.module.bootstrap.Main.launch(Main.java:457)
    2. com.sun.enterprise.module.bootstrap.Main.launch(Main.java:401)
    2 frames
  21. HK2 OSGi Adapter
    HK2Main.start
    1. org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:125)
    1 frame
  22. Apache Felix Framework
    BundleImpl.start
    1. org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:640)
    2. org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)
    3. org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
    4. org.apache.felix.framework.BundleImpl.start(BundleImpl.java:915)
    4 frames
  23. org.jvnet.hk2
    Main.start
    1. org.jvnet.hk2.osgimain.Main.start(Main.java:140)
    1 frame
  24. Apache Felix Framework
    StartLevelImpl.run
    1. org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:640)
    2. org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)
    3. org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
    4. org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077)
    5. org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
    5 frames
  25. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:619)
    1 frame