Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-403

FIWARE.Request.Tech.Data.CEP.Error running sample

    Details

    • HD-Chapter:
      Data
    • HD-Enabler:
      CEP

      Description

      Hi,

      I installed the CEP GE - IBM Proactive Technology Online following the
      instructions found in the
      CEP GE - IBM Proactive Technology Online Installation and Administration
      Guide [1].

      I was able to successfully deploy the application to Tomcat. But I had a
      problem running the sample, referred in section "Sanity check procedures
      End to End Testing" [2]:
      I extracted the sample directory (sample.zip) found inside the zip file
      IBMProtonOnWebServer.zip (downloaded from the repository [3]) to the root
      directory of Tomcat.
      When starting Tomcat I can see a warning:
      "WARNING: initializeAdapters: failed to initialize adapter Input adapter
      for producer: P1, reason: ./config/input-for-dosAttack.txt (No such file or
      directory)".
      The file "./config/input-for-dosAttack.txt" is defined in the file
      ./webapps/ProtonOnWebServer/DoSAttack2.json. The JSON file is read by the
      application ProtonOnWebServer due to being configured, by default, in the
      ./webapps/ProtonOnWebServer/Proton.properties file, with "metadataFileName
      = DoSAttack2.json".
      To successfully run the sample when deploying the Proton war file I need to
      create a directory named "config" in the root directory of Tomcat and copy
      the file input-for-dosAttack.txt from ./webapps/ProtonOnWebServer/ to this
      new folder. Or alternatively, change "./config/input-for-dosAttack.txt" to
      "./webapps/ProtonOnWebServer/input-for-dosAttack.txt" in the file
      ./webapps/ProtonOnWebServer/DoSAttack2.json.

      There are other issues related with loading the samples.

      The DoSAttack_SteepDemand.txt is not generated, as described in [2], when
      running the samples (after the changes referred above). Instead, is
      generated a file named DoSAttack_PredictedCrash.txt.

      According to [2], a file named DoSAttack.json, located in the sample
      folder contains paths for the input event file and for the output files.
      Actually the file loaded with the sample is the
      file ./webapps/ProtonOnWebServer/DoSAttack2.json.

      In [2] is written"If you run on linux, you should change the 3 relative
      paths in this file to ".\/sample\/" instead of "../sample/"", but all the
      JSON files have Linux path, so is the opposite, it is the Windows users
      that need to change the path instead of the Linux ones.

      There are several JSON files with Proton definition spread over different
      locations that may confuse someone who is testing the app. Like:
      ./webapps/AuthoringToolWebServer/SavedProjects/ (3 files showed in the Open
      Project drop menu in [4])
      ./webapps/ProtonOnWebServer/DoSAttack2.json (definition file loaded when
      deploying the app)
      Additionally there are the JSON files included in the samples folder. These
      definition files found in the sample folder can be imported and loaded from
      the "Import project..." menu in [4]. These sample files do not run just by
      copying the sample folder to Tomcat root directory, as described in [2].

      Testing setup:
      OS: Linux OpenSUSE 13.1
      Tomcat: 7.0.26
      Browser: Google Chrome

      [1]
      https://forge.fi-ware.org/plugins/mediawiki/wiki/fiware/index.php/CEP_GE_-_IBM_Proactive_Technology_Online_Installation_and_Administration_Guide
      [2]
      https://forge.fi-ware.org/plugins/mediawiki/wiki/fiware/index.php/CEP_GE_-_IBM_Proactive_Technology_Online_Installation_and_Administration_Guide#Sanity_check_procedures
      [3] https://github.com/ishkin/Proton
      [4] http://localhost:8080/AuthoringTool/

      Regards,

      • -
        Pedro Alves
        pgalves@onesource.pt <joagonca@onesource.pt>

      [image: OneSource]
      http://onesource.pt

      _______________________________________________
      Fiware-tech-help mailing list
      Fiware-tech-help@lists.fi-ware.org
      https://lists.fi-ware.org/listinfo/fiware-tech-help

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        To Do To Do Open Open
        6d 22h 16m 1 Manuel Escriche 21/Oct/14 4:09 PM
        Open Open Answered Answered
        14d 18h 7m 1 Fabiana Fournier 05/Nov/14 9:17 AM
        Answered Answered Done Done
        138d 3h 38m 1 Fabiana Fournier 23/Mar/15 12:55 PM
        Done Done Closed Closed
        294d 20h 12m 1 Manuel Escriche 12/Jan/16 9:08 AM

          People

          • Assignee:
            TALI Fabiana Fournier
            Reporter:
            pgalves Pedro Alves
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: