Details

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

      Description

      hi
      i want to connect my Cepheus instance to my context broker instance and i
      follow Read the Docs steps and see change when sending update

      but when i search for Entity in context broker using this command "curl -s
      -H 'Fiware-Service: oneService' http://localhost:1026/v2/entities | python
      -mjson.tool
      "
      i can't found it
      *************

      this is cep-logs

      2017-01-30 04:38:17.360 INFO 1204 — [http-nio-8080-exec-3]
      c.o.c.cep.controller.AdminController : Update configuration
      2017-01-30 04:38:17.361 INFO 1204 — [http-nio-8080-exec-3]
      c.o.cepheus.cep.EsperEventProcessor : Apply configuration
      2017-01-30 04:38:17.361 INFO 1204 — [http-nio-8080-exec-3]
      c.o.cepheus.cep.EsperEventProcessor : Remove statement: insert into
      Floor select floor as id, avg(temperature) as temperature from
      Room.win:time(10 minutes) group by floor output last every 10 seconds
      2017-01-30 04:38:17.361 INFO 1204 — [http-nio-8080-exec-3]
      c.o.cepheus.cep.EsperEventProcessor : Add new statement: INSERT INTO
      Floor SELECT floor as id, avg(temperature) as temperature FROM
      Room.win:time(10 min) GROUP BY floor OUTPUT LAST EVERY 10 sec
      2017-01-30 04:38:17.367 INFO 1204 — [http-nio-8080-exec-3]
      c.o.c.cep.persistence.JsonPersistence : Save configuration in
      /var/cepheus/cep-default-.json
      2017-01-30 04:38:17.367 INFO 1204 — [taskScheduler-1]
      c.o.cepheus.cep.SubscriptionManager : Launch of the periodic
      subscription task at 2017-01-30T04:38:17.367Z
      2017-01-30 04:39:07.953 INFO 1204 — [http-nio-8080-exec-5]
      c.o.cepheus.cep.EsperEventProcessor : EventIn: Event{type='Room',
      values={temperature=1.0, id=Room1, floor=1}}
      2017-01-30 04:39:17.939 INFO 1204 —
      [com.espertech.esper.Timer-default-0]
      c.orange.cepheus.cep.EventSinkListener : EventOut: Floor /
      temperature:1.0 / id:1 from insert into Floor select floor as id,
      avg(temperature) as temperature from Room.win:time(10 minutes) group by
      floor output last every 10 seconds
      2017-01-30 04:39:18.059 WARN 1204 — [I/O dispatcher 3]
      o.s.web.client.AsyncRestTemplate : Async POST request for "
      http://130.206.123.194:1026/ngsi10/updateContext" resulted in 415
      (Unsupported Media Type); invoking error handler
      2017-01-30 04:39:18.061 WARN 1204 — [I/O dispatcher 3]
      c.orange.cepheus.cep.EventSinkListener : UpdateContext failed for
      http://130.206.123.194:1026:
      org.springframework.web.client.HttpClientErrorException: 415 Unsupported
      Media Type
      (END)

      **************************

      this is my cep-brocker logs

      2016-01-14 10:35:08,601 [main] INFO c.o.c.b.Application - Starting
      Application with PID 12225 (/usr/lib/cepheus/cepheus-broker.jar started by
      root in /)
      2017-01-30 00:54:35,331 [main] INFO c.o.c.b.Application - Starting
      Application with PID 1199 (/usr/lib/cepheus/cepheus-broker.jar started by
      root in /)
      2017-01-30 00:54:44,386 [main] INFO c.o.c.b.Application - Started
      Application in 10.483 seconds (JVM running for 14.039)
      ~

      **************************

      this is my config file

      {
      "host":"http://localhost:8080",
      "in":[
      {
      "id":"Room1",
      "type":"Room",
      "isPattern":true,
      "providers":[ "http://localhost:8081" ],
      "attributes":[

      { "name":"temperature", "type":"double" }

      ,

      { "name":"floor", "type":"string" }

      ]
      }
      ],
      "out":[
      {
      "id":"Floor2",
      "type":"Floor",
      "attributes":[

      { "name":"temperature", "type":"double" }

      ],
      "brokers":[

      { "url":"http://130.206.123.194:1026", "serviceName": "oneService", "servicePath": "/one", "authToken": "XgRPwqAofTQwN2IDgUqQUKxsRWnK2C" }

      ]
      }
      ],
      "statements":[
      "INSERT INTO Floor SELECT floor as id, avg(temperature) as temperature
      FROM Room.win:time(10 min) GROUP BY floor OUTPUT LAST EVERY 10 sec"
      ]
      }
      *********************

      and this is my update file
      {
      "contextElements": [
      {
      "type": "Room",
      "isPattern": "false",
      "id": "Room1",
      "attributes": [

      { "name": "temperature", "type": "double", "value": "1" }

      ,

      { "name": "floor", "type": "string", "value": "1" }

      ]
      }
      ],
      "updateAction": "UPDATE"
      }

      please tell me what should i do to solve this error
      best regards
      ahmed

      [Created via e-mail received from: ahmad essam <ahmad.fi2017@gmail.com>]

        Activity

        Hide
        fermin Fermín Galán added a comment -

        There are traces in the logs that make me think that this issue could be related with Cepheus (at least in a first approach) and not Orion, in particular:

        2017-01-30 04:39:18.061 WARN 1204 — [I/O dispatcher 3]
        c.orange.cepheus.cep.EventSinkListener : UpdateContext failed for
        http://130.206.123.194:1026:
        org.springframework.web.client.HttpClientErrorException: 415 Unsupported
        Media Type
        (END)
        

        Thus, I'm assigning back to Fernando, so he can assign in sequence to Cepheus's owner. Thanks!

        Show
        fermin Fermín Galán added a comment - There are traces in the logs that make me think that this issue could be related with Cepheus (at least in a first approach) and not Orion, in particular: 2017-01-30 04:39:18.061 WARN 1204 — [I/O dispatcher 3] c.orange.cepheus.cep.EventSinkListener : UpdateContext failed for http: //130.206.123.194:1026: org.springframework.web.client.HttpClientErrorException: 415 Unsupported Media Type (END) Thus, I'm assigning back to Fernando, so he can assign in sequence to Cepheus's owner. Thanks!

          People

          • Assignee:
            cazemar Christophe Azemar
            Reporter:
            fw.ext.user FW External User
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: