<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ACTIVITI 6 + Spring-Boot 1.5 : MySQLIntegrityConstraintViolationException in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/activiti-6-spring-boot-1-5/m-p/36269#M15291</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm playing with Spring-Boot 1.5.9.RELEASE and Activiti 6.0.0 + MySQL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I started with one datasource, and&amp;nbsp;then to 2 datasources, one for activiti, one for business entity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to change the activiti settings, to ping jdbc pool, set max transaction to 80. (And i have also a&amp;nbsp;Timeout: Pool empty. Unable to fetch a connection in 30 seconds, none available[size:100; busy:100; idle:0; lastwait:30000], but this a second issue, il will create another "post")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i have some jobs running at the same time, i have this issue :&amp;nbsp;&lt;SPAN&gt;MySQLIntegrityConstraintViolationException.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Even if i use one 1 or 2 datasource, even if i change some settings.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Bpm is compose with a "start event", some "service task" (with java class behind), this tasks are "asynchronus" and "exclusive", some "exclusive gateway" (&lt;SPAN&gt;"not asynchronus" &amp;amp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"exclusive"&lt;/SPAN&gt;) between services, and the "end &lt;SPAN&gt;event"&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2018-01-23 02:38:41,396 [SimpleAsyncTaskExecutor-347760] ERROR o.a.e.i.a.ExecuteAsyncRunnable - Job 352123 failed&lt;BR /&gt;org.apache.ibatis.exceptions.PersistenceException: &lt;BR /&gt;### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (`botactiviti`.`act_ru_variable`, CONSTRAINT `ACT_FK_VAR_EXE` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `act_ru_execution` (`ID_`))&lt;BR /&gt;### The error may involve org.activiti.engine.impl.persistence.entity.ExecutionEntityImpl.deleteExecution-Inline&lt;BR /&gt;### The error occurred while setting parameters&lt;BR /&gt;### SQL: delete from ACT_RU_EXECUTION where ID_ = ? and REV_ = ?&lt;BR /&gt;### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (`botactiviti`.`act_ru_variable`, CONSTRAINT `ACT_FK_VAR_EXE` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `act_ru_execution` (`ID_`))&lt;BR /&gt; at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)&lt;BR /&gt; at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:200)&lt;BR /&gt; at org.apache.ibatis.session.defaults.DefaultSqlSession.delete(DefaultSqlSession.java:213)&lt;BR /&gt; at org.activiti.engine.impl.db.DbSqlSession.flushDeleteEntities(DbSqlSession.java:770)&lt;BR /&gt; at org.activiti.engine.impl.db.DbSqlSession.flushDeletes(DbSqlSession.java:733)&lt;BR /&gt; at org.activiti.engine.impl.db.DbSqlSession.flush(DbSqlSession.java:419)&lt;BR /&gt; at org.activiti.engine.impl.interceptor.CommandContext.flushSessions(CommandContext.java:197)&lt;BR /&gt; at org.activiti.engine.impl.interceptor.CommandContext.close(CommandContext.java:75)&lt;BR /&gt; at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:72)&lt;BR /&gt; at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:47)&lt;BR /&gt; at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)&lt;BR /&gt; at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:45)&lt;BR /&gt; at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:29)&lt;BR /&gt; at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:44)&lt;BR /&gt; at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:39)&lt;BR /&gt; at org.activiti.engine.impl.asyncexecutor.ExecuteAsyncRunnable.executeJob(ExecuteAsyncRunnable.java:97)&lt;BR /&gt; at org.activiti.engine.impl.asyncexecutor.ExecuteAsyncRunnable.run(ExecuteAsyncRunnable.java:75)&lt;BR /&gt; at java.lang.Thread.run(Thread.java:745)&lt;BR /&gt;Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (`botactiviti`.`act_ru_variable`, CONSTRAINT `ACT_FK_VAR_EXE` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `act_ru_execution` (`ID_`))&lt;BR /&gt; at sun.reflect.GeneratedConstructorAccessor155.newInstance(Unknown Source)&lt;BR /&gt; at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)&lt;BR /&gt; at java.lang.reflect.Constructor.newInstance(Constructor.java:408)&lt;BR /&gt; at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)&lt;BR /&gt; at com.mysql.jdbc.Util.getInstance(Util.java:408)&lt;BR /&gt; at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:935)&lt;BR /&gt; at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3973)&lt;BR /&gt; at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3909)&lt;BR /&gt; at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2527)&lt;BR /&gt; at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2680)&lt;BR /&gt; at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2487)&lt;BR /&gt; at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1858)&lt;BR /&gt; at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1197)&lt;BR /&gt; at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source)&lt;BR /&gt; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt; at java.lang.reflect.Method.invoke(Method.java:483)&lt;BR /&gt; at org.apache.tomcat.jdbc.pool.StatementFacade$StatementProxy.invoke(StatementFacade.java:114)&lt;BR /&gt; at com.sun.proxy.$Proxy102.execute(Unknown Source)&lt;BR /&gt; at org.apache.ibatis.executor.statement.PreparedStatementHandler.update(PreparedStatementHandler.java:46)&lt;BR /&gt; at org.apache.ibatis.executor.statement.RoutingStatementHandler.update(RoutingStatementHandler.java:74)&lt;BR /&gt; at org.apache.ibatis.executor.SimpleExecutor.doUpdate(SimpleExecutor.java:50)&lt;BR /&gt; at org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:117)&lt;BR /&gt; at org.apache.ibatis.executor.CachingExecutor.update(CachingExecutor.java:76)&lt;BR /&gt; at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:198)&lt;BR /&gt; ... 16 common frames omitted&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jan 2018 10:25:01 GMT</pubDate>
    <dc:creator>dgosset</dc:creator>
    <dc:date>2018-01-23T10:25:01Z</dc:date>
    <item>
      <title>ACTIVITI 6 + Spring-Boot 1.5 : MySQLIntegrityConstraintViolationException</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-6-spring-boot-1-5/m-p/36269#M15291</link>
      <description>Hi Community,I'm playing with Spring-Boot 1.5.9.RELEASE and Activiti 6.0.0 + MySQLI started with one datasource, and&amp;nbsp;then to 2 datasources, one for activiti, one for business entity.I tried to change the activiti settings, to ping jdbc pool, set max transaction to 80. (And i have also a&amp;nbsp;Timeout: Poo</description>
      <pubDate>Tue, 23 Jan 2018 10:25:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-6-spring-boot-1-5/m-p/36269#M15291</guid>
      <dc:creator>dgosset</dc:creator>
      <dc:date>2018-01-23T10:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: ACTIVITI 6 + Spring-Boot 1.5 : MySQLIntegrityConstraintViolationException</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-6-spring-boot-1-5/m-p/36270#M15292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;Can you share &lt;SPAN&gt;the process definitions and&amp;nbsp;&lt;/SPAN&gt;the source code service tasks in which the&amp;nbsp;issue are reproduced?&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&amp;gt;&amp;nbsp;But when i have some jobs running at the same time, i have this issue :&amp;nbsp;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;MySQLIntegrityConstraintViolationException.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;Please tell me more about this content.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;gt; Even if i use one 1 or 2 datasource, even if i change some settings.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;Does not the&amp;nbsp;issue reproduce if the setting is the default?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Jan 2018 13:18:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-6-spring-boot-1-5/m-p/36270#M15292</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-28T13:18:15Z</dc:date>
    </item>
  </channel>
</rss>

