Can you send us the files that you changed? Or the new code, if you only 
changed Java? I will try to recreate your steps and see what happens. Make 
sure you document *every* file change.  :)

Dan



Gero Vermaas <[EMAIL PROTECTED]> wrote on 10/17/2006 02:39:32 PM:

> Hi,
> 
> I'm using the wsn-consumer and wsn-producer examples as the basis to get 

> some experience with Muse. I made some changes to it and now I run into 
> a situation that I've been banging my head against for a couple of hours 

> without seeing the light... Hope someone can point me in the right 
> direction ;-)
> 
> If I let the wsn-producer sent out the following  message, it is 
> correctly received in the wsn-consumer, the initializeCompleted(), 
> accept() and process() messages are being invoked correctly. No problem. 

> Note that I did change the tns namespace to reflect my situation.  This 
> message still has the original content for the wsnt:Message element.
> 
> <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://localhost:8081/ossj-
> tck-wsn-consumer/services/consumer</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:e80685de-459f-c18d-
> a968-47c87f5dc36d</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing";>
>             <wsa:ReferenceParameters 
> xmlns:wsa="http://www.w3.org/2005/08/addressing"/>
> 
> <wsa:Address>http://127.0.0.1:8080/ossj-tck-fdtn-wsn-
> producer/services/WsResource</wsa:Address>
>         </wsa:From>
>     </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:tns="http://org.ossj/tck/wsn/testproducer";
>                 xmlns:wsa="http://www.w3.org/2005/08/addressing"; 
> xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2";>
>                 <wsnt:SubscriptionReference>
>                     <wsa:Address 
> 
xmlns:wsa="http://www.w3.org/2005/08/addressing";>http://127.0.0.1:8080/ossj-
> tck-fdtn-wsn-producer/services/SubscriptionManager</wsa:Address>
>                     <wsa:ReferenceParameters 
> xmlns:wsa="http://www.w3.org/2005/08/addressing";>
>                         <muse-wsa:ResourceId 
> 
xmlns:muse-wsa="http://ws.apache.org/muse/addressing";>MuseResource-1</muse-
> wsa:ResourceId>
>                     </wsa:ReferenceParameters>
>                 </wsnt:SubscriptionReference>
>                 <wsnt:Topic
> 
> Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Concrete"; 
> 
xmlns:tns="http://org.ossj/tck/wsn/testproducer";>tns:MyTopic</wsnt:Topic>
>                 <wsnt:ProducerReference>
>                     <wsa:ReferenceParameters 
> xmlns:wsa="http://www.w3.org/2005/08/addressing"/>
>                     <wsa:Address 
> 
xmlns:wsa="http://www.w3.org/2005/08/addressing";>http://127.0.0.1:8080/ossj-
> tck-fdtn-wsn-producer/services/WsResource</wsa:Address>
>                 </wsnt:ProducerReference>
>                 <wsnt:Message>
>                     <tns:MyMessage 
> xmlns:tns="http://org.ossj/tck/wsn/testproducer"/>
>                 </wsnt:Message>
>             </wsnt:NotificationMessage>
>         </wsnt:Notify>
>     </soap:Body>
> </soap:Envelope>
> 
> 
> Now when I modify the producer  to sent the following message, in the 
> wsn-consumer only the initializeCompleted() method gets invoked when the 

> message is received. accept() and process() are not invoked, so it looks 

> like the message is rejected for some reason, but I don't get any 
> logging output to the console. (just that initializeCompleted() in 
> invoked, no errors).  The "only" change compared to the previous message 

> is that the contents of the wsnt:Message is now an XML snippet that I 
> would like to sent as a notification.
> 
> <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://localhost:8081/ossj-
> tck-wsn-consumer/services/consumer</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:
> 02161d65-3418-96cf-5bee-063b78494ff1</wsa:MessageID>
>         <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing";>
>             <wsa:ReferenceParameters 
> xmlns:wsa="http://www.w3.org/2005/08/addressing"/>
> 
> <wsa:Address>http://127.0.0.1:8080/ossj-tck-fdtn-wsn-
> producer/services/WsResource</wsa:Address>
>         </wsa:From>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:Notify xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2";>
>             <wsnt:NotificationMessage xmlns:=""
>                 xmlns:muse-wsa="http://ws.apache.org/muse/addressing";
>                 xmlns:wsa="http://www.w3.org/2005/08/addressing"; 
> xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2";>
>                 <wsnt:SubscriptionReference>
>                     <wsa:Address 
> 
xmlns:wsa="http://www.w3.org/2005/08/addressing";>http://127.0.0.1:8080/ossj-
> tck-fdtn-wsn-producer/services/SubscriptionManager</wsa:Address>
>                     <wsa:ReferenceParameters 
> xmlns:wsa="http://www.w3.org/2005/08/addressing";>
>                         <muse-wsa:ResourceId 
> 
xmlns:muse-wsa="http://ws.apache.org/muse/addressing";>MuseResource-1</muse-
> wsa:ResourceId>
>                     </wsa:ReferenceParameters>
>                 </wsnt:SubscriptionReference>
>                 <wsnt:Topic
> 
> Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Concrete"; 
> 
xmlns:tns="http://org.ossj/tck/wsn/testproducer";>tns:MyTopic</wsnt:Topic>
>                 <wsnt:ProducerReference>
>                     <wsa:ReferenceParameters 
> xmlns:wsa="http://www.w3.org/2005/08/addressing"/>
>                     <wsa:Address 
> 
xmlns:wsa="http://www.w3.org/2005/08/addressing";>http://127.0.0.1:8080/ossj-
> tck-fdtn-wsn-producer/services/WsResource</wsa:Address>
>                 </wsnt:ProducerReference>
>                 <wsnt:Message>
>                     <tt:troubleTicketCreateEvent
> 
> xmlns:co="http://java.sun.com/products/oss/xml/Common";
> 
> 
xmlns:fm="http://java.sun.com/products/oss/xml/QualityOfService/FM/Monitor";
> 
> 
xmlns:measurement="http://java.sun.com/products/oss/xml/QualityOfService/PM/Measurement";
> 
> 
xmlns:threshold="http://java.sun.com/products/oss/xml/QualityOfService/PM/Threshold";
> 
> xmlns:tt="http://java.sun.com/products/oss/xml/TroubleTicket";
>                         xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:schemaLocation="http://java.sun.
> com/products/oss/xml/TroubleTicket/XmlTroubleTicketSchema.xsd">
>                         <tt:event>
> 
> 
<co:applicationDN>System/RI/ApplicationType/TroubleTicket/Application/1-0;
> 1-0-2;OSSJTTRI</co:applicationDN>
> 
> <co:eventTime>2006-06-05T06:16:46Z</co:eventTime>
>                             <tt:troubleTicketValue>
> 
> <co:lastUpdateVersionNumber>0</co:lastUpdateVersionNumber>
>                                 <tt:troubleTicketKey>
>                                     <co:applicationContext>
> 
> <co:factoryClass>com.sun.jndi.cosnaming.CNCtxFactory</co:factoryClass>
> <co:url>"iiop://127.0.0.1:3700"</co:url>
>                                     <co:systemProperties/>
>                                     </co:applicationContext>
> 
> 
<co:applicationDN>System/RI/ApplicationType/TroubleTicket/Application/1-0;
> 1-0-2;OSSJTTRI</co:applicationDN>
> <co:type>tt:TroubleTicketValue</co:type>
> 
> <tt:primaryKey>1149524206107</tt:primaryKey>
>                                 </tt:troubleTicketKey>
>                             </tt:troubleTicketValue>
>                         </tt:event>
>                     </tt:troubleTicketCreateEvent>
>                 </wsnt:Message>
>             </wsnt:NotificationMessage>
>         </wsnt:Notify>
>     </soap:Body>
> </soap:Envelope>
> 
> Is there a reason why the message is not handed over to the accept() and 

> process() methods in the wsn-consumer? Is the contents of the last 
> message wsnt:Message element violating some rules?
> 
> Thanks,
> Gero
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to