# the probleme with gatway

**URL:** <https://community.ofelia.com/t/the-probleme-with-gatway/4759>\
**Category:** Q&A\
**Created:** [24 June 2014 09:47 UTC](https://community.ofelia.com/t/the-probleme-with-gatway/4759 "2014-06-24T09:47:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nassim77](https://avatars.discourse-cdn.com/v4/letter/n/77aa72/32.png) [@nassim77](https://community.ofelia.com/u/nassim77)\
**Post date:** [24 June 2014 09:47 UTC](https://community.ofelia.com/t/the-probleme-with-gatway/4759/1 "2014-06-24T09:47:16Z")

</div>

i have probleme with this message : A work failed, The failure will be handled, work is: NotifyChildFinishedWork

the problem : if the server web restart wen one task is executed and the second task in parallel is ont executed.

after this 2 task theris a gatway AND .

NB : bonita version 6.1.1  
java 7  
win 7 32 bit  
task1---------------------------------  
getway (and) ------------------------------------------end  
task2----------------------------------

complete log:

Avertissement: A work failed, The failure will be handled, work is: NotifyChildFinishedWork: processInstanceId:4001, flowNodeInstanceId: 80004  
juin 24, 2014 9:52:44 AM org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl log  
Avertissement: Exception was:String index out of range: -6  
java.lang.StringIndexOutOfBoundsException: String index out of range: -6  
at java.lang.String.substring(String.java:1958)  
at java.lang.String.substring(String.java:1925)  
at org.bonitasoft.engine.execution.ProcessExecutorImpl.getNumberOfTokenToMerge(ProcessExecutorImpl.java:279)  
at org.bonitasoft.engine.execution.ProcessExecutorImpl.executeValidOutgoingTransitionsAndUpdateTokens(ProcessExecutorImpl.java:816)  
at org.bonitasoft.engine.execution.ProcessExecutorImpl.childFinished(ProcessExecutorImpl.java:737)  
at org.bonitasoft.engine.execution.ContainerRegistry.nodeReachedState(ContainerRegistry.java:54)  
at org.bonitasoft.engine.execution.work.NotifyChildFinishedWork.work(NotifyChildFinishedWork.java:69)  
at org.bonitasoft.engine.execution.work.TxBonitaWork$1.call(TxBonitaWork.java:48)  
at org.bonitasoft.engine.execution.work.TxBonitaWork$1.call(TxBonitaWork.java:44)  
at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:223)  
at org.bonitasoft.engine.execution.work.TxBonitaWork.work(TxBonitaWork.java:53)  
at org.bonitasoft.engine.execution.work.LockProcessInstanceWork.work(LockProcessInstanceWork.java:76)  
at org.bonitasoft.engine.execution.work.FailureHandlingBonitaWork.work(FailureHandlingBonitaWork.java:72)  
at org.bonitasoft.engine.work.BonitaWork.run(BonitaWork.java:56)  
at org.bonitasoft.engine.work.SequenceRunnableExecutor.innerRun(SequenceRunnableExecutor.java:45)  
at org.bonitasoft.engine.work.BonitaRunnable.run(BonitaRunnable.java:35)  
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)  
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)  
at java.util.concurrent.FutureTask.run(FutureTask.java:166)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)  
at java.lang.Thread.run(Thread.java:722)

juin 24, 2014 9:52:45 AM org.bonitasoft.console.server.listener.StudioWatchdogListener$1 run  
Avertissement: Bonita Studio watchdog process has started on 6969 with a delay of 20000ms

thanks
