2014-11-28 3 views
0

데이터를 가져올 엔터티를 관리하기 위해 IoT 브로커와 병렬로 작동하는 IoT 구성 관리자 인 다른 GE가 있어야한다는 것을 알았습니다. 자, XMLValidator 코드가 제게 문제가되는 것 같습니다. 구성 관리자와 직접 HTTP POST osgi9를 통해 엔티티를 등록했습니다. 그런 다음 osgi10을 통해 IoT 중개인과 통신하여 액세스를 시도합니다. IoT Broker는 IoT DIscovery 서비스와 통신하고 응답을 얻지 만, XMLValidator는 XML이 분명히 어렵다고 잘못 판단했다고합니다. Fiware IoT Broker 및 IoT 구성 관리자 XML 유효성 검사

은 만약 IoT Broker는 만약 IoT ConfMan에 자원의 가용성을 요구하고있다 :

2014-11-27 10:31:13,682 | INFO | (HttpConnectionClient.java:initializeConnection:170) | Output 

Stream: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> 
<discoverContextAvailabilityRequest> 
<entityIdList> 
<entityId isPattern="false"> 
<id>Dorm</id> 
</entityId> 
</entityIdList> 
<attributeList/> 
<restriction> 
<scope> 
<operationScope> 
<scopeType>IncludeAssociations</scopeType> 
<scopeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">SOURCES</scopeValue></operationScope> 
</scope> 
</restriction> 
</discoverContextAvailabilityRequest> 

그리고 만약 IoT 브로커 가져옵니다 그것은 분명히 수신 된 XML로 볼 수

2014-11-27 10:31:13,947 | INFO | (HttpConnectionClient.java:initializeConnection:188) | 
<?xml version="1.0" encoding="UTF-8"?><discoverContextAvailabilityResponse> 
<contextRegistrationResponseList> 
<contextRegistrationResponse> 
<contextRegistration> 
<entityIdList> 
<entityId type="Room" isPattern="false"> 
<id>Dorm</id> 
</entityId> 
</entityIdList> 
<contextRegistrationAttributeList> 
<contextRegistrationAttribute> 
<name>temperature</name> 
<type>degree</type> 
<isDomain>false</isDomain> 
<metadata> 
<contextMetadata> 
<name>ID</name> 
<type>string</type> 
<value/> 
</contextMetadata> 
<contextMetadata> 
<name/> 
<type/> 
<value/> 
</contextMetadata> 
</metadata> 
</contextRegistrationAttribute> 
</contextRegistrationAttributeList> 
<providingApplication>http://192.168.100.1:70 
</providingApplication> 
</contextRegistration> 
</contextRegistrationResponse> 
</contextRegistrationResponseList> 
<errorCode> 
<code>200</code> 
<reasonPhrase>OK</reasonPhrase> 
<details xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">Result</details> 
</errorCode> 
</discoverContextAvailabilityResponse> 

2014-11-27 10:31:13,949 | INFO | (HttpConnectionClient.java:initializeConnection:218) | Connection Closed! 
2014-11-27 10:31:13,987 | INFO | (XmlValidator.java:error:128) | 
ERROR 
org.xml.sax.SAXParseException; lineNumber: 0; columnNumber: 0; cvc-complex-type.2.4.b: The content of element 'contextRegistration' is not complete. One of ' 
{registrationMetaData, providingApplication} 
' is expected. 

그에서 최소한 provideApplication은 수신되었지만 XMLValidator는 이것을보고 있지 않습니다.

답변

-1

많은 버그 수정이 포함 된 새 릴리스가 발행되었으므로 문제가 더 이상 존재하지 않아야합니다.

또한 IoT 브로커에 'light'구성 관리자를 추가하여 독립형으로 사용할 수있게했습니다.

P.S. 나는이 도움 요청을 최근에야 알게되었습니다. 우리가 정해진 시간 내에 답변을 드릴 수 없으니 죄송합니다.