WebSphere Enterprise Service Bus, 버전 6.2.0 운영 체제: AIX, HP-UX, i5/OS, Linux, Solaris, Windows


확장 데이터 요소가 있는 이벤트 그룹이 이벤트를 포함하지 않음

확장 데이터 요소 술어를 지정하는 이벤트 그룹을 정의했지만 이벤트 그룹에 대한 조회가 예상된 이벤트를 리턴하지 않습니다.

원인

이벤트 데이터는 유효한 XML일 수 있지만 공통 기본 이벤트 스펙을 준수하지 않습니다. 이로 인해 오류 메시지 없이 예상치 않은 결과가 발생할 수 있습니다.

다음 컨텐츠가 있는 이벤트를 고려하십시오.
<?xml version="1.0" encoding="ASCII"?>
<!-- Event that will match the XPath expression CommonBaseEvent[@globalInstanceId] -->
<CommonBaseEvent
        xmlns:xsi="http://www.w3.org/TR/xmlschema-1/"
        xmlns:="http://www.ibm.com/AC/commonbaseevent1_0_1"
        version="1.0.1"
        creationTime="2005-10-17T12:00:01Z"
        severity="10"
        priority="60"
    >
    <situation categoryName="RequestSituation">
        <situationType xsi:type="RequestSituation"
            reasoningScope="INTERNAL"
            successDisposition="Suceeded"
            situationQualifier="TEST"
        />
    </situation>
    <sourceComponentId
        component="component"
        subComponent="subcomponent"
        componentIdType="componentIdType"
        location="localhost"
        locationType="Hostname"
        componentType="sourceComponentType"
    />
    <extendedDataElement name="color" type="string">
        <values>red</values>
    </extendedDataElement>
</CommonBaseEvent>
이 이벤트에는 하나의 하위 요소가 있는 단일 확장 데이터 요소가 포함되어 있습니다.
이제 다음 XPath 이벤트 선택기 문자열을 사용하여 구성된 이벤트 그룹 정의를 고려하십시오.
CommonBaseEvent[extendedDataElements[@name='color' and @type='string' and @values='red']]
이벤트의 XML 정의에 잘못된 철자가 포함되어 있기 때문에 이 이벤트 선택기는 이벤트와 일치하지 않습니다. 이벤트 데이터에서 extendedDataElements 요소의 철자가 extendedDataElement로 잘못되었습니다. 그러나 제대로 구성된 XML이므로 오류가 발생하지 않습니다. 대신, 검색 불가능한 any 요소로 간주됩니다.

해결책

제출된 이벤트의 XML 데이터가 공통 기본 이벤트 스펙을 준수하는지 확인하십시오.


topic 주제

이용약관 | 피드백


시간소인 아이콘 마지막 갱신 날짜: 2010년 7월 7일 수요일


http://publib.boulder.ibm.com/infocenter/dmndhelp/v6r2mx/topic//com.ibm.websphere.wesb620.doc/doc/tcei_trb_event_group_ede.html
Copyright IBM Corporation 2005, 2010. All Rights Reserved.
이 Information Center는 Eclipse 기술을 기반으로 합니다(http://www.eclipse.org 웹 사이트 참조).