project-flogo / flogo-web

Project Flogo Web UI
http://flogo.io
BSD 3-Clause "New" or "Revised" License
65 stars 36 forks source link

Error console while starting the stream simulator #1268

Open apandura-tibco opened 4 years ago

apandura-tibco commented 4 years ago

Environment

How are you running Flogo Web?

Describe the bug

When I start a stream simulation when the previous simulation is not stopped properly:

sending status to client closed
sending status to client closed
simulator: stopping
sending status to client closed
Error starting simulator Error: Simulator process: Cannot start! Process is not available (probably already closed or errored)
    at RemoteSimulatorProcess.throwIfProcessUnavailable (C:\Users\apandura\Desktop\AnandDocuments\workspace\flogo-web\apps\server\src\modules\simulator\remote-simulator-process.ts:137:13)
    at RemoteSimulatorProcess.callRestControl (C:\Users\apandura\Desktop\AnandDocuments\workspace\flogo-web\apps\server\src\modules\simulator\remote-simulator-process.ts:122:10)
    at RemoteSimulatorProcess.start (C:\Users\apandura\Desktop\AnandDocuments\workspace\flogo-web\apps\server\src\modules\simulator\remote-simulator-process.ts:34:17)
    at StreamSimulator.startNewProcess (C:\Users\apandura\Desktop\AnandDocuments\workspace\flogo-web\apps\server\src\modules\simulator\simulator.ts:103:31)