<?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 Re: Missing table 'ACT_RU_JOB' with h2 database issue with 5.16.x in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/missing-table-act-ru-job-with-h2-database-issue-with-5-16-x/m-p/192433#M145563</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How's your Activiti config looking? Is it actually creating the database tables?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Oct 2014 08:58:20 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2014-10-20T08:58:20Z</dc:date>
    <item>
      <title>Missing table 'ACT_RU_JOB' with h2 database issue with 5.16.x</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/missing-table-act-ru-job-with-h2-database-issue-with-5-16-x/m-p/192430#M145560</link>
      <description>My unit tests give me below error when i execute test suite with h2 database. Please note it works fine with Postgres.Caused by: org.h2.jdbc.JdbcSQLException: Table "ACT_RU_JOB" not found; SQL statement:select &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;RES.*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from ACT_RU_JOB RES&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;LEFT OUTER JOIN ACT_RU_EXECUTION</description>
      <pubDate>Thu, 16 Oct 2014 20:34:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/missing-table-act-ru-job-with-h2-database-issue-with-5-16-x/m-p/192430#M145560</guid>
      <dc:creator>dharmesh</dc:creator>
      <dc:date>2014-10-16T20:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Missing table 'ACT_RU_JOB' with h2 database issue with 5.16.x</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/missing-table-act-ru-job-with-h2-database-issue-with-5-16-x/m-p/192431#M145561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Difficult to say anything without your unit test code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2014 06:36:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/missing-table-act-ru-job-with-h2-database-issue-with-5-16-x/m-p/192431#M145561</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2014-10-17T06:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Missing table 'ACT_RU_JOB' with h2 database issue with 5.16.x</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/missing-table-act-ru-job-with-h2-database-issue-with-5-16-x/m-p/192432#M145562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is one of the basic test with activiti and I am having feeling that it is something on my machine causing this. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But why it works with postgres!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unit Test:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;@RunWith(SpringJUnit4ClassRunner.class)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;@ContextConfiguration(locations={"classpath:META-INF/spring/test-context.xml"})&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public class TestBasicWorkflow extends ActivitiTestBase{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; @Test()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; public void validateXML() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; repositoryService.createDeployment().addClasspathResource("workflow/basic.bpmn20.xml").deploy();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ProcessInstance pi = runtimeService.startProcessInstanceByKey("dcrApprovalProcess_basic");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; completeNextSingleTask(pi);//Create DCR&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; completeNextSingleTask(pi);//Edit DCR&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; completeNextSingleTask(pi);//Review DCR&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; assertEquals(true, isClosed(pi));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected void completeNextSingleTask(ProcessInstance pi){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; TaskQuery query = taskService.createTaskQuery()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .processInstanceId(pi.getProcessInstanceId());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Task task = query.singleResult();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; taskService.complete(task.getId());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Workflow XML:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;definitions xmlns="&lt;/SPAN&gt;&lt;A href="http://www.omg.org/spec/BPMN/20100524/MODEL" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/BPMN/20100524/MODEL&lt;/A&gt;&lt;SPAN&gt;" xmlns:activiti="&lt;/SPAN&gt;&lt;A href="http://activiti.org/bpmn" rel="nofollow noopener noreferrer"&gt;http://activiti.org/bpmn&lt;/A&gt;&lt;SPAN&gt;" xmlns:bpmndi="&lt;/SPAN&gt;&lt;A href="http://www.omg.org/spec/BPMN/20100524/DI" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/BPMN/20100524/DI&lt;/A&gt;&lt;SPAN&gt;" xmlns&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;mgdc="&lt;/SPAN&gt;&lt;A href="http://www.omg.org/spec/DD/20100524/DC" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/DD/20100524/DC&lt;/A&gt;&lt;SPAN&gt;" xmlns&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;mgdi="&lt;/SPAN&gt;&lt;A href="http://www.omg.org/spec/DD/20100524/DI" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/DD/20100524/DI&lt;/A&gt;&lt;SPAN&gt;" xmlns:tns="&lt;/SPAN&gt;&lt;A href="http://www.activiti.org/test" rel="nofollow noopener noreferrer"&gt;http://www.activiti.org/test&lt;/A&gt;&lt;SPAN&gt;" xmlns:xsd="&lt;/SPAN&gt;&lt;A href="http://www.w3.org/2001/XMLSchema" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;&lt;SPAN&gt;" xmlns:xsi="&lt;/SPAN&gt;&lt;A href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;&lt;SPAN&gt;" xmlns:yaoqiang="&lt;/SPAN&gt;&lt;A href="http://bpmn.sourceforge.net" rel="nofollow noopener noreferrer"&gt;http://bpmn.sourceforge.net&lt;/A&gt;&lt;SPAN&gt;" exporter="Yaoqiang BPMN Editor" exporterVersion="2.2.18 (GPLv3, Non-Commercial)" expressionLanguage="&lt;/SPAN&gt;&lt;A href="http://www.w3.org/1999/XPath" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/1999/XPath&lt;/A&gt;&lt;SPAN&gt;" id="_1408998459866" name="" targetNamespace="&lt;/SPAN&gt;&lt;A href="http://www.activiti.org/test" rel="nofollow noopener noreferrer"&gt;http://www.activiti.org/test&lt;/A&gt;&lt;SPAN&gt;" typeLanguage="&lt;/SPAN&gt;&lt;A href="http://www.w3.org/2001/XMLSchema" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;&lt;SPAN&gt;" xsi:schemaLocation="&lt;/SPAN&gt;&lt;A href="http://www.omg.org/spec/BPMN/20100524/MODEL" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/BPMN/20100524/MODEL&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A href="http://bpmn.sourceforge.net/schemas/BPMN20.xsd" rel="nofollow noopener noreferrer"&gt;http://bpmn.sourceforge.net/schemas/BPMN20.xsd&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;process id="dcrApprovalProcess_basic" isClosed="false" isExecutable="true" name="DCR Workflow Process" processType="None"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;startEvent id="startevent1" isInterrupting="true" name="Start" parallelMultiple="false"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;outgoing&amp;gt;flow1&amp;lt;/outgoing&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/startEvent&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;endEvent id="endevent1" name="End"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;incoming&amp;gt;flow6&amp;lt;/incoming&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/endEvent&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;userTask completionQuantity="1" id="CREATE" implementation="##unspecified" isForCompensation="false" name="Create DCR" startQuantity="1"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;incoming&amp;gt;flow1&amp;lt;/incoming&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;outgoing&amp;gt;flow4&amp;lt;/outgoing&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/userTask&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="flow1" sourceRef="startevent1" targetRef="CREATE"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;userTask completionQuantity="1" id="REVIEW" implementation="##unspecified" isForCompensation="false" name="Review DCR" startQuantity="1"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;incoming&amp;gt;flow8&amp;lt;/incoming&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;outgoing&amp;gt;flow6&amp;lt;/outgoing&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/userTask&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;serviceTask activiti:delegateExpression="${dummyServiceTask}" completionQuantity="1" id="linkDCRWithWorkflowInDB" implementation="##WebService" isForCompensation="false" name="Call Spring Bean" startQuantity="1"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;incoming&amp;gt;flow4&amp;lt;/incoming&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;outgoing&amp;gt;flow7&amp;lt;/outgoing&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/serviceTask&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="flow4" sourceRef="CREATE" targetRef="linkDCRWithWorkflowInDB"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="flow6" sourceRef="REVIEW" targetRef="endevent1"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;userTask completionQuantity="1" id="EDIT" implementation="##unspecified" isForCompensation="false" name="Edit DCR" startQuantity="1"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;incoming&amp;gt;flow7&amp;lt;/incoming&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;outgoing&amp;gt;flow8&amp;lt;/outgoing&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/userTask&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="flow7" sourceRef="linkDCRWithWorkflowInDB" targetRef="EDIT"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="flow8" sourceRef="EDIT" targetRef="REVIEW"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;/process&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/definitions&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2014 13:03:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/missing-table-act-ru-job-with-h2-database-issue-with-5-16-x/m-p/192432#M145562</guid>
      <dc:creator>dharmesh</dc:creator>
      <dc:date>2014-10-17T13:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Missing table 'ACT_RU_JOB' with h2 database issue with 5.16.x</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/missing-table-act-ru-job-with-h2-database-issue-with-5-16-x/m-p/192433#M145563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How's your Activiti config looking? Is it actually creating the database tables?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 08:58:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/missing-table-act-ru-job-with-h2-database-issue-with-5-16-x/m-p/192433#M145563</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-10-20T08:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Missing table 'ACT_RU_JOB' with h2 database issue with 5.16.x</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/missing-table-act-ru-job-with-h2-database-issue-with-5-16-x/m-p/192434#M145564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I use dbcp-common 1.2.2 and h2 1.3.166. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This issue was introduced when I wrote timer based unit test and all test started failing because of this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I reverted to my earlier running build and I am good now, i am able to execute tests, the one which i shared with you earlier also works this time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However unit tests run in isolation so theoretically they should not interfere so basically i dont have any clue why i had that problem. I have feeling that i will see this again if i will introduce timer based unit test. So I will further post when i start doing that activity again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently i am using 5.16 version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is the main configuration of activiti unit test suite where i can switch between postgres and h2 easily.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="dataSource" ref="dataSourceAct" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="transactionManager" ref="transactionManagerAct" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="databaseSchemaUpdate" value="true" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="jobExecutorActivate" value="true" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;bean id="dataSourceAct" destroy-method="close" class="org.apache.commons.dbcp.BasicDataSource"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="driverClassName" value="${jdbc.driver}" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="url" value="${activiti.jdbc.url}" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="username" value="${db.username}" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="password" value="${db.password}" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 16:21:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/missing-table-act-ru-job-with-h2-database-issue-with-5-16-x/m-p/192434#M145564</guid>
      <dc:creator>dharmesh</dc:creator>
      <dc:date>2014-10-20T16:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Missing table 'ACT_RU_JOB' with h2 database issue with 5.16.x</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/missing-table-act-ru-job-with-h2-database-issue-with-5-16-x/m-p/192435#M145565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That config looks ok. I don't know why that error happened, in theory if the other ACT_RU_* tables are created … the ACT_RU_JOB should be created just as well. Very odd.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 07:29:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/missing-table-act-ru-job-with-h2-database-issue-with-5-16-x/m-p/192435#M145565</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-10-21T07:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Missing table 'ACT_RU_JOB' with h2 database issue with 5.16.x</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/missing-table-act-ru-job-with-h2-database-issue-with-5-16-x/m-p/192436#M145566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I will post you on that once i start timer based implementation. I will share root cause and unit tests with your team.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 12:53:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/missing-table-act-ru-job-with-h2-database-issue-with-5-16-x/m-p/192436#M145566</guid>
      <dc:creator>dharmesh</dc:creator>
      <dc:date>2014-10-21T12:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Missing table 'ACT_RU_JOB' with h2 database issue with 5.16.x</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/missing-table-act-ru-job-with-h2-database-issue-with-5-16-x/m-p/192437#M145567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;perfect, thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 10:57:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/missing-table-act-ru-job-with-h2-database-issue-with-5-16-x/m-p/192437#M145567</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-10-22T10:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Missing table 'ACT_RU_JOB' with h2 database issue with 5.16.x</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/missing-table-act-ru-job-with-h2-database-issue-with-5-16-x/m-p/192438#M145568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found this issue happens when running with H2 in-memory and a SpringJUnit4ClassRunner (and of course, a spring-managed processEngine)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Particularly in my case, it was being caused during execution of below code (during shutdown sequence):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AcquireJobsRunnable.run() –&amp;gt; AcquiredJobs.execute() –&amp;gt; commandContext.getJobEntityManager().findNextJobsToExecute(new Page(0, maxNonExclusiveJobsPerAcquisition));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When the test methods are completed, the TestRunner invokes a System.exit() and the shutdown sequence is started.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The ApplicationShutdownHooks are run in parallel (threads) - i.e with no guaranteed order - among those being H2 DatabaseCloser and AbstractApplicationContext shutdown hook.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;====================================================================================&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically, the AcquireJobsRunnable could keep running after the test suite is finished but after the DatabaseCloser has closed the DB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;====================================================================================&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AbstractApplicationContext.doClose –&amp;gt; … –&amp;gt; ProcessEngineFactoryBean.destroy() –&amp;gt; ProcessEngineImpl.close() –&amp;gt; JobExecutor.shutdown()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess an error message may create concern and is not nice to spot, but even when this doesn't seem to be a neat shutdown, I understand it's not relevant to the actual test execution (i.e. everything is being shut down)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Other observations/findings:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;———————–&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- issue doesn't occur when switching over to embedded H2 (i.e. persisted to files).&amp;nbsp; Without digging much, I suppose that even when the db might get closed the tables are still there (not sure if it might get reopened by the jobExecutor thread).&amp;nbsp; Also,&amp;nbsp; even if "create-drop" is used … the drop doesn't happen until after the jobExecutor is shutdown (see ProcessEnginImp.close() sequence)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- issue goes away (with in-mem db) if "DB_CLOSE_ON_EXIT=false" is added to the h2 url definition, since this property will prevent the DatabaseCloser hook to be created/registered &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: I can reproduce the issue with a single empty test method within the class (since the issue is erratic and is timing dependent, decreasing the JobExecutor waiting frequency may "hide" it, i.e. increasing waitTimeInMillis)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 23:19:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/missing-table-act-ru-job-with-h2-database-issue-with-5-16-x/m-p/192438#M145568</guid>
      <dc:creator>osilva</dc:creator>
      <dc:date>2014-10-23T23:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Missing table 'ACT_RU_JOB' with h2 database issue with 5.16.x</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/missing-table-act-ru-job-with-h2-database-issue-with-5-16-x/m-p/192439#M145569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;* Thats why we have in our tests a method called 'waitForJobExecutorToProcessAllJobs', to make sure no jobs are left anymore at the end of a test.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;* Indeed. Embedded H2 database gets reopened automatically when you create a connection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;* Indeed, adding DB_CLOSE_ON_EXIT or DB_CLOSE_DELAY=-1 is what we use in our tests&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 09:17:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/missing-table-act-ru-job-with-h2-database-issue-with-5-16-x/m-p/192439#M145569</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-10-24T09:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Missing table 'ACT_RU_JOB' with h2 database issue with 5.16.x</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/missing-table-act-ru-job-with-h2-database-issue-with-5-16-x/m-p/192440#M145570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I believe I tried "waitForJobExecutorToProcessAllJobs" to no avail for this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess the problem here is not with waiting for a job&amp;nbsp; to finish (there's none created in an empty test method body) but with the JobExecutor polling (then the ACT_RU_JOB query breaking) even after the database is closed (i.e. during the shutdown sequence).&amp;nbsp; Again, from my findings above, AcquireJobsRunnable runs in a separate thread which is stopped by a shutdown hook (spring ctx file) which, is different from the one closing the DB (h2 DatabaseCloser) and may be completed afterwards the db closer hook(sequence order not guaranteed).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One more thing, DB_CLOSE_DELAY=-1 doesn't prevent the registration of the DatabaseCloser hook (then creating the conditions for the issue), only DB_CLOSE_ON_EXIT will do it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 19:23:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/missing-table-act-ru-job-with-h2-database-issue-with-5-16-x/m-p/192440#M145570</guid>
      <dc:creator>osilva</dc:creator>
      <dc:date>2014-10-24T19:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Missing table 'ACT_RU_JOB' with h2 database issue with 5.16.x</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/missing-table-act-ru-job-with-h2-database-issue-with-5-16-x/m-p/192441#M145571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've seen the exception before too, but never with a 'real' database (oracle, postgres, whatever …). What's the use case for trying to make this work on H2? We only use H2 for our tests.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 11:17:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/missing-table-act-ru-job-with-h2-database-issue-with-5-16-x/m-p/192441#M145571</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-10-27T11:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Missing table 'ACT_RU_JOB' with h2 database issue with 5.16.x</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/missing-table-act-ru-job-with-h2-database-issue-with-5-16-x/m-p/192442#M145572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's the use case, automated tests.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I run into this post after facing the issue in the subject, then I digged further to understand the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As per my first comment, my test setup is with H2 in-memory and a SpringJUnit4ClassRunner.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 15:07:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/missing-table-act-ru-job-with-h2-database-issue-with-5-16-x/m-p/192442#M145572</guid>
      <dc:creator>osilva</dc:creator>
      <dc:date>2014-10-27T15:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Missing table 'ACT_RU_JOB' with h2 database issue with 5.16.x</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/missing-table-act-ru-job-with-h2-database-issue-with-5-16-x/m-p/192443#M145573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmm very odd, we use H2 in mem for all our tests: &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/Activiti/tree/master/modules/activiti-engine/src/test/java/org/activiti/engine/test" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/tree/master/modules/activiti-engine/src/test/java/org/activiti/engine/test&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However,&amp;nbsp; we don't start up the job executor automatically. Rather, we use the waitForJobExecutorToProcessAllJobs method, which starts (AND STOPS) the job executor synchronously. Hence why we never see the problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 10:52:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/missing-table-act-ru-job-with-h2-database-issue-with-5-16-x/m-p/192443#M145573</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-10-28T10:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Missing table 'ACT_RU_JOB' with h2 database issue with 5.16.x</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/missing-table-act-ru-job-with-h2-database-issue-with-5-16-x/m-p/192444#M145574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Joram.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am (purposedly) setting up my tests more in an integrated fashion and I now realize I ommited that part (H2 in-memory + SpringJUnit4ClassRunner is not enough info) when summarizing my setup.&amp;nbsp; I don't use spring context test files, but the main app context file so as to have the process engine fully integrated with my spring beans and camel routes -though some test overrides are in place to stub stuff-.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thus, the processEngine is spring-managed (and then started, shutdown).&amp;nbsp; Maybe relevant to this discussion is that the jobExecutorActivate is enabled.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On a separate note …&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- I found TestHelper and ActivitiTestCase family use the junit.framework.* components, then running under jUnit 3?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- (this one not so separate) does the fact that waitForJobExecutorToProcessAllJobs starts/stops the jobExecutor mean that we can't have jobExecutorActivate flag turned on in the processEngine under test?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Omar&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2014 18:39:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/missing-table-act-ru-job-with-h2-database-issue-with-5-16-x/m-p/192444#M145574</guid>
      <dc:creator>osilva</dc:creator>
      <dc:date>2014-10-31T18:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Missing table 'ACT_RU_JOB' with h2 database issue with 5.16.x</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/missing-table-act-ru-job-with-h2-database-issue-with-5-16-x/m-p/192445#M145575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;" I found TestHelper and ActivitiTestCase family use the junit.framework.* components, then running under jUnit 3? "&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, historical reasons. We've got a lot of Junit 3 unit tests.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;* does the fact that waitForJobExecutorToProcessAllJobs starts/stops the jobExecutor mean that we can't have jobExecutorActivate flag turned on in the processEngine under test&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No, we do that because otherwise the job executor behaviour is not predictable, since it sleeps when it can't find a job and obviously you don't know how long your test code will need.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 10:27:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/missing-table-act-ru-job-with-h2-database-issue-with-5-16-x/m-p/192445#M145575</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-11-03T10:27:08Z</dc:date>
    </item>
  </channel>
</rss>

