<?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: Timestamp issues in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/timestamp-issues/m-p/218117#M171247</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the best would be jUnit test.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems that you are setting a clock to -1D value somewhere in the code. That why clock implementation returns always the same value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jul 2016 08:30:00 GMT</pubDate>
    <dc:creator>martin_grofcik</dc:creator>
    <dc:date>2016-07-20T08:30:00Z</dc:date>
    <item>
      <title>Timestamp issues</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timestamp-issues/m-p/218116#M171246</link>
      <description>Hi,I have the following setup:Activiti 5.21Tomcat 8Java 8Postgresql 9.4.1208I'm having issues with the timestamps stored in ACT_RU_TASK and ACT_HI_ACTINST by Activiti Engine. The timestamp provided by the engine is roughly a day behind the system time. Both Java and Postgres have the correct time. A</description>
      <pubDate>Tue, 19 Jul 2016 13:36:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timestamp-issues/m-p/218116#M171246</guid>
      <dc:creator>dan1</dc:creator>
      <dc:date>2016-07-19T13:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp issues</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timestamp-issues/m-p/218117#M171247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the best would be jUnit test.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems that you are setting a clock to -1D value somewhere in the code. That why clock implementation returns always the same value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 08:30:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timestamp-issues/m-p/218117#M171247</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-07-20T08:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp issues</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timestamp-issues/m-p/218118#M171248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using Activiti Engine and Explorer out of the box other than db, log4j, and engine property settings. I haven't modified any code. I decided to try one more thing. I went back to the original activiti-custom-context.xml WITHOUT my workaround to reproduce the issue. When the issue happens, I see this when tomcat starts up:&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;05:18:36,309 [Thread-5] INFO&amp;nbsp; org.activiti.engine.impl.asyncexecutor.AcquireTimerJobsRunnable&amp;nbsp; - starting to acquire async jobs due&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;05:18:36,349 [localhost-startStop-1] INFO&amp;nbsp; org.activiti.explorer.conf.DemoDataConfiguration&amp;nbsp; - Initializing demo groups&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;05:18:36,418 [localhost-startStop-1] INFO&amp;nbsp; org.activiti.explorer.conf.DemoDataConfiguration&amp;nbsp; - Initializing demo users&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;05:18:36,512 [localhost-startStop-1] INFO&amp;nbsp; org.activiti.explorer.conf.DemoDataConfiguration&amp;nbsp; - Initializing demo report data&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;05:18:36,514 [Thread-7] INFO&amp;nbsp; org.activiti.engine.impl.asyncexecutor.AbstractAsyncJobExecutor&amp;nbsp; - Shutting down the default async job executor [org.activiti.engine.impl.asyncexecutor.DefaultAsyncJobExecutor].&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;05:18:36,515 [Thread-5] INFO&amp;nbsp; org.activiti.engine.impl.asyncexecutor.AcquireTimerJobsRunnable&amp;nbsp; - stopped async job due acquisition&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;05:18:36,515 [Thread-6] INFO&amp;nbsp; org.activiti.engine.impl.asyncexecutor.AcquireAsyncJobsDueRunnable&amp;nbsp; - stopped async job due acquisition&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Exception in thread "Thread-7" org.activiti.engine.ActivitiObjectNotFoundException: no processes deployed with key 'reviewSaledLead'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.persistence.deploy.DeploymentManager.findDeployedLatestProcessDefinitionByKey(DeploymentManager.java:145)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:79)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:37)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:24)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:57)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:47)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:45)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.RuntimeServiceImpl.startProcessInstanceByKey(RuntimeServiceImpl.java:82)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.explorer.conf.DemoDataConfiguration$1.run(DemoDataConfiguration.java:247)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at java.lang.Thread.run(Thread.java:745)&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;If I set create.demo.reports=false in the db.properties, tomcat starts up and deploys explorer without that exception and the system behaves as expected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my working db.properties (and I don't need the afore mentioned workaround where I reset the clock in activiti-custom-context.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;SPAN&gt;# demo data properties&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;create.demo.users=true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;create.demo.definitions=false&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;create.demo.models=false&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;create.demo.reports=true&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# engine properties&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;engine.schema.update=true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;engine.activate.jobexecutor=true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;engine.asyncexecutor.enabled=true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;engine.asyncexecutor.activate=true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;engine.history.level=full&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;Ultimately, it seems there is a hole where that exception occurs that causes the clock to get jacked up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For now, I'm am fine since I no longer need my hacked up workaround. And I don't depend on the out of box reports since they need to be modified for Java 8 anyway.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 10:30:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timestamp-issues/m-p/218118#M171248</guid>
      <dc:creator>dan1</dc:creator>
      <dc:date>2016-07-20T10:30:27Z</dc:date>
    </item>
  </channel>
</rss>

