com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry 'http://localhost:7080/awsapi' for key 'mhost_uq_host'

cloudstack-users-cn | 李强 | 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

    com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException:

    cloudstack-users-cn | 2 years ago | 李强
    com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry 'http://localhost:7080/awsapi' for key 'mhost_uq_host'
  2. 0

    [jira] [Created] (CLOUDSTACK-6988) Entity exists exception during parallel creation of subnet rules

    apache.org | 2 years ago
    com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '738-2' for key 'acl_id'
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Bundled item can not update in cart

    GitHub | 3 years ago | watermelonjuice
    org.springframework.dao.DataIntegrityViolationException: Cannot delete or update a parent row: a foreign key constraint fails (`bl3`.`BLC_PAYMENT_RESPONSE_ITEM`, CONSTRAINT `FK807B8F32BE7DFC59` FOREIGN KEY (`PAYMENT_INFO_REFERENCE_NUMBER`) REFERENCES `BLC_ORDER_PAYMENT` (`REFERENCE_NUMBER`)); SQL [n/a]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (`bl3`.`BLC_PAYMENT_RESPONSE_ITEM`, CONSTRAINT `FK807B8F32BE7DFC59` FOREIGN KEY (`PAYMENT_INFO_REFERENCE_NUMBER`) REFERENCES `BLC_ORDER_PAYMENT` (`REFERENCE_NUMBER`))
  5. 0

    Duplicate entry '1' for key 'UK_tbce3olw19taxx6srova86xok'

    Stack Overflow | 3 years ago | Vad
    org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement
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. com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException

    Duplicate entry 'http://localhost:7080/awsapi' for key 'mhost_uq_host'

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0()
  2. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    4 frames
  3. MySQL jdbc
    PreparedStatement.executeUpdate
    1. com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
    2. com.mysql.jdbc.Util.getInstance(Util.java:386)
    3. com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1040)
    4. com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3597)
    5. com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3529)
    6. com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1990)
    7. com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2151)
    8. com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2625)
    9. com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2119)
    10. com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2415)
    11. com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2333)
    12. com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2318)
    12 frames
  4. Commons DBCP
    DelegatingPreparedStatement.executeUpdate
    1. org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
    2. org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
    3. org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
    3 frames
  5. com.cloud.utils
    GenericDaoBase.persist
    1. com.cloud.utils.db.GenericDaoBase.persist(GenericDaoBase.java:1363)
    1 frame
  6. com.cloud.bridge
    MHostDaoImpl_EnhancerByCloudStack_49c373a5_FastClassByCloudStack_ddbcff29.invoke
    1. com.cloud.bridge.persist.dao.MHostDaoImpl_EnhancerByCloudStack_49c373a5.CGLIB$persist$25(<generated>)
    2. com.cloud.bridge.persist.dao.MHostDaoImpl_EnhancerByCloudStack_49c373a5_FastClassByCloudStack_ddbcff29.invoke(<generated>)
    2 frames
  7. IDEA
    MethodProxy.invokeSuper
    1. net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
    1 frame
  8. com.cloud.utils
    ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept
    1. com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:122)
    1 frame
  9. com.cloud.bridge
    ServiceProvider_EnhancerByCloudStack_d6edd905_FastClassByCloudStack_dd4dbbcf.invoke
    1. com.cloud.bridge.persist.dao.MHostDaoImpl_EnhancerByCloudStack_49c373a5.persist(<generated>)
    2. com.cloud.bridge.service.controller.s3.ServiceProvider.setupHost(ServiceProvider.java:312)
    3. com.cloud.bridge.service.controller.s3.ServiceProvider.initialize(ServiceProvider.java:242)
    4. com.cloud.bridge.service.controller.s3.ServiceProvider_EnhancerByCloudStack_d6edd905.CGLIB$initialize$1(<generated>)
    5. com.cloud.bridge.service.controller.s3.ServiceProvider_EnhancerByCloudStack_d6edd905_FastClassByCloudStack_dd4dbbcf.invoke(<generated>)
    5 frames
  10. IDEA
    MethodProxy.invokeSuper
    1. net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
    1 frame
  11. com.cloud.utils
    ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept
    1. com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:122)
    1 frame
  12. com.cloud.bridge
    ServiceProvider.configure
    1. com.cloud.bridge.service.controller.s3.ServiceProvider_EnhancerByCloudStack_d6edd905.initialize(<generated>)
    2. com.cloud.bridge.service.controller.s3.ServiceProvider.configure(ServiceProvider.java:115)
    2 frames
  13. com.cloud.utils
    ComponentContext.initComponentsLifeCycle
    1. com.cloud.utils.component.ComponentContext.initComponentsLifeCycle(ComponentContext.java:116)
    1 frame
  14. com.cloud.bridge
    EC2MainServlet.init
    1. com.cloud.bridge.service.EC2MainServlet.init(EC2MainServlet.java:69)
    1 frame
  15. Glassfish Core
    Catalina.start
    1. org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
    2. org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
    3. org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4425)
    4. org.apache.catalina.core.StandardContext.start(StandardContext.java:4738)
    5. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
    6. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
    7. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
    8. org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)
    9. org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
    10. org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
    11. org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
    12. org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
    13. org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
    14. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    15. org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
    16. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    17. org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    18. org.apache.catalina.core.StandardService.start(StandardService.java:516)
    19. org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    20. org.apache.catalina.startup.Catalina.start(Catalina.java:593)
    20 frames
  16. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  17. Glassfish Core
    Bootstrap.main
    1. org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    2. org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    2 frames