SES Level 2 filter

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

SES Level 2 filter

joydipdas
I have installed SES and tried with basic subscribeforall and Notify functionality and it is working. Now I am trying to use a level 2 filter. As a base example for this level 2 filter I am using SES spec 08-133(ver 0.3.0) example.
My subscribe & notify xml are given below. Subscribe is SUCCESS but while posting notify I am receiving the below mentioned error :

[Fatal Error] :38:73: The prefix "swe" for element "swe:Quantity" is not bound

Any suggessition please.
==============================================
Subscribe xml
==============================================
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" >
    <env:Header>
        <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/ses-main-1.0-SNAPSHOT/services/SesPortType</wsa:To>
        <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
        <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:1b4d3025-f80a-a5b6-aa37-864c47fa1a7e</wsa:MessageID>
        <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
            <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
        </wsa:From>
    </env:Header>
    <env:Body>
        <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
            <wsnt:ConsumerReference>
                <wsa:Address xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:7103</wsa:Address>
            </wsnt:ConsumerReference>
            <wsnt:Filter>
                <wsnt:MessageContent Dialect="http://www.opengis.net/ses/filter/level2">

<fes:Filter xmlns="http://www.opengis.net/wfs" xmlns:fes="http://www.opengis.net/fes/2.0" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:ows="http://www.opengis.net/ows" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"   xsi:schemaLocation="http://www.opengis.net/fes/2.0    http://schemas.opengis.net/filter/2.0/filterAll.xsd" xmlns:swe="http://www.opengis.net/swe/1.0.1">
        <And>
        <PropertyIsGreaterThan>
                <PropertyName>urn:ogc:def:property:OGC:1.0:temperature</PropertyName>
                <Literal> 
                        <gml:Quantity uom="Cel">30</gml:Quantity> 
                </Literal>
                </PropertyIsGreaterThan>
                <Contains> 
                        <PropertyName>geometry</PropertyName> 
                        <gml:Envelope srsName="urn:ogc:def:crs:EPSG:6.17:31466"> 
                        <gml:lowerCorner>2590000 5680000</gml:lowerCorner> 
                        <gml:upperCorner>2590800 5680200</gml:upperCorner> 
                        </gml:Envelope> 
                </Contains>
                <After> 
                        <PropertyName>startTime</PropertyName>
                        <gml:TimeInstant> 
                                <gml:timePosition>2008-05-25T12:25:00Z</gml:timePosition>
                        </gml:TimeInstant> 
                        </After> 
                </And> 
</fes:Filter>
                </wsnt:MessageContent>
            </wsnt:Filter>
        </wsnt:Subscribe>
    </env:Body>
</env:Envelope>

==============================================
Notify xml
==============================================
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
    <soap:Header>
        <wsa:To>http://localhost:8080/ses-main-1.0-SNAPSHOT/services/SesPortType</wsa:To>
        <wsa:Action>http://docs.oasis-open.org/wsn/bw-2/NotificationConsumer/Notify</wsa:Action>
        <wsa:MessageID>uuid:1b4d3025-f80a-a5b6-aa37-864c47fa1a7e</wsa:MessageID>
        <wsa:From>
            <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
        </wsa:From>
    </soap:Header>
    <soap:Body>
        <wsnt:Notify>
            <wsnt:NotificationMessage>
                <wsnt:Topic Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Simple"> 
        IntegratedHealthIndex
                </wsnt:Topic>
                <wsnt:Message>
                    <om:Observation gml:id="o211" xmlns:om="http://www.opengis.net/om/1.0" xmlns:gml="http://www.opengis.net/gml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sa="http://www.opengis.net/sampling/1.0" xsi:schemaLocation="http://www.opengis.net/om/1.0 http://schemas.opengis.net/om/1.0.0/om.xsd http://www.opengis.net/sampling/1.0 http://schemas.opengis.net/sampling/1.0.0/sampling.xsd">
     <om:samplingTime>
                <gml:TimeInstant gml:id="ot1t"> 
                        <gml:timePosition> 2008-06-01T07:45:00+01Z </gml:timePosition> 
                </gml:TimeInstant>
        </om:samplingTime>
      <om:procedure xlink:href= "urn:ogc:object:procedure:IfGI:S1324"/> 
          <om:observedProperty xlink:href= "urn:ogc:def:property:OGC:1.0:temperature"/> 
          <om:featureOfInterest> 
                <sa:SamplingPoint> 
                        <gml:name>testing</gml:name> 
                        <sa:sampledFeature xlink:href= "http://my.service.org/if?getFeature=F_01"/> 
                        <sa:position> 
                                <gml:Point gml:id="p1"> 
                                        <gml:pos srsName="urn:ogc:def:crs:EPSG:6.17:31466">2590759 5680179</gml:pos> 
                                </gml:Point> 
                        </sa:position> 
                        </sa:SamplingPoint> 
                </om:featureOfInterest> 
                <om:result xsi:type="swe:QuantityPropertyType"> 
                        <swe:Quantity phenomenon= "urn:ogc:def:property:OGC:1.0:temperature"> 
                                <swe:uom code="Cel"/>
                                <swe:value>50</swe:value> 
                        </swe:Quantity> 
                </om:result> 
                </om:Observation> 
                </wsnt:Message>
            </wsnt:NotificationMessage>
        </wsnt:Notify>
    </soap:Body>
</soap:Envelope>
Reply | Threaded
Open this post in threaded view
|

Re: SES Level 2 filter

Matthes Rieke-2
Hello Joydip,

the error you are facing is related to an unbound XML namespace. You need to define the namespace for the prefix (e.g. xmlns:swe="http://www.opengis.net/swe/1.0.1" in the document root). Here is link to a page describing the reason and the handling of a similar error: http://alfredjava.wordpress.com/2008/10/17/the-prefix-tx-for-element-txadvice-is-not-bound/

Best Regards,
Matthes

2011/12/20 joydipdas <[hidden email]>
I have installed SES and tried with basic subscribeforall and Notify
functionality and it is working. Now I am trying to use a level 2 filter. As
a base example for this level 2 filter I am using SES spec 08-133(ver 0.3.0)
example.
My subscribe & notify xml are given below. Subscribe is SUCCESS but while
posting notify I am receiving the below mentioned error :

[Fatal Error] :38:73: The prefix "swe" for element "swe:Quantity" is not
bound

Any suggessition please.
==============================================
Subscribe xml
==============================================
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" >
   <env:Header>
       <wsa:To
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/ses-main-1.0-SNAPSHOT/services/SesPortType</wsa:To>
       <wsa:Action
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
       <wsa:MessageID
xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:1b4d3025-f80a-a5b6-aa37-864c47fa1a7e</wsa:MessageID>
       <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">

<wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
       </wsa:From>
   </env:Header>
   <env:Body>
       <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
           <wsnt:ConsumerReference>
               <wsa:Address
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:7103</wsa:Address>
           </wsnt:ConsumerReference>
           <wsnt:Filter>
               <wsnt:MessageContent
Dialect="http://www.opengis.net/ses/filter/level2">

<fes:Filter xmlns="http://www.opengis.net/wfs"
xmlns:fes="http://www.opengis.net/fes/2.0"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:ows="http://www.opengis.net/ows"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/fes/2.0
http://schemas.opengis.net/filter/2.0/filterAll.xsd"
xmlns:swe="http://www.opengis.net/swe/1.0.1">
       <And>
       <PropertyIsGreaterThan>
               <PropertyName>urn:ogc:def:property:OGC:1.0:temperature</PropertyName>
               <Literal>
                       <gml:Quantity uom="Cel">30</gml:Quantity>
               </Literal>
               </PropertyIsGreaterThan>
               <Contains>
                       <PropertyName>geometry</PropertyName>
                       <gml:Envelope srsName="urn:ogc:def:crs:EPSG:6.17:31466">
                       <gml:lowerCorner>2590000 5680000</gml:lowerCorner>
                       <gml:upperCorner>2590800 5680200</gml:upperCorner>
                       </gml:Envelope>
               </Contains>
               <After>
                       <PropertyName>startTime</PropertyName>
                       <gml:TimeInstant>
                               <gml:timePosition>2008-05-25T12:25:00Z</gml:timePosition>
                       </gml:TimeInstant>
                       </After>
               </And>
</fes:Filter>
               </wsnt:MessageContent>
           </wsnt:Filter>
       </wsnt:Subscribe>
   </env:Body>
</env:Envelope>

==============================================
Notify xml
==============================================
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
   <soap:Header>

<wsa:To>http://localhost:8080/ses-main-1.0-SNAPSHOT/services/SesPortType</wsa:To>

<wsa:Action>http://docs.oasis-open.org/wsn/bw-2/NotificationConsumer/Notify</wsa:Action>

<wsa:MessageID>uuid:1b4d3025-f80a-a5b6-aa37-864c47fa1a7e</wsa:MessageID>
       <wsa:From>

<wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
       </wsa:From>
   </soap:Header>
   <soap:Body>
       <wsnt:Notify>
           <wsnt:NotificationMessage>
               <wsnt:Topic
Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Simple">
       IntegratedHealthIndex
               </wsnt:Topic>
               <wsnt:Message>
                   <om:Observation gml:id="o211"
xmlns:om="http://www.opengis.net/om/1.0"
xmlns:gml="http://www.opengis.net/gml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sa="http://www.opengis.net/sampling/1.0"
xsi:schemaLocation="http://www.opengis.net/om/1.0
http://schemas.opengis.net/om/1.0.0/om.xsd
http://www.opengis.net/sampling/1.0
http://schemas.opengis.net/sampling/1.0.0/sampling.xsd">
    <om:samplingTime>
               <gml:TimeInstant gml:id="ot1t">
                       <gml:timePosition> 2008-06-01T07:45:00+01Z </gml:timePosition>
               </gml:TimeInstant>
       </om:samplingTime>
     <om:procedure xlink:href= "urn:ogc:object:procedure:IfGI:S1324"/>
         <om:observedProperty xlink:href=
"urn:ogc:def:property:OGC:1.0:temperature"/>
         <om:featureOfInterest>
               <sa:SamplingPoint>
                       <gml:name>testing</gml:name>
                       <sa:sampledFeature xlink:href=
"http://my.service.org/if?getFeature=F_01"/>
                       <sa:position>
                               <gml:Point gml:id="p1">
                                       <gml:pos srsName="urn:ogc:def:crs:EPSG:6.17:31466">2590759
5680179</gml:pos>
                               </gml:Point>
                       </sa:position>
                       </sa:SamplingPoint>
               </om:featureOfInterest>
               <om:result xsi:type="swe:QuantityPropertyType">
                       <swe:Quantity phenomenon= "urn:ogc:def:property:OGC:1.0:temperature">
                               <swe:uom code="Cel"/>
                               <swe:value>50</swe:value>
                       </swe:Quantity>
               </om:result>
               </om:Observation>
               </wsnt:Message>
           </wsnt:NotificationMessage>
       </wsnt:Notify>
   </soap:Body>
</soap:Envelope>

--
View this message in context: http://sensorweb.forum.52north.org/SES-Level-2-filter-tp3601068p3601068.html
Sent from the 52° North - Sensor Web Community Forum mailing list archive at Nabble.com.
_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org



--
Matthes Rieke
Research Associate
Institute for Geoinformatics, University of Muenster

Weseler Straße 253
D-48151 Muenster
Germany

Tel.: +49 (0)251 83 31972
http://swsl.uni-muenster.de
http://ifgi.uni-muenster.de/~m_riek02


_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Reply | Threaded
Open this post in threaded view
|

Re: SES Level 2 filter

joydipdas
In reply to this post by joydipdas
Hi Matthes
Thanks for your prompt  help. After eliminating that error I was getting some validation error in subscription request. After going through the forums I got some help and redesign the xml.
Now Subscription is fine. But when I am posting the Notify xml the tomcat is showing below message :

Dec 20, 2011 8:09:23 PM org.n52.swe.ses.filter.engine.esper.EsperFilterEngine pa
rseMessage
INFO: parsing message
Dec 20, 2011 8:09:23 PM org.n52.swe.ses.parser.OMParser parseOM
FINE: ########################## parsing observed property

and after that doing nothing. It seems it hangs in midway may be due to some erroneous xml content and also no response is generated as I can see from JMeter.
I have defined a filter in subscription request that temperature more than 20 should pass to consumer through notify message.
Can you please help. Attaching my latest Subscription and notify xml.

===================subscribe xml ====================

<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" >
    <env:Header>
        <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/ses-main-1.0-SNAPSHOT/services/SesPortType</wsa:To>
        <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
        <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:1b4d3025-f80a-a5b6-aa37-864c47fa1a7e</wsa:MessageID>
        <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
            <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
        </wsa:From>
    </env:Header>
    <env:Body>
        <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
            <wsnt:ConsumerReference>
                <wsa:Address xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:7101</wsa:Address>
            </wsnt:ConsumerReference>
            <wsnt:Filter>
                <wsnt:MessageContent Dialect="http://www.opengis.net/ses/filter/level2">

<fes:Filter xmlns="http://www.opengis.net/wfs" xmlns:fes="http://www.opengis.net/fes/2.0" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:ows="http://www.opengis.net/ows" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"   xsi:schemaLocation="http://www.opengis.net/fes/2.0    http://schemas.opengis.net/filter/2.0/filterAll.xsd" xmlns:swe="http://www.opengis.net/swe/1.0.1"> 
         <fes:And>       
        <fes:PropertyIsGreaterThan>
                        <fes:ValueReference>doubleValue</fes:ValueReference>
                        <fes:Literal> 
                        <swe:Quantity definition="urn:ogc:def:phenomenon:OGC:1.0.30:temperature"> 
                        <swe:uom code="Cel"/>
                        <swe:value>20</swe:value>
                        </swe:Quantity>
                        </fes:Literal>
                </fes:PropertyIsGreaterThan>
                <fes:PropertyIsEqualTo>
                <fes:ValueReference>phenomenon</fes:ValueReference>
        <fes:Literal>urn:ogc:def:phenomenon:OGC:1.0.30:temperature</fes:Literal>
        </fes:PropertyIsEqualTo>
        </fes:And>
</fes:Filter>
                </wsnt:MessageContent>
            </wsnt:Filter>
        </wsnt:Subscribe>
    </env:Body>
</env:Envelope>
====================================================

===============================Notify xml===============
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
    <soap:Header>
        <wsa:To>http://localhost:8080/ses-main-1.0-SNAPSHOT/services/SesPortType</wsa:To>
        <wsa:Action>http://docs.oasis-open.org/wsn/bw-2/NotificationConsumer/Notify</wsa:Action>
        <wsa:MessageID>uuid:1b4d3025-f80a-a5b6-aa37-864c47fa1a7e</wsa:MessageID>
        <wsa:From>
            <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
        </wsa:From>
    </soap:Header>
    <soap:Body>
        <wsnt:Notify>
            <wsnt:NotificationMessage>
                <wsnt:Topic Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Simple"> 
        IntegratedHealthIndex
                </wsnt:Topic>
                <wsnt:Message>
                    <om:Observation gml:id="o211" xmlns:om="http://www.opengis.net/om/1.0" xmlns:gml="http://www.opengis.net/gml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sa="http://www.opengis.net/sampling/1.0" 
                                        xmlns:swe="http://www.opengis.net/swe/1.0.1" xsi:schemaLocation="http://www.opengis.net/om/1.0 http://schemas.opengis.net/om/1.0.0/om.xsd http://www.opengis.net/sampling/1.0 http://schemas.opengis.net/sampling/1.0.0/sampling.xsd">
      <om:samplingTime>
        <gml:TimeInstant xsi:type="gml:TimeInstantType">
          <gml:timePosition>2009-05-30T01:00:00+02:00</gml:timePosition>
        </gml:TimeInstant>
      </om:samplingTime>
      <om:procedure xlink:href="urn:eu:fp7:genesis:procedure:aircraft_A"/>
      <om:observedProperty xlink:href="urn:ogc:def:phenomenon:OGC:1.0.30:temperature"/>
      <om:featureOfInterest>
        <sa:SamplingPoint gml:id="Pos_A_01">
          <gml:name>Aircraft_A_Position</gml:name>
          <sa:sampledFeature xlink:href=""/>
          <sa:position>
            <gml:Point>
              <gml:pos srsName="urn:ogc:crs:epsg:4326">47.817 0.34</gml:pos>
            </gml:Point>
          </sa:position>
        </sa:SamplingPoint>
      </om:featureOfInterest>
      <om:result xsi:type="swe:QuantityPropertyType"> 
                        <swe:Quantity definition="urn:ogc:def:phenomenon:OGC:1.0.30:temperature"> 
                        <swe:uom code="Cel"/>
                        <swe:value>102.9</swe:value> 
                        </swe:Quantity> 
          </om:result>
    </om:Observation>
                </wsnt:Message>
            </wsnt:NotificationMessage>
        </wsnt:Notify>
    </soap:Body>
</soap:Envelope>

================
Reply | Threaded
Open this post in threaded view
|

Re: SES Level 2 filter

Dana
In reply to this post by Matthes Rieke-2
Hi Matthes,
    I have read your reply and recently I've installed SES(1.2.2) and tried the x-path subscription and notification and it is working. Now I am trying to use a level 2 filter. I write a filter according the example in SES spec 08-133(ver 0.3.0) but the subscription failed and I receive the following error message:
*********************************error message***********************************
<soap:Fault>
            <soap:Code>
                <soap:Value>soap:Receiver</soap:Value>
            </soap:Code>
            <soap:Reason>
                <soap:Text xml:lang="en-US">Expected attribute: id@http://www.opengis.net/gml/3.2 in element TimeInstant@http://www.opengis.net/gml/3.2</soap:Text>
            </soap:Reason>
            <soap:Detail>
                <ExceptionReport xmlns="http://www.opengis.net/ows" version="0.0.0">
                    <Exception exceptionCode="Unspecified">
                        <ExceptionText>
<![CDATA[Expected attribute: id@http://www.opengis.net/gml/3.2 in element TimeInstant@http://www.opengis.net/gml/3.2
org.n52.oxf.xmlbeans.parser.XMLBeansParser.validateOnParse(XMLBeansParser.java:233)
org.n52.oxf.xmlbeans.parser.XMLBeansParser.parse(XMLBeansParser.java:220)
org.n52.ses.filter.SESConstraintFilterHandler.newInstance(SESConstraintFilterHandler.java:114)
org.apache.muse.ws.notification.impl.FilterFactory.newInstance(FilterFactory.java:129)
org.apache.muse.ws.notification.impl.Subscribe.<init>(Subscribe.java:83)
org.n52.ses.wsn.SubscribeWithPolicy.<init>(SubscribeWithPolicy.java:46)
org.n52.ses.wsn.SubscribeWithPolicyHandler.fromXML(SubscribeWithPolicyHandler.java:41)
org.apache.muse.core.SimpleResource.invoke(SimpleResource.java:368)
org.apache.muse.core.routing.SimpleResourceRouter.invoke(SimpleResourceRouter.java:326)
org.n52.ses.common.SESResourceRouter.invoke(SESResourceRouter.java:57)
org.apache.muse.core.platform.mini.MiniIsolationLayer.handleRequest(MiniIsolationLayer.java:114)
org.n52.ses.common.environment.SESMiniServlet.handleSoapRequest(SESMiniServlet.java:185)
org.n52.ses.common.environment.SESMiniServlet.doPost(SESMiniServlet.java:153)
javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2500)
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2489)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
java.lang.Thread.run(Unknown Source)
]]>

</ExceptionText>
                    </Exception>
                </ExceptionReport>
            </soap:Detail>
        </soap:Fault>
*********************************error message***********************************

My subscribe & notify xml are given below.
*********************************Subscribe xml ***********************************
<?xml version="1.0" encoding="UTF-8" ?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
    <env:Header>
        <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/52n-ses-1.2.2/services/SesPortType</wsa:To>
        <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
        <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:1b4d3025-f80a-a5b6-aa37-864c47fa1a7e</wsa:MessageID>
        <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
            <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
        </wsa:From>
    </env:Header>
    <env:Body>
        <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
            <wsnt:ConsumerReference>
                <wsa:Address xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8092</wsa:Address>
            </wsnt:ConsumerReference>
            <wsnt:Filter>
                <wsnt:MessageContent Dialect="http://www.opengis.net/ses/filter/level2">
                    <fes:Filter xmlns:fes="http://www.opengis.net/fes/2.0"
                                                        xmlns:gml="http://www.opengis.net/gml/3.2"
                                                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                                                        xsi:schemaLocation="http://www.opengis.net/fes/2.0
                                                        http://schemas.opengis.net/filter/2.0.0/filterAll.xsd
                                                        http://www.opengis.net/gml/3.2
                                                        http://schemas.opengis.net/gml/3.2.1/gml.xsd">
                        <fes:And>
                            <fes:PropertyIsGreaterThan>
                                                            <fes:ValueReference>AirTemperature</fes:ValueReference>
                                                                <fes:Literal>
                                   <gml:Quantity uom="Cel">30</gml:Quantity>
                                </fes:Literal>
                                                        </fes:PropertyIsGreaterThan>
                                                        <fes:Contains>
                                                            <fes:ValueReference>input/geometry</fes:ValueReference>
                                                                <gml:Envelope srsName="urn:ogc:def:crs:EPSG::4326">
                                                                <gml:lowerCorner>30.0000 114.0000</gml:lowerCorner>
                                                                <gml:upperCorner>31.0000 114.8000</gml:upperCorner>
                                                                </gml:Envelope>
                                                        </fes:Contains>
                                                        <fes:After>
                                                            <fes:ValueReference>starTime</fes:ValueReference>
                                                                <gml:TimeInstant>
                                                                   <gml:timePosition>2010-12-01T00:00:00.000+08:00</gml:timePosition>
                                                                </gml:TimeInstant>
                                                        </fes:After>
                        </fes:And>
                    </fes:Filter>
                </wsnt:MessageContent>
            </wsnt:Filter>
        </wsnt:Subscribe>
    </env:Body>
</env:Envelope>
*********************************Subscribe xml ***********************************
*********************************Notify xml **************************************
<?xml version="1.0" encoding="UTF-8" ?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
    <soap:Header>
        <wsa:To>http://localhost:8080/52n-ses-1.2.2/services/SesPortType</wsa:To>
        <wsa:Action>http://docs.oasis-open.org/wsn/bw-2/NotificationConsumer/Notify</wsa:Action>
        <wsa:MessageID>uuid:1b4d3025-f80a-a5b6-aa37-864c47fa1a7e</wsa:MessageID>
        <wsa:From>
            <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
        </wsa:From>
    </soap:Header>
    <soap:Body>
        <wsnt:Notify>
            <wsnt:NotificationMessage>
                <wsnt:Topic Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Simple">Measurements</wsnt:Topic>
                <wsnt:Message>
                    <om:Observation gml:id="ot_279501-4" xmlns:gml="http://www.opengis.net/gml" xmlns:om="http://www.opengis.net/om/1.0" xmlns:sa="http://www.opengis.net/sampling/1.0" xmlns:swe="http://www.opengis.net/swe/1.0.1" xmlns:xlink="http://www.w3.org/1999/xlink">
                        <om:samplingTime>
                            <gml:TimeInstant>
                                <gml:timePosition>2011-01-01T00:00:00.000+08:00</gml:timePosition>
                            </gml:TimeInstant>
                        </om:samplingTime>
                        <om:procedure xlink:href="urn:liesmars:object:feature:Platform:Station:Weather:sta-a001" />
                        <om:observedProperty>
                            <swe:CompositePhenomenon gml:id="cpid0" dimension="1">
                                <gml:name>resultComponents</gml:name>
                                <swe:component xlink:href="http://www.opengis.net/def/uom/ISO-8601/0/Gregorian" />
                                <swe:component xlink:href="urn:liesmars:def:phenomenon:LIESMARS:1.0.0:Temperature" />
                                <swe:component xlink:href="urn:liesmars:def:phenomenon:LIESMARS:1.0.0:Speed" />
                                <swe:component xlink:href="urn:liesmars:def:phenomenon:LIESMARS:1.0.0:Direction" /></swe:CompositePhenomenon>
                        </om:observedProperty>
                        <om:featureOfInterest>
                            <sa:SamplingPoint gml:id="sta-a001">
                                <gml:name>station a001</gml:name>
                                <sa:sampledFeature xlink:href="" />
                                <sa:position>
                                    <gml:Point srsName="urn:ogc:def:crs:EPSG::4326">
                                        <gml:pos>30.535296 114.369321</gml:pos>
                                    </gml:Point>
                                </sa:position>
                            </sa:SamplingPoint>
                        </om:featureOfInterest>
                        <om:result>
                            <swe:DataArray>
                                <swe:elementCount>
                                    <swe:Count>
                                        <swe:value>1</swe:value>
                                    </swe:Count>
                                </swe:elementCount>
                                <swe:elementType name="Components">
                                    <swe:DataRecord>
                                        <swe:field name="Time">
                                            <swe:Time definition="http://www.opengis.net/def/uom/ISO-8601/0/Gregorian" /></swe:field>
                                        <swe:field name="AirTemperature">
                                            <swe:Quantity definition="urn:liesmars:def:phenomenon:LIESMARS:1.0.0:Temperature">
                                                <swe:uom code="Cel" /></swe:Quantity>
                                        </swe:field>
                                        <swe:field name="WindSpeed">
                                            <swe:Quantity definition="urn:liesmars:def:phenomenon:LIESMARS:1.0.0:Speed">
                                                <swe:uom code="m/s" /></swe:Quantity>
                                        </swe:field>
                                        <swe:field name="WindDirection">
                                            <swe:Quantity definition="urn:liesmars:def:phenomenon:LIESMARS:1.0.0:Direction">
                                                <swe:uom code="degree" /></swe:Quantity>
                                        </swe:field>
                                    </swe:DataRecord>
                                </swe:elementType>
                                <swe:encoding>
                                    <swe:TextBlock decimalSeparator="." tokenSeparator="," blockSeparator=";" /></swe:encoding>
                                <swe:values>2011-01-01T00:00:00.000+08:00,-0.6,11.8,226;</swe:values>
                            </swe:DataArray>
                        </om:result>
                    </om:Observation>
                </wsnt:Message>
            </wsnt:NotificationMessage>
        </wsnt:Notify>
    </soap:Body>
</soap:Envelope>
*********************************Notify xml **************************************
I don't know how to solve this problem and I'm here to turn to you for help. Do you have any suggestions?
Best regards,
Dana
Reply | Threaded
Open this post in threaded view
|

Re: SES Level 2 filter

Matthes Rieke (52North)
Hi Dana,

the error message seems very clear about the issue. The gml:TimeInstant element is required to have the attribute "id". The service is validating all incoming requests against the corresponding schema. You could use a tool to validate your requests before sending (e.g. XmlSpy) - or check the output of the service.

Best
Matthes


> Dana <[hidden email]> hat am 23. August 2016 um 06:10 geschrieben:
>
>
> Hi Matthes,
>     I have read your reply and recently I've installed SES(1.2.2) and tried
> the x-path subscription and notification and it is working. Now I am trying
> to use a level 2 filter. I write a filter according the example in SES spec
> 08-133(ver 0.3.0) but the subscription failed and I receive the following
> error message:
> *********************************error
> message***********************************
> <soap:Fault>
>             <soap:Code>
>                 <soap:Value>soap:Receiver</soap:Value>
>             </soap:Code>
>             <soap:Reason>
>                 <soap:Text xml:lang="en-US">Expected attribute:
> id@http://www.opengis.net/gml/3.2 in element
> TimeInstant@http://www.opengis.net/gml/3.2</soap:Text>
>             </soap:Reason>
>             <soap:Detail>
>                 <ExceptionReport xmlns="http://www.opengis.net/ows"
> version="0.0.0">
>                     <Exception exceptionCode="Unspecified">
>                         <ExceptionText>
> </ExceptionText>
>                     </Exception>
>                 </ExceptionReport>
>             </soap:Detail>
>         </soap:Fault>
> *********************************error
> message***********************************
>
> My subscribe & notify xml are given below.
> *********************************Subscribe xml
> ***********************************
> <?xml version="1.0" encoding="UTF-8" ?>
> <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
>     <env:Header>
>         <wsa:To
> xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8080/52n-ses-1.2.2/services/SesPortType</wsa:To>
>         <wsa:Action
> xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:MessageID
> xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:1b4d3025-f80a-a5b6-aa37-864c47fa1a7e</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>            
> <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </env:Header>
>     <env:Body>
>         <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:ConsumerReference>
>                 <wsa:Address
> xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8092</wsa:Address>
>             </wsnt:ConsumerReference>
>             <wsnt:Filter>
>                 <wsnt:MessageContent
> Dialect="http://www.opengis.net/ses/filter/level2">
>                     <fes:Filter xmlns:fes="http://www.opengis.net/fes/2.0"
>                                                        
> xmlns:gml="http://www.opengis.net/gml/3.2"
>                                                        
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>                                                        
> xsi:schemaLocation="http://www.opengis.net/fes/2.0
>                                                        
> http://schemas.opengis.net/filter/2.0.0/filterAll.xsd
>                                                        
> http://www.opengis.net/gml/3.2
>                                                        
> http://schemas.opengis.net/gml/3.2.1/gml.xsd">
>                         <fes:And>
>                             <fes:PropertyIsGreaterThan>
>                                                            
> <fes:ValueReference>AirTemperature</fes:ValueReference>
>                                                                
> <fes:Literal>
>                                    <gml:Quantity uom="Cel">30</gml:Quantity>
>                                 </fes:Literal>
>                                                        
> </fes:PropertyIsGreaterThan>
>                                                         <fes:Contains>
>                                                            
> <fes:ValueReference>input/geometry</fes:ValueReference>
>                                                                
> <gml:Envelope srsName="urn:ogc:def:crs:EPSG::4326">
>                                                                
> <gml:lowerCorner>30.0000 114.0000</gml:lowerCorner>
>                                                                
> <gml:upperCorner>31.0000 114.8000</gml:upperCorner>
>                                                                
> </gml:Envelope>
>                                                         </fes:Contains>
>                                                         <fes:After>
>                                                            
> <fes:ValueReference>starTime</fes:ValueReference>
>                                                                
> <gml:TimeInstant>
>                                                                  
> <gml:timePosition>2010-12-01T00:00:00.000+08:00</gml:timePosition>
>                                                                
> </gml:TimeInstant>
>                                                         </fes:After>
>                         </fes:And>
>                     </fes:Filter>
>                 </wsnt:MessageContent>
>             </wsnt:Filter>
>         </wsnt:Subscribe>
>     </env:Body>
> </env:Envelope>
> *********************************Subscribe xml
> ***********************************
> *********************************Notify xml
> **************************************
> <?xml version="1.0" encoding="UTF-8" ?>
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
> xmlns:wsa="http://www.w3.org/2005/08/addressing"
> xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>     <soap:Header>
>        
> <wsa:To>http://localhost:8080/52n-ses-1.2.2/services/SesPortType</wsa:To>
>        
> <wsa:Action>http://docs.oasis-open.org/wsn/bw-2/NotificationConsumer/Notify</wsa:Action>
>        
> <wsa:MessageID>uuid:1b4d3025-f80a-a5b6-aa37-864c47fa1a7e</wsa:MessageID>
>         <wsa:From>
>            
> <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:Notify>
>             <wsnt:NotificationMessage>
>                 <wsnt:Topic
> Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Simple">Measurements</wsnt:Topic>
>                 <wsnt:Message>
>                     <om:Observation gml:id="ot_279501-4"
> xmlns:gml="http://www.opengis.net/gml"
> xmlns:om="http://www.opengis.net/om/1.0"
> xmlns:sa="http://www.opengis.net/sampling/1.0"
> xmlns:swe="http://www.opengis.net/swe/1.0.1"
> xmlns:xlink="http://www.w3.org/1999/xlink">
>                         <om:samplingTime>
>                             <gml:TimeInstant>
>                                
> <gml:timePosition>2011-01-01T00:00:00.000+08:00</gml:timePosition>
>                             </gml:TimeInstant>
>                         </om:samplingTime>
>                         <om:procedure
> xlink:href="urn:liesmars:object:feature:Platform:Station:Weather:sta-a001"
> />
>                         <om:observedProperty>
>                             <swe:CompositePhenomenon gml:id="cpid0"
> dimension="1">
>                                 <gml:name>resultComponents</gml:name>
>                                 <swe:component
> xlink:href="http://www.opengis.net/def/uom/ISO-8601/0/Gregorian" />
>                                 <swe:component
> xlink:href="urn:liesmars:def:phenomenon:LIESMARS:1.0.0:Temperature" />
>                                 <swe:component
> xlink:href="urn:liesmars:def:phenomenon:LIESMARS:1.0.0:Speed" />
>                                 <swe:component
> xlink:href="urn:liesmars:def:phenomenon:LIESMARS:1.0.0:Direction"
> /></swe:CompositePhenomenon>
>                         </om:observedProperty>
>                         <om:featureOfInterest>
>                             <sa:SamplingPoint gml:id="sta-a001">
>                                 <gml:name>station a001</gml:name>
>                                 <sa:sampledFeature xlink:href="" />
>                                 <sa:position>
>                                     <gml:Point
> srsName="urn:ogc:def:crs:EPSG::4326">
>                                         <gml:pos>30.535296
> 114.369321</gml:pos>
>                                     </gml:Point>
>                                 </sa:position>
>                             </sa:SamplingPoint>
>                         </om:featureOfInterest>
>                         <om:result>
>                             <swe:DataArray>
>                                 <swe:elementCount>
>                                     <swe:Count>
>                                         <swe:value>1</swe:value>
>                                     </swe:Count>
>                                 </swe:elementCount>
>                                 <swe:elementType name="Components">
>                                     <swe:DataRecord>
>                                         <swe:field name="Time">
>                                             <swe:Time
> definition="http://www.opengis.net/def/uom/ISO-8601/0/Gregorian"
> /></swe:field>
>                                         <swe:field name="AirTemperature">
>                                             <swe:Quantity
> definition="urn:liesmars:def:phenomenon:LIESMARS:1.0.0:Temperature">
>                                                 <swe:uom code="Cel"
> /></swe:Quantity>
>                                         </swe:field>
>                                         <swe:field name="WindSpeed">
>                                             <swe:Quantity
> definition="urn:liesmars:def:phenomenon:LIESMARS:1.0.0:Speed">
>                                                 <swe:uom code="m/s"
> /></swe:Quantity>
>                                         </swe:field>
>                                         <swe:field name="WindDirection">
>                                             <swe:Quantity
> definition="urn:liesmars:def:phenomenon:LIESMARS:1.0.0:Direction">
>                                                 <swe:uom code="degree"
> /></swe:Quantity>
>                                         </swe:field>
>                                     </swe:DataRecord>
>                                 </swe:elementType>
>                                 <swe:encoding>
>                                     <swe:TextBlock decimalSeparator="."
> tokenSeparator="," blockSeparator=";" /></swe:encoding>
>                                
> <swe:values>2011-01-01T00:00:00.000+08:00,-0.6,11.8,226;</swe:values>
>                             </swe:DataArray>
>                         </om:result>
>                     </om:Observation>
>                 </wsnt:Message>
>             </wsnt:NotificationMessage>
>         </wsnt:Notify>
>     </soap:Body>
> </soap:Envelope>
> *********************************Notify xml
> **************************************
> I don't know how to solve this problem and I'm here to turn to you for help.
> Do you have any suggestions?
> Best regards,
> Dana
>
>
>
> --
> View this message in context: http://sensorweb.forum.52north.org/SES-Level-2-filter-tp3601068p4028617.html
> Sent from the 52° North - Sensor Web Community Forum mailing list archive at Nabble.com.
> _______________________________________________
> SWE mailing list
> [hidden email]
> http://list.52north.org/mailman/listinfo/swe
> http://sensorweb.forum.52north.org
> Please respect our mailing list guidelines:
> http://52north.org/resources/mailing-lists-and-forums/guidelines
_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|

Re: SES Level 2 filter

Dana
Hi Matthes,
    Thanks for your reply again and sorry for replying you so late. Yes, you're right! There certainly needs to have the "id"attribute. I used to read the SES spec 08-133(ver 0.3.0) and the given example on page26 in listing 5 reads that the "TimeInstant" doesn't include the attribute "id". So maybe there's something wrong or else. But when I insert the attribute "id" and re-subscribe my request, it still returns some wrong information.The error messages are as follows:
error message 
<soap:Fault>
            <soap:Code>
                <soap:Value>soap:Receiver</soap:Value>
            </soap:Code>
            <soap:Reason>
                <soap:Text xml:lang="en-US">Error in esper statement, possible EML error: 'Incorrect syntax near ')' at line 1
                    column 151, please check the where clause [select * from sensorStream.win:length(1)  where
                    (((PropertyMethods.propertyExists(this, "AirTemperature") ) AND (AirTemperature > 30)) and (null)
                    and () )]'<wsnt:SubscribeCreationFailedFault xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
                    <wsrf-bf:Timestamp
                    xmlns:wsrf-bf="http://docs.oasis-open.org/wsrf/bf-2">2016-08-24T18:19:20+08:00</wsrf-bf:Timestamp>
                    </wsnt:SubscribeCreationFailedFault> </soap:Text>
            </soap:Reason>
            <soap:Detail>
                <ExceptionReport xmlns="http://www.opengis.net/ows" version="0.0.0">
                    <Exception exceptionCode="Unspecified">
                        <ExceptionText><![CDATA[Error in esper statement, possible EML error: 'Incorrect syntax near ')' at line 1 column 151, please check the where clause [select * from sensorStream.win:length(1)  where (((PropertyMethods.propertyExists(this, "AirTemperature") ) AND (AirTemperature > 30)) and (null) and () )]'
<b>error message</b>  
I didn't modify my subscription xml file except for adding the attribute "id". I've only registered one publisher and there is only one record without any events stream. So I don't know why there is an EML error.
Besides I have tried some other spatial filters while some of the subscription failed and there's nothing wrong with my xml file. So if there exists any bug in the SES?
Sorry for disturbing you again.
Best wishes,
Dana
Reply | Threaded
Open this post in threaded view
|

Re: SES Level 2 filter

Dana
Hi Matthes,
    Thanks for your reply again and sorry for replying you so late. Yes, you're right! There certainly needs to have the "id"attribute. I used to read the SES spec 08-133(ver 0.3.0) and the given example on page26 in listing 5 reads that the "TimeInstant" doesn't include the attribute "id". So maybe there's something wrong or else. But when I insert the attribute "id" and re-subscribe my request but a new error comes up.The error messages are as follows:
error message 
<soap:Fault>
            <soap:Code>
                <soap:Value>soap:Receiver</soap:Value>
            </soap:Code>
            <soap:Reason>
                <soap:Text xml:lang="en-US">Error in esper statement, possible EML error: 'Incorrect syntax near ')' at line 1
                    column 151, please check the where clause [select * from sensorStream.win:length(1)  where
                    (((PropertyMethods.propertyExists(this, "AirTemperature") ) AND (AirTemperature > 30)) and (null)
                    and () )]'<wsnt:SubscribeCreationFailedFault xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
                    <wsrf-bf:Timestamp
                    xmlns:wsrf-bf="http://docs.oasis-open.org/wsrf/bf-2">2016-08-24T18:19:20+08:00</wsrf-bf:Timestamp>
                    </wsnt:SubscribeCreationFailedFault> </soap:Text>
            </soap:Reason>
            <soap:Detail>
                <ExceptionReport xmlns="http://www.opengis.net/ows" version="0.0.0">
                    <Exception exceptionCode="Unspecified">
                        <ExceptionText><![CDATA[Error in esper statement, possible EML error: 'Incorrect syntax near ')' at line 1 column 151, please check the where clause [select * from sensorStream.win:length(1)  where (((PropertyMethods.propertyExists(this, "AirTemperature") ) AND (AirTemperature > 30)) and (null) and () )]'
<b>error message</b>  
I didn't modify my subscription xml file except for adding the attribute "id". I've only registered one publisher and there is only one record without any events stream. So I don't know why there is an EML error.
Besides I have tried some other spatial filters while some of the subscription failed and there's nothing wrong with my xml file. So if there exists any bug in the SES?
Sorry for disturbing you again.
Best wishes,
Dana