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

FIWARE.Request.Tech.Data.CEP.Orion Integration

    Details

    • Type: extRequest
    • Status: Closed
    • Priority: Blocker
    • Resolution: Done
    • Fix Version/s: 2021
    • Component/s: FIWARE-TECH-HELP
    • Labels:
      None

      Description

      FIWARE tech help, please address Mr. Zhiying Liu issue on Spain2

      -------------------
      Dear Mr. Zhiying Liu,

      Glad to hear you had a working integration with the CEP and Orion! Sorry
      to hear it is not working on the Spain2.
      Since you see the problem in two different component, I forward this issue
      to the FIWARE tech help.

      Best regards,
      Tali

      Tali Yatzkar Haham
      Smart Decision Solutions
      IBM Haifa Research Lab, Israel
      tali@il.ibm.com 972-4-8296320

      From: "Liu, Zhiying" <zhiying.liu@qsc.de>
      To: Tali Yatzkar-Haham/Haifa/IBM@IBMIL
      Date: 04/05/2015 04:45 PM
      Subject: Questions about cep and orion

      Dear Mr. Yatzkar-Haham,

      I have an CEP instance and an orion pub sub instance running on Spain
      node. The CEP accept some input events, produces output events as defined,
      and send them to orion instance. And one can query the events from the
      pub-sub node. Every thing worked fine before my orion node was deleted.
      As suggested by FIWARE society, I am now moving my things to Spain2.

      On Spain2 node I have:

      1. created a new CEP instance, and imported my project definition to the
      new instance,
      2. created an orion pub-sub instance and have done the same things that I
      have done before (fortunately I have documented the steps that made things
      work).

      However I have problems on both of the new instances.

      1. For CEP, I get "OK" response for change definition and change state of
      my definition (start, stop). But for push event like this:
      curl -v -X POST http://130.206.116.4:8080/ProtonOnWebServer/rest/events
      Content-Type: application/json

      {"Name":"Generated","component":"wind","value":"1308.16","gtime":"20150121"}

      I always get this status error: 500 Error Interno del Servido
      The exact same command to the old instance works fine. The same definition
      is exported from the old instance and imported to the new one.

      2. For Orion, I can login and start the context broker like this: ?
      /etc/init.d/contextBroker start?.
      But when I send event definition like this:
      Command: POST
      (curl 130.206.116.6:1026/v1/updateContext -s -S --header 'Content-Type:
      application/xml' d @ | xmllint --format - ) <<EOF
      <?xml version="1.0" encoding="UTF-8"?>
      <updateContextRequest>
      <contextElementList>
      <contextElement>
      <entityId type="EnergyWarning" isPattern="false">
      <id>NotMatch</id>
      </entityId>
      <contextAttributeList>
      <contextAttribute>
      <name>EventId</name>
      <contextValue>2c67baff-402d-4a48-b22d-e2f5fc743499</contextValue>
      </contextAttribute>
      <contextAttribute>
      <name>DetectionTime</name>
      <contextValue>19/11/2014-11:02:05</contextValue>
      </contextAttribute>
      <contextAttribute>
      <name>difference</name>
      <contextValue>600.0</contextValue>
      </contextAttribute>
      <contextAttribute>
      <name>Cost</name>
      <contextValue>0.0</contextValue>
      </contextAttribute>
      <contextAttribute>
      <name>Certainty</name>
      <contextValue>0.0</contextValue>
      </contextAttribute>
      <contextAttribute>
      <name>Name</name>
      <contextValue>EWarning</contextValue>
      </contextAttribute>
      <contextAttribute>
      <name>OccurrenceTime</name>
      <contextValue>19/11/2014-11:02:05</contextValue>
      </contextAttribute>
      <contextAttribute>
      <name>component</name>
      <contextValue>biogas2</contextValue>
      </contextAttribute>
      <contextAttribute>
      <name>Duration</name>
      <contextValue>0.0</contextValue>
      </contextAttribute>
      </contextAttributeList>
      </contextElement>
      </contextElementList>
      <updateAction>APPEND</updateAction>
      </updateContextRequest>

      The response status is ok, but the error message is:

      { "orionError" :

      { "code" : "400", "reasonPhrase" : "Bad Request", "details" : "service '/v1/updateContext' not found" }

      }

      This exact same command (except ip address) works for my old Orion
      instance.

      Any help would be highly appreciated!
      With best regards,

      Zhiying Liu

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

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            TALI Fabiana Fournier
            Reporter:
            fw.ext.user FW External User
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: