When i use waiting element of Ivy. In case I call this two time with an eventID. I get a log error and log warning. So I try to use error element to catch this error to show on UI. But impossible. How can i do it?

    11:31:25.254 ERROR [ch.ivyteam.ivy.system.task.internal] [ivy immediate job pool-thread-19] [executionContext=SYSTEM] 
  Could not process system user task 182,898. The system will try to execute the system user task again after a timeout.
    java.lang.IllegalStateException: An intermediate event for task #182880 with the identical event identifier 'SMART_METER_GAETWAY_METER_CREATE_CONFIRMATION_EVENT_ID_005056b0-f842-1ed7-8daa-75acae8f09b2' already exists. The event identifier of an intermediate event element must always be unique!
        at ch.ivyteam.ivy.workflow.internal.Case.createIntermediateEvent(Case.java:2214)
        at ch.ivyteam.ivy.workflow.internal.Case.createNewTask(Case.java:2150)
        at ch.ivyteam.ivy.workflow.internal.Case.endJoiningTasksAndStartNewTasks(Case.java:1970)
        at ch.ivyteam.ivy.workflow.internal.Case$50.execute(Case.java:1913)
        at ch.ivyteam.ivy.workflow.internal.Case$50.execute(Case.java:1)
        at ch.ivyteam.ivy.persistence.base.AbstractPersistencyService.execute(AbstractPersistencyService.java:169)
        at ch.ivyteam.ivy.persistence.base.AbstractPersistencyService.execute(AbstractPersistencyService.java:226)
        at ch.ivyteam.ivy.persistence.base.ClassPersistencyService.execute(ClassPersistencyService.java:660)
        at ch.ivyteam.ivy.persistence.client.PersistentClientObjectInternal.execute(PersistentClientObjectInternal.java:155)
        at ch.ivyteam.ivy.persistence.client.PersistentClientObject.execute(PersistentClientObject.java:1)
        at ch.ivyteam.ivy.workflow.internal.Case.execute(Case.java:1)
        at ch.ivyteam.ivy.workflow.internal.Case.endJoiningTasksAndStartNewTasks(Case.java:1907)
        at ch.ivyteam.ivy.workflow.internal.WorkflowSession.endJoiningTasksAndStartNewTasks_aroundBody38(WorkflowSession.java:1137)
        at ch.ivyteam.ivy.workflow.internal.WorkflowSession.endJoiningTasksAndStartNewTasks_aroundBody39$advice(WorkflowSession.java:34)
        at ch.ivyteam.ivy.workflow.internal.WorkflowSession.endJoiningTasksAndStartNewTasks(WorkflowSession.java:1)
        at ch.ivyteam.ivy.bpm.exec.restricted.task.TaskSwitchEndJoiner.endJoiningTaskAndStartNewTask(TaskSwitchEndJoiner.java:39)
        at ch.ivyteam.ivy.bpm.exec.restricted.task.TaskSwitchEndRequestExecutor.endJoiningAndSetAutoTaskResumedWhenItExists(TaskSwitchEndRequestExecutor.java:83)
        at ch.ivyteam.ivy.bpm.exec.restricted.task.TaskSwitchEndRequestExecutor.execute(TaskSwitchEndRequestExecutor.java:60)
        at ch.ivyteam.ivy.bpm.engine.internal.core.RequestProcessor.executeRequestEndExecutor(RequestProcessor.java:186)
        at ch.ivyteam.ivy.bpm.engine.internal.core.RequestProcessor.handleRequest(RequestProcessor.java:79)
        at ch.ivyteam.ivy.bpm.engine.internal.BpmEngine.handleNormalRequest(BpmEngine.java:189)
        at ch.ivyteam.ivy.bpm.engine.internal.BpmEngine.handleRequestWithinContext(BpmEngine.java:138)
        at ch.ivyteam.ivy.request.impl.ContextAwareRequestHandler.handleRequest(ContextAwareRequestHandler.java:32)
        at ch.ivyteam.ivy.system.task.internal.SystemTaskJob.executeProcess(SystemTaskJob.java:166)
        at ch.ivyteam.ivy.system.task.internal.SystemTaskJob.executeInternal(SystemTaskJob.java:98)
        at ch.ivyteam.ivy.system.task.internal.SystemTaskJob$1.call(SystemTaskJob.java:67)
        at ch.ivyteam.ivy.security.internal.SecurityManager.executeAsSystem(SecurityManager.java:1440)
        at ch.ivyteam.ivy.system.task.internal.SystemTaskJob.execute(SystemTaskJob.java:62)
        at ch.ivyteam.ivy.job.internal.JobManager$1.call(JobManager.java:267)
        at ch.ivyteam.ivy.job.internal.JobManager$1.call(JobManager.java:1)
        at ch.ivyteam.util.callable.ExecutionContextContainer$ContainerExecutionContext.call(ExecutionContextContainer.java:92)
        at ch.ivyteam.ivy.security.internal.SecurityManager.executeInContext_aroundBody0(SecurityManager.java:1492)
        at ch.ivyteam.ivy.security.internal.SecurityManager.executeInContext_aroundBody1$advice(SecurityManager.java:41)
        at ch.ivyteam.ivy.security.internal.SecurityManager.executeInContext(SecurityManager.java:1)
        at ch.ivyteam.util.callable.ExecutionContextContainer$ContainerExecutionContext.call(ExecutionContextContainer.java:88)
        at ch.ivyteam.util.callable.ExecutionContextContainer.executeInContext(ExecutionContextContainer.java:27)
        at ch.ivyteam.ivy.job.internal.JobManager.execute(JobManager.java:261)
        at ch.ivyteam.ivy.job.internal.Job.run(Job.java:83)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

    11:31:25.264 WARN [ch.ivyteam.ivy.server.persistency.db] [ivy immediate job pool-thread-19] [executionContext=SYSTEM] 
  String An intermediate event for task #182880 with the identical event identifier 'SMART_METER_GAETWAY_METER_CREATE_CONFIRMATION_EVENT_ID_005056b0-f842-1ed7-8daa-75acae8f09b2' already exists. The event identifier of an intermediate event element must always be unique! trunkated because it is to long to store in database column which only supports 200 characters

asked 28.08 at 07:26

ThongNguyen's gravatar image

ThongNguyen
111
accept rate: 0%

edited 28.08 at 08:59

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
5.4k11031


Ensure that you use a shorter ID: here you have obiously a length problem:

  • 'SMART_METER_GAETWAY_METER_CREATE_CONFIRMATION_EVENT_ID_005056b0-f842-1ed7-8daa-75acae8f09b2' already exists. The event identifier of an intermediate event element must always be unique! trunkated because it is to long to store in database column which only supports 200 characters

you could shorten the identifier plus use a simpler ID format. Our own ID generator is able to generate shorter unique ids. Just give it a try: ch.ivyteam.util.GuidUtil.generateID()

link

answered 28.08 at 09:02

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
5.4k11031
accept rate: 68%

Thank for your reminder. I think it just warning. But how about Error Log??

(28.08 at 21:44) ThongNguyen ThongNguyen's gravatar image

Hi @reguel-wermelinger I'm just curious as this eventID is just 91 characters. It haven't exceeded the maximum length yet. I think the problem is that the eventID is already exist. And his problem (I think he forgot to mention it) is that he get an error log and an hour or 1/2 hour after he will get another warning log. But he would like to catch the error as soon as it happens.

(29.08 at 22:45) ToanLC ToanLC's gravatar image
Your answer
toggle preview

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:

×1

Asked: 28.08 at 07:26

Seen: 40 times

Last updated: 29.08 at 22:49

Related questions