SQL Parent key not found publishing multi-language file asset
Here is the stacktrace when I try to publish a multi-language file asset (pdf):
2013-01-09 16:52:20,543 WARN net.sf.hibernate.util.JDBCExceptionReporter - SQL Error: 2291, SQLState: 23000 2013-01-09 16:52:20,543 ERROR net.sf.hibernate.util.JDBCExceptionReporter - ORA-02291: integrity constraint (DOTCMSALB.CONTENTIDENTIFIERFK) violated - parent key not found
2013-01-09 16:52:20,544 ERROR net.sf.hibernate.impl.SessionImpl - Could not synchronize database state with session 2013-01-09 16:52:32,897 ERROR com.dotcms.content.elasticsearch.business.ESContentletAPIImpl - Unable to save/update Object to Hibernate Session 2013-01-09 16:52:32,897 ERROR com.dotcms.content.elasticsearch.business.ESContentletAPIImpl - com.dotmarketing.exception.DotHibernateException: Unable to save/update Object to Hibernate Session 2013-01-09 16:52:32,914 ERROR com.dotcms.publisher.business.PublisherAPIImpl - Unable to save/update Object to Hibernate Session com.dotcms.publishing.DotPublishingException: Unable to save/update Object to Hibernate Session at com.dotcms.publisher.receiver.handler.ContentHandler.handleContents(ContentHandler.java:132) at com.dotcms.publisher.receiver.handler.ContentHandler.handle(ContentHandler.java:55) at com.dotcms.publisher.receiver.BundlePublisher.process(BundlePublisher.java:134) at com.dotcms.rest.BundlePublisherResource$PublishThread.run(BundlePublisherResource.java:121) at java.lang.Thread.run(Thread.java:662) Caused by: com.dotmarketing.exception.DotHibernateException: Unable to save/update Object to Hibernate Session at com.dotmarketing.db.HibernateUtil.saveOrUpdate(HibernateUtil.java:458) at com.dotcms.content.elasticsearch.business.ESContentFactoryImpl.save(ESContentFactoryImpl.java:1357) at com.dotcms.content.elasticsearch.business.ESContentFactoryImpl.save(ESContentFactoryImpl.java:1343) at com.dotcms.content.elasticsearch.business.ESContentletAPIImpl.checkin(ESContentletAPIImpl.java:2085) at com.dotcms.content.elasticsearch.business.ESContentletAPIImpl.checkin(ESContentletAPIImpl.java:1937) at com.dotcms.content.elasticsearch.business.ESContentletAPIImpl.checkin(ESContentletAPIImpl.java:1933) at com.dotcms.content.elasticsearch.business.ESContentletAPIImpl.checkin(ESContentletAPIImpl.java:1890) at com.dotmarketing.portlets.contentlet.business.ContentletAPIInterceptor.checkin(ContentletAPIInterceptor.java:259) at com.dotcms.publisher.receiver.handler.ContentHandler.publish(ContentHandler.java:157) at com.dotcms.publisher.receiver.handler.ContentHandler.handleContents(ContentHandler.java:113) ... 4 more Caused by: net.sf.hibernate.exception.ConstraintViolationException: could not update: [com.dotmarketing.portlets.contentlet.business.Contentlet#4476c7fc-7fa4-4ff3-8b97-664fb82e588e] at net.sf.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:73) 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.update(NormalizedEntityPersister.java:675) at net.sf.hibernate.persister.NormalizedEntityPersister.update(NormalizedEntityPersister.java:639) at net.sf.hibernate.impl.ScheduledUpdate.execute(ScheduledUpdate.java:52) 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:2393) at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2261) at com.dotmarketing.db.HibernateUtil.saveOrUpdate(HibernateUtil.java:456) ... 13 more Caused by: java.sql.SQLException: ORA-02291: integrity constraint (DOTCMSALB.CONTENTIDENTIFIERFK) violated - parent key not found
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:74)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:110)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:171)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1030)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:947)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1222)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3381)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3462)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1061)
at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:102)
at net.sf.hibernate.persister.NormalizedEntityPersister.update(NormalizedEntityPersister.java:664)
... 20 more
Currently we don't really support this and would expect different different files to be created.
We will address this post 2.5 release
The problem is that I cannot do correctly remote publishing without this feature. In your opinion, what's the problem about this task? What's the difference between file asset publishing and normal contentlet publishing?
Is this sender or receiver side.
Thanks, Jason S. Tesser Director, Support Services dotCMS, Inc. T: 305.858.1422 x7003 http://twitter.com/dotCMS www.dotcms.com
On Wed, Jan 9, 2013 at 12:26 PM, almontic [email protected] wrote:
The problem is that I cannot do correctly remote publishing without this feature. In your opinion, what's the problem about this task? What's the difference between file asset publishing and normal contentlet publishing?
— Reply to this email directly or view it on GitHubhttps://github.com/dotCMS/dotCMS/issues/1790#issuecomment-12056411.
It's the receiver side
Yes I see in the stack. For now this isn't something that will work. We can get this going in 2.5.1 I think.