Xml 当我更新文本时,Orion会关闭
这里描述的错误发生在最新版本的Orion上下文代理和Mongo服务器上 查询站Xml 当我更新文本时,Orion会关闭,xml,json,mongodb,fiware-orion,Xml,Json,Mongodb,Fiware Orion,这里描述的错误发生在最新版本的Orion上下文代理和Mongo服务器上 查询站 http://127.0.0.1:1026/v1/updateContext Accept: application/json Content-Type: application/json { "contextElements": [ { "type": "Room", "isPattern": "false", "id": "Room2",
http://127.0.0.1:1026/v1/updateContext
Accept: application/json
Content-Type: application/json
{
"contextElements": [
{
"type": "Room",
"isPattern": "false",
"id": "Room2",
"attributes": [
{
"name": "temperature",
"type": "float",
"value": "15.90"
},
{
"name": "pressure",
"type": "integer",
"value": "1021"
}
]
}
],
"updateAction": "APPEND"
}
猎户座日志:
INFO@16:44:47 rest.cpp[768]: Starting transaction from
127.0.0.1:43181/v1 /updateContext INFO@16:44:47
MongoCommonUpdate.cpp[1657]: Database Operation Successful ({
_id.id: "Room4", _id.type: "Room", _id.servicePath: /^\/$|^\/\/.*/
})
INFO@16:44:47 MongoCommonUpdate.cpp[1454]: Database Operation
Successful (insert { _id: { id: "Room4", type: "Room", servicePath:
"/" }, attrs: [ { name: "temperature", type: "float", creDate:
1430844287, modDate: 1430844287, value: "21" }, { name: "pressure",
type: "integer", creDate: 1430844287, modDate: 1430844287, value:
"711" } ], creDate: 1430844287, modDate: 1430844287 }) Tue May 5
18:44:47 DBClientCursor::init call() failed
ERROR@16:44:47 MongoCommonUpdate.cpp[930]: Database Error (collection:
orion.csubs - query(): { $or: [ { entities.id: "Room4", $or: [ {
entities.type: "Room" }, { entities.type: { $exists: false } } ],
entities.isPattern: "false", conditions.type: "ONCHANGE",
conditions.value: "temperature", expiration: { $gt: 1430844287 },
servicePath: { $in: [ /^$|^/#$|^/$/, null ] } }, { entities.isPattern:
"true", conditions.type: "ONCHANGE", conditions.value: "temperature",
expiration: { $gt: 1430844287 }, servicePath: { $in: [ /^$|^/#$|^/$/,
null ] }, $where: function(){for (var i=0; i < this.entities.length; i++)
{if (this.enti... } ] } - exception: Null cursor from mongo (details on
this is found in the source code))
INFO@16:44:47 rest.cpp[382]: Transaction ended
答复机构:
<updateContextResponse>
<contextResponseList>
<contextElementResponse>
<contextElement>
<entityId type="Room" isPattern="false">
<id>Room4</id>
</entityId>
<contextAttributeList>
<contextAttribute>
<name>temperature</name>
<type>float</type>
<contextValue></contextValue>
</contextAttribute>
<contextAttribute>
<name>pressure</name>
<type>integer</type>
<contextValue></contextValue>
</contextAttribute>
</contextAttributeList>
</contextElement>
<statusCode>
<code>500</code>
<reasonPhrase>Internal Server Error</reasonPhrase>
<details>\"</details>
</statusCode>
</contextElementResponse>
</contextResponseList>
</updateContextResponse>
有时它会在数据库中生成实体,但总是转到mongo检查您使用的MongoDB版本。Orion支持MongoDB 2.4。请编辑您的问题以包含以下信息,好吗?1) contextBroker版本(通常使用
contextBroker--version
),2)MongoDB版本,3)您最近更新过contextBroker吗?4) 如果3是肯定的,哪一个是旧版本?谢谢此外,我还需要进一步了解这个案例。。。因此,您可以使用RESTClient执行问题帖子中显示的updateContext,并在问题帖子和这些日志消息中获得XML响应。对吗?猎户座在哪一刻关闭了?发送响应后?请在更新到0.20.0之前运行哪个版本?您是在更新过程中删除了数据库,还是在不接触数据库的情况下开始使用新的Orion版本?因此,为了清楚地理解它,您的意思是您从scractch安装了0.20.0,而没有从以前的CB版本(如0.19.0、0.18.0等)升级?
<updateContextResponse>
<contextResponseList>
<contextElementResponse>
<contextElement>
<entityId type="Room" isPattern="false">
<id>Room4</id>
</entityId>
<contextAttributeList>
<contextAttribute>
<name>temperature</name>
<type>float</type>
<contextValue></contextValue>
</contextAttribute>
<contextAttribute>
<name>pressure</name>
<type>integer</type>
<contextValue></contextValue>
</contextAttribute>
</contextAttributeList>
</contextElement>
<statusCode>
<code>500</code>
<reasonPhrase>Internal Server Error</reasonPhrase>
<details>\"</details>
</statusCode>
</contextElementResponse>
</contextResponseList>
</updateContextResponse>