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

FIWARE.Question.Tech.IoT.BackendIoTBroker.Error in subscribeContext

    Details

      Description

      Created question in FIWARE Q/A platform on 10-12-2015 at 17:12
      Please, ANSWER this question AT http://stackoverflow.com/questions/34206712/error-in-subscribecontext

      Question:
      Error in subscribeContext

      Description:
      I'm currently trying to configure the Fiware Iot Broker with the Configuration Manager (NECongMan) and Fiware Orion as the context producer. I'm having a problem with the NGSI10 subscribeContext operation.

      This is the request sent to the IoT Broker:

      <?xml version="1.0"?>
      <subscribeContextRequest>
      <entityIdList>
      <entityId type="Room" isPattern="false">
      <id>Room1</id>
      </entityId>
      </entityIdList>
      <attributeList>
      <attribute>temperature</attribute>
      </attributeList>
      <reference>http://localhost:1028/accumulate&lt;/reference&gt;
      <duration>PT1H</duration>
      <notifyConditions>
      <notifyCondition>
      <type>ONCHANGE</type>
      <condValueList>
      <condValue>pressure</condValue>
      </condValueList>
      </notifyCondition>
      </notifyConditions>
      <throttling>PT5S</throttling>
      </subscribeContextRequest>

      The IoTBroker tries to contact Orion issuing a subscribeContextRequest but the duration string is changed:

      <subscribeContextRequest>
      <entityIdList>
      <entityId
      type="Room"
      isPattern="false">
      <id>
      Room1
      </id>
      </entityId>
      </entityIdList>
      <attributeList>
      <attribute>
      temperature
      </attribute>
      </attributeList>
      <reference>
      http://192.168.16.178:8080/ngsi10/notify
      </reference>
      <duration>
      P0Y0M0DT0H59M58.157S
      </duration>
      <notifyConditions>
      <notifyCondition>
      <type>
      ONCHANGE
      </type>
      <condValueList>
      <condValue>
      pressure
      </condValue>
      </condValueList>
      </notifyCondition>
      </notifyConditions>
      <throttling>
      PT5S
      </throttling>
      </subscribeContextRequest>

      But Orion gives an error (invalid payload: syntax error in duration string). Do you have any idea how to resolve the issue?

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        18h 1 Backlog Manager 11/Dec/15 12:04 PM
        In Progress In Progress Closed Closed
        2h 59m 1 Backlog Manager 11/Dec/15 3:03 PM
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        mev Manuel Escriche made changes -
        HD-Enabler IoT Broker [ 10885 ]
        HD-Chapter IoT [ 10839 ]
        mev Manuel Escriche made changes -
        Summary FIWARE.Question.Tech.Error in subscribeContext FIWARE.Question.Tech.IoT.BackendIoTBroker.Error in subscribeContext
        mev Manuel Escriche made changes -
        Summary [fiware-stackoverflow] Error in subscribeContext FIWARE.Question.Tech.Error in subscribeContext
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-12-11 15:05|UPDATED status: transition Finish| # answers= 2, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-12-11 15:05|UPDATED status: transition Finish| # answers= 2, accepted answer= True
        backlogmanager Backlog Manager made changes -
        Resolution Done [ 10000 ]
        Status In Progress [ 3 ] Closed [ 6 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-12-11 12:05|UPDATED status: transition Answer| # answers= 2, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-12-11 12:05|UPDATED status: transition Answer| # answers= 2, accepted answer= True
        backlogmanager Backlog Manager made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        mev Manuel Escriche made changes -
        Assignee Stefan Gessler [ stefan.gessler ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-12-10 18:05|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2015-12-10 18:05|CREATED monitor | # answers= 0, accepted answer= False
        backlogmanager Backlog Manager created issue -

          People

          • Assignee:
            gessler Stefan Gessler
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: