You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-dev@ws.apache.org by Christian Ewers <CE...@de.ibm.com> on 2007/03/18 12:41:36 UTC

NotificationMessage

I just checked out the latest source from the repository and rebuilt my
webapps. The problem with the int[]-array is solved, but I think it caused
a new problem (at least an Array-Serializing problem). I use the standard
WSRP Change Notifications, which worked correctly so far. But with the
latest source I get the following error, when receiving a notification.


[ID = 'NoMessageContent'] The NotificationMessage XML does not have a
Message element. All messages must have a message payload associated with
them.


org.apache.muse.ws.notification.impl.SimpleNotificationMessage.<init>(SimpleNotificationMessage.java:113)

org.apache.muse.ws.notification.impl.NotificationMessageSerializer.fromXML(NotificationMessageSerializer.java:42)

org.apache.muse.core.serializer.ArraySerializer.fromXML(ArraySerializer.java:122)

org.apache.muse.core.routing.ReflectionMessageHandler.fromXML(ReflectionMessageHandler.java:128)
        org.apache.muse.core.SimpleResource.invoke(SimpleResource.java:364)

org.apache.muse.core.routing.SimpleResourceRouter.invoke(SimpleResourceRouter.java:286)

org.apache.muse.core.platform.axis2.AxisIsolationLayer.invoke(AxisIsolationLayer.java:132)

org.apache.muse.core.platform.axis2.AxisIsolationLayer.handleRequest(AxisIsolationLayer.java:84)
        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:585)

org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:88)

org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)
        org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:493)
        21 more...
------------------------------------------


The NotificationMessage was:


<?xml version='1.0' encoding='utf-8'?><soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Header>
        <wsa:To
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://192.168.1.100:8080/registry/services/ServiceGroupEntry</wsa:To>
        <wsa:Action
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationConsumer/NotifyRequest</wsa:Action>
        <wsa:MessageID
xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:71bda228-001c-e3a7-9809-106a8de12e06</wsa:MessageID>
        <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">

<wsa:Address>http://192.168.1.100:9090/wsrf/services/WsResource</wsa:Address>
            <wsa:ReferenceParameters>
                <muse-wsa:ResourceId
xmlns:muse-wsa="http://ws.apache.org/muse/addressing">uuid:e102934f-d716-4892-d174-579d9cbe4ce7</muse-wsa:ResourceId>
            </wsa:ReferenceParameters>
        </wsa:From>
        <muse-wsa:ResourceId
xmlns:muse-wsa="http://ws.apache.org/muse/addressing"
xmlns:wsa="http://www.w3.org/2005/08/addressing"
wsa:IsReferenceParameter="true">MuseResource-1</muse-wsa:ResourceId>
    </soap:Header>
    <soap:Body>
        <wsnt:Notify xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
            <wsnt:NotificationMessage
xmlns:muse-wsa="http://ws.apache.org/muse/addressing"
xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/rp-2"
xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:muws2="http://docs.oasis-open.org/wsdm/muws2-2.xsd">
                <wsnt:SubscriptionReference>

<wsa:Address>http://192.168.1.100:9090/wsrf/services/SubscriptionManager</wsa:Address>
                    <wsa:ReferenceParameters>

<muse-wsa:ResourceId>MuseResource-1</muse-wsa:ResourceId>
                    </wsa:ReferenceParameters>
                </wsnt:SubscriptionReference>
                <wsnt:Topic
Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Concrete">muws2:OperationalStatus</wsnt:Topic>
                <wsnt:ProducerReference>

<wsa:Address>http://192.168.1.100:9090/wsrf/services/WsResource</wsa:Address>
                    <wsa:ReferenceParameters>

<muse-wsa:ResourceId>uuid:e102934f-d716-4892-d174-579d9cbe4ce7</muse-wsa:ResourceId>
                    </wsa:ReferenceParameters>
                </wsnt:ProducerReference>
                <wsnt:Message>
                    <wsrf-rp:ResourcePropertyValueChangeNotification>
                        <wsrf-rp:OldValues>

<muws2:OperationalStatus>Available</muws2:OperationalStatus>
                        </wsrf-rp:OldValues>
                        <wsrf-rp:NewValues>

<muws2:OperationalStatus>Unavailable</muws2:OperationalStatus>
                        </wsrf-rp:NewValues>
                    </wsrf-rp:ResourcePropertyValueChangeNotification>
                </wsnt:Message>
            </wsnt:NotificationMessage>
        </wsnt:Notify>
    </soap:Body>
</soap:Envelope>

Thanks,
Christian


---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org


Re: NotificationMessage

Posted by Daniel Jemiolo <da...@us.ibm.com>.
Hi,

Sorry about that. That's an easy fix, I'll make a new build and it will be 
under /nightly/latest in about an hour.

Thanks,
Dan



Christian Ewers <CE...@de.ibm.com> wrote on 03/18/2007 07:41:36 AM:

> 
> I just checked out the latest source from the repository and rebuilt my
> webapps. The problem with the int[]-array is solved, but I think it 
caused
> a new problem (at least an Array-Serializing problem). I use the 
standard
> WSRP Change Notifications, which worked correctly so far. But with the
> latest source I get the following error, when receiving a notification.
> 
> 
> [ID = 'NoMessageContent'] The NotificationMessage XML does not have a
> Message element. All messages must have a message payload associated 
with
> them.
> 
> 
> org.apache.muse.ws.notification.impl.SimpleNotificationMessage.
> <init>(SimpleNotificationMessage.java:113)
> 
> org.apache.muse.ws.notification.impl.NotificationMessageSerializer.
> fromXML(NotificationMessageSerializer.java:42)
> 
> 
org.apache.muse.core.serializer.ArraySerializer.fromXML(ArraySerializer.java:122)
> 
> org.apache.muse.core.routing.ReflectionMessageHandler.
> fromXML(ReflectionMessageHandler.java:128)
> org.apache.muse.core.SimpleResource.invoke(SimpleResource.java:364)
> 
> 
org.apache.muse.core.routing.SimpleResourceRouter.invoke(SimpleResourceRouter.java:286)
> 
> org.apache.muse.core.platform.axis2.AxisIsolationLayer.
> invoke(AxisIsolationLayer.java:132)
> 
> org.apache.muse.core.platform.axis2.AxisIsolationLayer.
> handleRequest(AxisIsolationLayer.java:84)
>         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 
> 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 
> 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         java.lang.reflect.Method.invoke(Method.java:585)
> 
> org.apache.axis2.receivers.RawXMLINOutMessageReceiver.
> invokeBusinessLogic(RawXMLINOutMessageReceiver.java:88)
> 
> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.
> receive(AbstractInOutSyncMessageReceiver.java:39)
>         org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:493)
>         21 more...
> ------------------------------------------
> 
> 
> The NotificationMessage was:
> 
> 
> <?xml version='1.0' encoding='utf-8'?><soap:Envelope
> xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To
> xmlns:wsa="http://www.w3.org/2005/08/addressing">http://192.168.1.100:
> 8080/registry/services/ServiceGroupEntry</wsa:To>
>         <wsa:Action
> xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.
> org/wsn/bw-2/NotificationConsumer/NotifyRequest</wsa:Action>
>         <wsa:MessageID
> xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:71bda228-001c-
> e3a7-9809-106a8de12e06</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
> 
> 
<wsa:Address>http://192.168.1.100:9090/wsrf/services/WsResource</wsa:Address>
>             <wsa:ReferenceParameters>
>                 <muse-wsa:ResourceId
> 
xmlns:muse-wsa="http://ws.apache.org/muse/addressing">uuid:e102934f-d716-4892-
> d174-579d9cbe4ce7</muse-wsa:ResourceId>
>             </wsa:ReferenceParameters>
>         </wsa:From>
>         <muse-wsa:ResourceId
> xmlns:muse-wsa="http://ws.apache.org/muse/addressing"
> xmlns:wsa="http://www.w3.org/2005/08/addressing"
> wsa:IsReferenceParameter="true">MuseResource-1</muse-wsa:ResourceId>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:Notify xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:NotificationMessage
> xmlns:muse-wsa="http://ws.apache.org/muse/addressing"
> xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/rp-2"
> xmlns:wsa="http://www.w3.org/2005/08/addressing"
> xmlns:muws2="http://docs.oasis-open.org/wsdm/muws2-2.xsd">
>                 <wsnt:SubscriptionReference>
> 
> 
<wsa:Address>http://192.168.1.100:9090/wsrf/services/SubscriptionManager</wsa:Address>
>                     <wsa:ReferenceParameters>
> 
> <muse-wsa:ResourceId>MuseResource-1</muse-wsa:ResourceId>
>                     </wsa:ReferenceParameters>
>                 </wsnt:SubscriptionReference>
>                 <wsnt:Topic
> 
Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Concrete">muws2:
> OperationalStatus</wsnt:Topic>
>                 <wsnt:ProducerReference>
> 
> 
<wsa:Address>http://192.168.1.100:9090/wsrf/services/WsResource</wsa:Address>
>                     <wsa:ReferenceParameters>
> 
> 
<muse-wsa:ResourceId>uuid:e102934f-d716-4892-d174-579d9cbe4ce7</muse-wsa:ResourceId>
>                     </wsa:ReferenceParameters>
>                 </wsnt:ProducerReference>
>                 <wsnt:Message>
>                     <wsrf-rp:ResourcePropertyValueChangeNotification>
>                         <wsrf-rp:OldValues>
> 
> <muws2:OperationalStatus>Available</muws2:OperationalStatus>
>                         </wsrf-rp:OldValues>
>                         <wsrf-rp:NewValues>
> 
> <muws2:OperationalStatus>Unavailable</muws2:OperationalStatus>
>                         </wsrf-rp:NewValues>
>                     </wsrf-rp:ResourcePropertyValueChangeNotification>
>                 </wsnt:Message>
>             </wsnt:NotificationMessage>
>         </wsnt:Notify>
>     </soap:Body>
> </soap:Envelope>
> 
> Thanks,
> Christian
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-dev-help@ws.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org