Uploaded image for project: 'Apache Taverna'
  1. Apache Taverna
  2. TAVERNA-871

Race condition: occassional NullPointerException in DispatchStackImpl

    XMLWordPrintableJSON

Details

    • Bug
    • Status: To Do
    • Major
    • Resolution: Unresolved
    • None
    • engine 3.2.0
    • Taverna Engine
    • None

    Description

      Raised by Javier Rojas Balderrama on users:

      I'm executing some workflows by command line and from time to time the execution freezes so I have to start over the execution. The log associated to this is bellow. Is this only a command line issue or a general behaviour?

      INFO  2015-07-29 08:49:11,170 (de.uni_luebeck.inb.knowarc.usecases.invocation.local.LocalUseCaseInvocation:116) - mainTempDirectory is /tmp
      INFO  2015-07-29 08:49:11,170 (de.uni_luebeck.inb.knowarc.usecases.invocation.local.LocalUseCaseInvocation:117) - Using tempDir /tmp/usecase1293979972903664991dir
      INFO  2015-07-29 08:49:11,170 (net.sf.taverna.t2.activities.externaltool.ExternalToolActivity:237) - Run id is cddff932-9804-4a55-bef7-4679eab931c5
      INFO  2015-07-29 08:49:11,170 (de.uni_luebeck.inb.knowarc.usecases.invocation.local.LocalUseCaseInvocation:351) - cmds[0] = /bin/sh
      INFO  2015-07-29 08:49:11,170 (de.uni_luebeck.inb.knowarc.usecases.invocation.local.LocalUseCaseInvocation:351) - cmds[1] = -c
      INFO  2015-07-29 08:49:11,170 (de.uni_luebeck.inb.knowarc.usecases.invocation.local.LocalUseCaseInvocation:351) - cmds[2] = sleep 0
      INFO  2015-07-29 08:49:11,170 (de.uni_luebeck.inb.knowarc.usecases.invocation.local.LocalUseCaseInvocation:353) - Command is sleep 0 in directory /tmp/usecase1293979972903664991dir
      WARN  2015-07-29 08:49:11,173 (net.sf.taverna.t2.workflowmodel.processor.dispatch.layers.Invoke:236) - Failed (INVOCATION) invoking net.sf.taverna.t2.activities.externaltool.ExternalToolActivity@415ce54f for job DispatchJobEvent facade0:control-0045x0035:S_1567[]: Uncaught exception while invoking net.sf.taverna.t2.activities.externaltool.ExternalToolActivity@415ce54f
      java.lang.NullPointerException
      	at net.sf.taverna.t2.workflowmodel.processor.dispatch.impl.DispatchStackImpl.satisfyConditions(DispatchStackImpl.java:188)
      	at net.sf.taverna.t2.workflowmodel.impl.ProcessorImpl$2.finishedWith(ProcessorImpl.java:176)
      	at net.sf.taverna.t2.workflowmodel.processor.dispatch.impl.DispatchStackImpl$TopLayer.sendCachePurge(DispatchStackImpl.java:313)
      	at net.sf.taverna.t2.workflowmodel.processor.dispatch.impl.DispatchStackImpl$TopLayer.receiveResult(DispatchStackImpl.java:281)
      	at net.sf.taverna.t2.workflowmodel.processor.dispatch.layers.Parallelize.receiveResult(Parallelize.java:165)
      	at net.sf.taverna.t2.workflowmodel.processor.dispatch.AbstractDispatchLayer.receiveResult(AbstractDispatchLayer.java:85)
      	at net.sf.taverna.t2.workflowmodel.processor.dispatch.AbstractErrorHandlerLayer.receiveResult(AbstractErrorHandlerLayer.java:136)
      	at net.sf.taverna.t2.workflowmodel.processor.dispatch.AbstractErrorHandlerLayer.receiveResult(AbstractErrorHandlerLayer.java:136)
      	at net.sf.taverna.t2.workflowmodel.processor.dispatch.AbstractDispatchLayer.receiveResult(AbstractDispatchLayer.java:85)
      	at net.sf.taverna.t2.workflowmodel.processor.dispatch.layers.Invoke$InvokeCallBack.receiveResult(Invoke.java:352)
      	at net.sf.taverna.t2.activities.externaltool.ExternalToolActivity$1.run(ExternalToolActivity.java:272)
      	at java.lang.Thread.run(Thread.java:745)
      ERROR 2015-07-29 08:49:11,174 (net.sf.taverna.t2.workflowmodel.processor.dispatch.AbstractErrorHandlerLayer:200) - Could not find any active jobs for facade0:control-0045x0035:S_1567
      

      Attachments

        1. control-0003x0005.t2flow
          88 kB
          Stian Soiland-Reyes

        Issue Links

          Activity

            People

              Unassigned Unassigned
              stain Stian Soiland-Reyes
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: