Hi Ivy support team,

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

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)

Do we have any solution for this issue????????

Note: when I open the task again, and open the task, it is still exist in task

asked 07.04.2014 at 11:39

utthang's gravatar image

utthang
(suspended)
accept rate: 0%

edited 14.04.2014 at 14:04

Reto%20Weiss's gravatar image

Reto Weiss ♦♦
4.9k202857

Can you explain the problem better. I don't understand it.

(07.04.2014 at 16:52) Reto Weiss ♦♦ Reto%20Weiss's gravatar image

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)....

(14.04.2014 at 09:43) utthang utthang's gravatar image

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

(14.04.2014 at 11:54) utthang utthang's gravatar image

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()); } }

(14.04.2014 at 11:55) utthang utthang's gravatar image

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?

(14.04.2014 at 11:56) utthang utthang's gravatar image

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 Server Guide.

link

answered 14.04.2014 at 14:03

Reto%20Weiss's gravatar image

Reto Weiss ♦♦
4.9k202857
accept rate: 74%

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

(15.04.2014 at 03:57) utthang utthang's gravatar image
1

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.

(15.04.2014 at 08:21) Reto Weiss ♦♦ Reto%20Weiss's gravatar image

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×147
×68

Asked: 07.04.2014 at 11:39

Seen: 12,905 times

Last updated: 15.04.2014 at 08:21