Skip to content

Instantly share code, notes, and snippets.

@cfalzone
Created April 21, 2014 13:33
Show Gist options
  • Select an option

  • Save cfalzone/11142844 to your computer and use it in GitHub Desktop.

Select an option

Save cfalzone/11142844 to your computer and use it in GitHub Desktop.
Push fail on stag
2014-04-21 09:34:35,563 INFO com.dotcms.rest.PublishThread - : [BundleID: e9ffd410-5214-4d6f-b0e5-4754f855b8a8.tar.gz] Started bundle publish process
2014-04-21 09:34:35,751 INFO com.dotmarketing.business.DotGuavaCacheAdministratorImpl - *** Building Cache : workflowstepcache, size:1000, toDisk:false,Concurrency:32
2014-04-21 09:34:35,877 INFO com.dotcms.enterprise.publishing.remote.handler.StructureHandler - : [BundleID: e9ffd410-5214-4d6f-b0e5-4754f855b8a8.tar.gz] Structure published. Id: 33888b6f-7a8e-4069-b1b6-5c1aa9d0a48d
2014-04-21 09:34:35,884 WARN net.sf.hibernate.util.JDBCExceptionReporter - SQL Error: 0, SQLState: 23505
2014-04-21 09:34:35,884 ERROR net.sf.hibernate.util.JDBCExceptionReporter - ERROR: duplicate key value violates unique constraint "unique_struct_vel_var_name"
Detail: Key (velocity_var_name)=(aquentAds) already exists.
2014-04-21 09:34:35,884 ERROR net.sf.hibernate.impl.SessionImpl - Could not synchronize database state with session
2014-04-21 09:34:35,886 ERROR com.dotcms.publisher.business.PublisherAPIImpl - Error Publishing Bundle: Unable to flush Hibernate Session
com.dotcms.publishing.DotPublishingException: Unable to flush Hibernate Session
at com.dotcms.enterprise.publishing.remote.handler.StructureHandler.a(SourceFile:216)
at com.dotcms.enterprise.publishing.remote.handler.StructureHandler.handle(SourceFile:62)
at com.dotcms.publisher.receiver.BundlePublisher.process(BundlePublisher.java:137)
at com.dotcms.rest.PublishThread.run(PublishThread.java:42)
at java.lang.Thread.run(Thread.java:724)
Caused by: com.dotmarketing.exception.DotHibernateException: Unable to flush Hibernate Session
at com.dotmarketing.db.HibernateUtil.saveWithPrimaryKey(HibernateUtil.java:821)
at com.dotmarketing.portlets.structure.factories.StructureFactory.saveStructure(StructureFactory.java:413)
at com.dotcms.enterprise.publishing.remote.handler.StructureHandler.a(SourceFile:100)
... 4 more
Caused by: net.sf.hibernate.exception.ConstraintViolationException: could not insert: [com.dotmarketing.portlets.structure.model.Structure#b2b8d007-d083-4106-8523-49f64bdfd1e3]
at net.sf.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:62)
at net.sf.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
at net.sf.hibernate.persister.AbstractEntityPersister.convert(AbstractEntityPersister.java:1331)
at net.sf.hibernate.persister.NormalizedEntityPersister.insert(NormalizedEntityPersister.java:464)
at net.sf.hibernate.persister.NormalizedEntityPersister.insert(NormalizedEntityPersister.java:426)
at net.sf.hibernate.impl.ScheduledInsertion.execute(ScheduledInsertion.java:37)
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2449)
at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2435)
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2392)
at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2261)
at com.dotmarketing.db.HibernateUtil.saveWithPrimaryKey(HibernateUtil.java:819)
... 6 more
Caused by: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "unique_struct_vel_var_name"
Detail: Key (velocity_var_name)=(aquentAds) already exists.
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2102)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1835)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:500)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:388)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:334)
at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:102)
at net.sf.hibernate.persister.NormalizedEntityPersister.insert(NormalizedEntityPersister.java:454)
... 13 more
2014-04-21 09:34:35,926 INFO com.dotcms.rest.PublishThread - : [BundleID: e9ffd410-5214-4d6f-b0e5-4754f855b8a8.tar.gz] Finished bundle publish process
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment