Hi,
I can confirm that the output of:
bundle.getWavelet().appendBlip().getDocument().append("A simple
test");
is: A simple testA simple test
while the output of:
bundle.getWavelet().getRootBlip().createChild().getDocument
().append("A simple test");
is: A simple test
-Peter
On Oct 31, 6:53 pm, Karan Bhatnagar <[email protected]> wrote:
> FYI, about one week back it was working fine. The message was being
> displayed in the new blip just once as intended.
> Do I have to make some changes in the way I am appending the text
> bundle.getWavelet().appendBlip().getDocument().append(SOME_STRING),
> do compensate of any API changes?
>
> On Sat, Oct 31, 2009 at 11:17 PM, Karan Bhatnagar <[email protected]
>
> > wrote:
> > If this is because the logs show it both in *content *as well as *property
> > *field?
>
> > On Sat, Oct 31, 2009 at 11:13 PM, Karan Bhatnagar <
> > [email protected]> wrote:
>
> >> Hi,
> >> I am facing a strange problem. My robot is trying to add a blip to the
> >> wave using:
>
> >> �...@override
> >> public void processEvents(RobotMessageBundle bundle) {
> >> .....
> >> bundle.getWavelet().appendBlip().getDocument().append(SOME_STRING);
> >> // where bundle is the object of RobotMessageBundle class
> >> .....
> >> }
>
> >> in AppEngine logs, I can see:
>
> >> com.google.wave.api.AbstractRobotServlet serializeOperations: Outgoing
> >> operations:
> >> {"javaClass":"com.google.wave.api.impl.OperationMessageBundle","operations":{"javaClass":"java.util.ArrayList","list":[{"index":-1,"waveletId":"googlewave.com!conv+root","blipId":null,"javaClass":"com.google.wave.api.impl.OperationImpl","property":{"lastModifiedTime":-1,"contributors":{"javaClass":"java.util.ArrayList","list":[]},"waveletId":"googlewave.com!conv+root","waveId":"googlewave.com!w+Gss2nWBGN","parentBlipId":null,"version":-1,"creator":null,"content":"\nThis
> >> is the content of SOME_STRING
> >> ","blipId":"TBD0.9461425416166795","javaClass":"com.google.wave.api.impl.BlipData","annotations":{"javaClass":"java.util.ArrayList","list":[]},"elements":{"map":{},"javaClass":"java.util.HashMap"},"childBlipIds":{"javaClass":"java.util.ArrayList","list":[]}},"waveId":"googlewave.com!w+Gss2nWBGN","type":"WAVELET_APPEND_BLIP"},{"index":0,"waveletId":"googlewave.com!conv+root","blipId":"TBD0.9461425416166795","javaClass":"com.google.wave.api.impl.OperationImpl","property":"This
> >> is the content of
> >> SOME_STRING","waveId":"googlewave.com!w+Gss2nWBGN","type":"DOCUMENT_APPEND"}]},"version":"4"}
>
> >> but the message 'This is the content of SOME_STRING' appears twice in the
> >> new blip as if it was appended twice.
>
> >> Any clue what is going on behind the scenes?
>
> >> Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Wave API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-wave-api?hl=en
-~----------~----~----~----~------~----~------~--~---