<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: The task was already finished or does not exist</title><link>https://answers.axonivy.com/questions/619/the-task-was-already-finished-or-does-not-exist</link><description>&lt;p&gt;Hi Ivy support team,&lt;/p&gt;
&lt;p&gt;With the Ivy task, do we have any timeout for that, because in case that:
 - I do not set the timeout for the task element 
 - And when I open the task, do nothing for 15 minutes, after that I try to finish this task, it has the error like this&lt;/p&gt;
&lt;p&gt;ch.ivyteam.ivy.request.RequestException: The task with identifier '261' was already finished or does not exist (Session identifier is '7').
at ch.ivyteam.ivy.webserver.internal.AbstractTaskResumerServlet.findTask(AbstractTaskResumerServlet.java:94)
at ch.ivyteam.ivy.webserver.internal.IvyProcessServlet.processProcessRequest(IvyProcessServlet.java:150)
at ch.ivyteam.ivy.webserver.internal.IvyProcessServlet.processProcessPostRequest(IvyProcessServlet.java:127)
at ch.ivyteam.ivy.webserver.internal.IvyProcessServlet.doRespondAsSystem(IvyProcessServlet.java:70)
at ch.ivyteam.ivy.webserver.internal.AbstractServlet.prepareRespondAsSystem(AbstractServlet.java:266)
at ch.ivyteam.ivy.webserver.internal.AbstractServlet.access$4(AbstractServlet.java:239)
at ch.ivyteam.ivy.webserver.internal.AbstractServlet$2.call(AbstractServlet.java:210)
at ch.ivyteam.ivy.security.internal.SecurityManager.executeAsSystem(SecurityManager.java:1419)
at ch.ivyteam.ivy.webserver.internal.AbstractServlet.doService(AbstractServlet.java:204)
at ch.ivyteam.ivy.webserver.internal.AbstractServlet.doPost(AbstractServlet.java:178)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)&lt;/p&gt;
&lt;p&gt;Do we have any solution for this issue????????&lt;/p&gt;
&lt;p&gt;Note: when I open the task again, and open the task, it is still exist in task&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/619/the-task-was-already-finished-or-does-not-exist" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 15 Apr 2014 08:21:33 -0400</lastBuildDate><item><title>Comment by Reto Weiss on Reto Weiss's answer</title><link>https://answers.axonivy.com/questions/619/the-task-was-already-finished-or-does-not-exist#637</link><description>&lt;p&gt;In this case, I suggest that you provide a demo project where we can reproduce the issue. You may attach it to this question here or file it to support@soreco.ch.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reto Weiss</dc:creator><pubDate>Tue, 15 Apr 2014 08:21:33 -0400</pubDate><guid>https://answers.axonivy.com/questions/619/the-task-was-already-finished-or-does-not-exist#637</guid></item><item><title>Comment by utthang on Reto Weiss's answer</title><link>https://answers.axonivy.com/questions/619/the-task-was-already-finished-or-does-not-exist#636</link><description>&lt;p&gt;but in web.xml file, I see the default value session is 30 minutes, but I just let the task open in 15 minute (not 30 minutes) it is already happen&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">utthang</dc:creator><pubDate>Tue, 15 Apr 2014 03:57:03 -0400</pubDate><guid>https://answers.axonivy.com/questions/619/the-task-was-already-finished-or-does-not-exist#636</guid></item><item><title>Answer by Reto Weiss</title><link>https://answers.axonivy.com/questions/619/the-task-was-already-finished-or-does-not-exist/634</link><description>&lt;p&gt;It seems that the session has timeouted. If the session timeouts all task that the user of the session has worked on are reset. This means they are set back to state SUSPENDED. To prevent this error increase the session timeout time in the file web.xml in the directory /webapps/ivy/WEB-INF. For more information see &lt;a href="http://xpertivy.ch/releases/Xpert.ivy/5.0.latest/documents/ServerGuideHtml/ivy.server.configuration.tomcat.html#ivy.server.configuration.tomcat.web.xml"&gt;Server Guide&lt;/a&gt;.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reto Weiss</dc:creator><pubDate>Mon, 14 Apr 2014 14:03:46 -0400</pubDate><guid>https://answers.axonivy.com/questions/619/the-task-was-already-finished-or-does-not-exist/634</guid></item><item><title>Comment by utthang on utthang's question</title><link>https://answers.axonivy.com/questions/619/the-task-was-already-finished-or-does-not-exist#633</link><description>&lt;p&gt;and I just wonder, because when I see that error the status of the task is change to SUSPENDED, not is RESUME as it must be.
So can you let me know more about the status of task, when it will be change, and how to know this in Ivy?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">utthang</dc:creator><pubDate>Mon, 14 Apr 2014 11:56:53 -0400</pubDate><guid>https://answers.axonivy.com/questions/619/the-task-was-already-finished-or-does-not-exist#633</guid></item><item><title>Comment by utthang on utthang's question</title><link>https://answers.axonivy.com/questions/619/the-task-was-already-finished-or-does-not-exist#632</link><description>&lt;p&gt;Ans the task is get by 
    task = workflowSession.findWorkingTask(taskId);
      if (task == null)
      {
        if (request.getRequestKind() == RequestKind.PROCESS)
        {
          task = workflowSession.resumeTask(taskId, request.getUnparsedRequestPath());
        }
        else
        {
          task = workflowSession.findEndedTask(taskId);
          if (task == null)
          {
            task = workflowSession.resumeTask(taskId, request.getUnparsedRequestPath());
          }
        }&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">utthang</dc:creator><pubDate>Mon, 14 Apr 2014 11:55:23 -0400</pubDate><guid>https://answers.axonivy.com/questions/619/the-task-was-already-finished-or-does-not-exist#632</guid></item><item><title>Comment by utthang on utthang's question</title><link>https://answers.axonivy.com/questions/619/the-task-was-already-finished-or-does-not-exist#631</link><description>&lt;p&gt;And when I go deep in to the function findTask, it will throw new RequestException(
          404, 
          "/Errors/ErrorReasons/TaskNotFound", 
          "The task with identifier ''{0}'' was already finished or does not exist (Session identifier is ''{1}'').", new Object[] { 
          taskIdentifier, new Integer(request.getSession().getIdentifier()) }); 
when the task is null&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">utthang</dc:creator><pubDate>Mon, 14 Apr 2014 11:54:36 -0400</pubDate><guid>https://answers.axonivy.com/questions/619/the-task-was-already-finished-or-does-not-exist#631</guid></item><item><title>Comment by utthang on utthang's question</title><link>https://answers.axonivy.com/questions/619/the-task-was-already-finished-or-does-not-exist#630</link><description>&lt;p&gt;When I open the task (case), and because of some reason, I'm not doing anything with this task in more than 15 minutes. 
And after that, I try to do some action in that task, like accept this, or forward this to another person. When I click the action and use ajax to call to server, it will have that error.
ch.ivyteam.ivy.request.RequestException: The task with identifier '6116523' was already finished or does not exist (Session identifier is '6'599').
     at ch.ivyteam.ivy.webserver.internal.AbstractTaskResumerServlet.findTask(AbstractTaskResumerServlet.java:94)....&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">utthang</dc:creator><pubDate>Mon, 14 Apr 2014 09:43:58 -0400</pubDate><guid>https://answers.axonivy.com/questions/619/the-task-was-already-finished-or-does-not-exist#630</guid></item><item><title>Comment by Reto Weiss on utthang's question</title><link>https://answers.axonivy.com/questions/619/the-task-was-already-finished-or-does-not-exist#620</link><description>&lt;p&gt;Can you explain the problem better. I don't understand it.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reto Weiss</dc:creator><pubDate>Mon, 07 Apr 2014 16:52:34 -0400</pubDate><guid>https://answers.axonivy.com/questions/619/the-task-was-already-finished-or-does-not-exist#620</guid></item></channel></rss>