<?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 NoSuchMethodError when using HistoryService  in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/nosuchmethoderror-when-using-historyservice/m-p/239545#M192675</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;working with Activiti 5.19.0.2 OSX, Tomcat 8.0.32 - I am trying to retrieve previous task informations using "HistoryService" resp. "HistoricTaskInstance" inside a TaskListener. My Unit test works fine but as soon as I run the process an interesting error msg. occurs which I apparently cannot get rid of:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt; &lt;BR /&gt;Caused by: java.lang.NoSuchMethodError: org.activiti.engine.history.HistoricTaskInstanceQuery.processInstanceId(Ljava/lang/String;)Lorg/activiti/engine/history/HistoricTaskInstanceQuery; &lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AFAIK there seems to be a version related problem which I have also encountered while testing in Eclipse - those errors are all cleaned up in the eclipse environment. Still having the same error when running the process. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the code snippet that causes the trouble as if this is an out-of-date-way to query historic data…:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;HistoricTaskInstance historicTask = historyService.createHistoricTaskInstanceQuery()&lt;BR /&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;nbsp;&amp;nbsp; .processInstanceId(delegateTask.getProcessInstanceId())&lt;BR /&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;nbsp;&amp;nbsp; .taskDefinitionKey(otherTaskId.getExpressionText())&lt;BR /&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;nbsp;&amp;nbsp; .singleResult();&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I possibly using "historyService.createHistoricTaskInstanceQuery()" the wrong way? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If its all about the libraries that are not present in the right version, how and where can I find out about this? I have checked the lib-folder of tomcat, the projects lib-folder, activiti-explorer - but I almost believe i am looking into the wrong direction… :sorry:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help your be very much appreciated &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind Regards! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 03 Apr 2016 23:07:54 GMT</pubDate>
    <dc:creator>amy11</dc:creator>
    <dc:date>2016-04-03T23:07:54Z</dc:date>
    <item>
      <title>NoSuchMethodError when using HistoryService</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/nosuchmethoderror-when-using-historyservice/m-p/239545#M192675</link>
      <description>Hi everybody,working with Activiti 5.19.0.2 OSX, Tomcat 8.0.32 - I am trying to retrieve previous task informations using "HistoryService" resp. "HistoricTaskInstance" inside a TaskListener. My Unit test works fine but as soon as I run the process an interesting error msg. occurs which I apparently</description>
      <pubDate>Sun, 03 Apr 2016 23:07:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/nosuchmethoderror-when-using-historyservice/m-p/239545#M192675</guid>
      <dc:creator>amy11</dc:creator>
      <dc:date>2016-04-03T23:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: NoSuchMethodError when using HistoryService</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/nosuchmethoderror-when-using-historyservice/m-p/239546#M192676</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;You have to search for HistoricTaskInstanceQuery class in your classpath to check which class is loaded by class loader.&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>Mon, 04 Apr 2016 08:24:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/nosuchmethoderror-when-using-historyservice/m-p/239546#M192676</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-04-04T08:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: NoSuchMethodError when using HistoryService</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/nosuchmethoderror-when-using-historyservice/m-p/239547#M192677</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;SPAN&gt;thank you for your reply. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;While searching for the class and gaining infos concerning the classpath (do i have to explicitly set the classpath in .bash_profile??) I realized my projects maven dependencies showed an older version of the activiti engine. Updating that one and some more other things I also stumbled across that other post: &lt;/SPAN&gt;&lt;A href="https://forums.activiti.org/content/error-createhistorictaskinstancequery" rel="nofollow noopener noreferrer"&gt;https://forums.activiti.org/content/error-createhistorictaskinstancequery&lt;/A&gt;&lt;SPAN&gt; - I dropped all tables as well…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And now it works like a charm &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 13:55:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/nosuchmethoderror-when-using-historyservice/m-p/239547#M192677</guid>
      <dc:creator>amy11</dc:creator>
      <dc:date>2016-04-05T13:55:14Z</dc:date>
    </item>
  </channel>
</rss>

