Thank you Austin.
The workaround works for us as intended.

On Sun, Nov 1, 2009 at 4:16 AM, Austin Chau (Google employee) <
[email protected]> wrote:

> Hi Karan,
>
> Sorry that this bug hit you as well, we have already filed a request for
> it.  You can track it with this bug report -
>
>
> http://code.google.com/p/google-wave-resources/issues/detail?id=354&sort=-id&colspec=Stars%20ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary%20Internal
>
> We know exactly what is causing this and when fix is pushed to production
> we will let you guys know.
>
> In the mean while the workaround to not have doubling of the text you can
> do this -
>
> Blip newBlip = wavelet.appendBlip();
> newBlip.getDocument().delete();
> newBlip.getDocument().append("hello");
>
> This should only print the text once.
>
> Austin
>
> On Sat, Oct 31, 2009 at 10:53 AM, 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to