EricssonResearch / calvin-base

Calvin is an application environment that lets things talk to things, among other things.
Apache License 2.0
282 stars 91 forks source link

Unknown actor type #114

Open garagon0983 opened 5 years ago

garagon0983 commented 5 years ago

Hi, after cscontrol http://ip_address:5001 deploy conn_JADE.calvin . I receive 400 u'{"errors": [{"reason": "Unknown actor type: \'connJADE.redeployer_trigger\'", "type": "error", "line": 2, "col": 1}], "warnings": [{"reason": "Not validating actor type: \'connJADE.redeployer_trigger\'", "type": "warning", "line": 2, "col": 1}]}' OK /home/pi/Ist

and in csruntime -n ip_address logs I get: Generating LALR tables WARNING: 1 shift/reduce conflict 2019-03-02 00:00:55,223 ERROR 7378-calvin.calvin.runtime.north.control_apis.application_api: Compilation failed None

My conn_JADE.calvin file is: deployer : connJADE.Redeployer_IntEEMS_Init() trigger : connJADE.redeployer_trigger()

trigger.trig > deployer.receive

jade : connJADE.JADE_listener(ip="134.130.169.38",port=6645,NumData=2) term : flow.Terminator()

jade.data_out1 > term.void

connJADE.zip connJADE.zip

What is the problem?

persquare commented 5 years ago

OK, so the error says the compiler doesn't know about the connJADE.redeployer_trigger

There could be three reasons for this:

Looking at the redeployer_trigger.py I can't see anything that should prevent it from being compiled, so let's assume for now that the problem is that it can't be found.

If you start csruntime with --loglevel DEBUG the system config will be printed out. Have a look at the output and look for the actor_paths value; that is where the system will look for actors.

If you have a local config file pointing to your actors, examine the config paths output to verify that the system is picking up your changes.

Also note that you must restart the runtime for a new or changed actor to be picked up.

Hope this helps, /Per