|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Problem Generating Management Events from DOM Elements.Hi All,
I'm having some trouble with converting WEF ManagementEvents to strings and back and I wonder if anybody can point out where I'm going wrong. Here's a section of a string representation of an event (created with event.toString() ) <muws1:SourceComponent> <muws1:ComponentAddress> <wsa:EndpointReference xmlns:wsa="http://www.w3.org/2005/08/addressing"> <wsa:Address>http://localhost/my-resources/services/event-publisher</wsa:Address> </wsa:EndpointReference> </muws1:ComponentAddress> <muws1:ResourceId>MyresourceID</muws1:ResourceId> </muws1:SourceComponent> If i then create a DOM element from this string and use ManagementEvent event = new SimpleWefFactory().createEvent(domElement); and print out that ManagementEvent I see: <muws1:SourceComponent> <muws1:ComponentAddress> <muws1:ComponentAddress> <wsa:EndpointReference xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wsa="http://www.w3.org/2005/08/addressing"> <wsa:Address>http://localhost/my-resources/services/event-publisher</wsa:Address> </wsa:EndpointReference> </muws1:ComponentAddress> </muws1:ComponentAddress> </muws1:SourceComponent> It has duplicated and nested the ComponentAddress (along with duplicate namespace) and removed the ResourceID. This is causing problems further down the line with multiple namespace declarations etc. When i display the domElement everything looks fine too so I'm wondering if there's something wrong with the SimpleWefFactory? I must be doing something wrong? Is there a recommended way to serialize and de-serialize ManagementEvents to strings? Thanks very much! Keith --------------------------------------------------------------------- To unsubscribe, e-mail: muse-user-unsubscribe@... For additional commands, e-mail: muse-user-help@... |
|
|
Re: Problem Generating Management Events from DOM Elements.Hi,
I do notice this problem and posted it on http://www.nabble.com/Printing-WEF-events-at-consumer-gives-Improper-SourceComponent-to11807924.html#a11807924 We need to investigate this issue further. With best regards, Saurabh Dravid, Staff Software Engineer - Autonomic Computing, India Software Lab, IBM Software Group 4205 S MIAMI BLVD, DURHAM NC 27703-9141 D148/B500 Phone: +919-254-8783, e-mail: sadravid@... About India Software Lab rochfokj@... 01/28/2008 11:58 AM Please respond to muse-user@... To muse-user@... cc Subject Problem Generating Management Events from DOM Elements. Hi All, I'm having some trouble with converting WEF ManagementEvents to strings and back and I wonder if anybody can point out where I'm going wrong. Here's a section of a string representation of an event (created with event.toString() ) <muws1:SourceComponent> <muws1:ComponentAddress> <wsa:EndpointReference xmlns:wsa="http://www.w3.org/2005/08/addressing"> <wsa:Address>http://localhost/my-resources/services/event-publisher</wsa:Address> </wsa:EndpointReference> </muws1:ComponentAddress> <muws1:ResourceId>MyresourceID</muws1:ResourceId> </muws1:SourceComponent> If i then create a DOM element from this string and use ManagementEvent event = new SimpleWefFactory().createEvent(domElement); and print out that ManagementEvent I see: <muws1:SourceComponent> <muws1:ComponentAddress> <muws1:ComponentAddress> <wsa:EndpointReference xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wsa="http://www.w3.org/2005/08/addressing"> <wsa:Address>http://localhost/my-resources/services/event-publisher</wsa:Address> </wsa:EndpointReference> </muws1:ComponentAddress> </muws1:ComponentAddress> </muws1:SourceComponent> It has duplicated and nested the ComponentAddress (along with duplicate namespace) and removed the ResourceID. This is causing problems further down the line with multiple namespace declarations etc. When i display the domElement everything looks fine too so I'm wondering if there's something wrong with the SimpleWefFactory? I must be doing something wrong? Is there a recommended way to serialize and de-serialize ManagementEvents to strings? Thanks very much! Keith --------------------------------------------------------------------- To unsubscribe, e-mail: muse-user-unsubscribe@... For additional commands, e-mail: muse-user-help@... |
|
|
Re: Problem Generating Management Events from DOM Elements.Hi,
I had the same issue. It is preventing us from adopting the muse project. Can this be fixed quickly? -thanks |
|
|
Re: Problem Generating Management Events from DOM Elements.regarding this and the other issue, I am trying to make a 2.2.1
release, probably within a month. This issue too will require an issue in Jira. 2.2.1 is aimed as a bug fix release only and should maintain backwards compatibility, if the fix for this breaks backwards compatibility it may have to be pushed till 2.3.0 cheers, Chris On Mon, Jan 26, 2009 at 10:21 PM, sunh11373 <sunh11373@...> wrote: > > Hi, > > I had the same issue. It is preventing us from adopting the muse project. > Can this be fixed quickly? > > -thanks > > -- > View this message in context: http://www.nabble.com/Problem-Generating-Management-Events-from-DOM-Elements.-tp15139782p21673973.html > Sent from the Muse User mailing list archive at Nabble.com. > > |
| Free embeddable forum powered by Nabble | Forum Help |