[Google Wave APIs] Re: Text appended twice in blip
Thank you Austin. The workaround works for us as intended. On Sun, Nov 1, 2009 at 4:16 AM, Austin Chau (Google employee) < api.aus...@google.com> 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 < > karan.bhatna...@gmail.com> 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 < >> karan.bhatna...@gmail.com> 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 < >>> karan.bhatna...@gmail.com> 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 google-wave-api@googlegroups.com To unsubscribe from this group, send email to google-wave-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en -~--~~~~--~~--~--~---
[Google Wave APIs] Re: Text appended twice in blip
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 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 < > karan.bhatna...@gmail.com> 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 google-wave-api@googlegroups.com To unsubscribe from this group, send email to google-wave-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en -~--~~~~--~~--~--~---
[Google Wave APIs] Re: Text appended twice in blip
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 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 google-wave-api@googlegroups.com To unsubscribe from this group, send email to google-wave-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en -~--~~~~--~~--~--~---
[Google Wave APIs] Text appended twice in blip
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 google-wave-api@googlegroups.com To unsubscribe from this group, send email to google-wave-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en -~--~~~~--~~--~--~---
[Google Wave APIs] Re: Robot notified when it is added as participant?
Sorry for spamming, Just FYI...Event.getAddedParticipants() helped in deciding it. On Fri, Oct 23, 2009 at 5:14 PM, Karan Bhatnagar wrote: > RobotMessageBundle.wasSelfAdded() is returning true each time. > > > On Fri, Oct 23, 2009 at 4:53 PM, Karan Bhatnagar < > karan.bhatna...@gmail.com> wrote: > >> EventType.WAVELET_SELF_ADDED is being triggered if I add >> robotn...@appspot.com. It is again triggered if I add >> robotname+...@appspot.com . Any hint how to >> handle the situation that I should call my handler only the first time? >> I think if I can determine if my robot is already a participant then the >> handler should not be invoked. Is there a way to determine if a robot is >> already a participant of wave? >> >> On Fri, Oct 23, 2009 at 9:16 AM, Austin Chau (Google employee) < >> api.aus...@google.com> wrote: >> >>> The event you want to catch is EventType.WAVELET_SELF_ADDED >>> This event type does not need to be explicitly registered for, it is >>> added by default to all robot. >>> >>> Austin >>> >>> >>> On Thu, Oct 22, 2009 at 8:57 AM, Karan wrote: >>> >>>> >>>> Hi, >>>> Out of the seven actions events listed at >>>> http://code.google.com/apis/wave/extensions/robots >>>> , which one can be used if a robot wants to perform some action when >>>> the robot itself is added to a wave for the first time? >>>> >>>> I want to avoid pinging the robot after adding it. >>>> >>>> >>>> >>> >>> >>> >>> >> > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Wave API" group. To post to this group, send email to google-wave-api@googlegroups.com To unsubscribe from this group, send email to google-wave-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en -~--~~~~--~~--~--~---
[Google Wave APIs] Re: Robot notified when it is added as participant?
EventType.WAVELET_SELF_ADDED is being triggered if I add robotn...@appspot.com. It is again triggered if I add robotname+...@appspot.com . Any hint how to handle the situation that I should call my handler only the first time? I think if I can determine if my robot is already a participant then the handler should not be invoked. Is there a way to determine if a robot is already a participant of wave? On Fri, Oct 23, 2009 at 9:16 AM, Austin Chau (Google employee) < api.aus...@google.com> wrote: > The event you want to catch is EventType.WAVELET_SELF_ADDED > This event type does not need to be explicitly registered for, it is added > by default to all robot. > > Austin > > > On Thu, Oct 22, 2009 at 8:57 AM, Karan wrote: > >> >> Hi, >> Out of the seven actions events listed at >> http://code.google.com/apis/wave/extensions/robots >> , which one can be used if a robot wants to perform some action when >> the robot itself is added to a wave for the first time? >> >> I want to avoid pinging the robot after adding it. >> >> >> > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Wave API" group. To post to this group, send email to google-wave-api@googlegroups.com To unsubscribe from this group, send email to google-wave-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en -~--~~~~--~~--~--~---
[Google Wave APIs] Re: Robot notified when it is added as participant?
RobotMessageBundle.wasSelfAdded() is returning true each time. On Fri, Oct 23, 2009 at 4:53 PM, Karan Bhatnagar wrote: > EventType.WAVELET_SELF_ADDED is being triggered if I add > robotn...@appspot.com. It is again triggered if I add > robotname+...@appspot.com . Any hint how to > handle the situation that I should call my handler only the first time? > I think if I can determine if my robot is already a participant then the > handler should not be invoked. Is there a way to determine if a robot is > already a participant of wave? > > On Fri, Oct 23, 2009 at 9:16 AM, Austin Chau (Google employee) < > api.aus...@google.com> wrote: > >> The event you want to catch is EventType.WAVELET_SELF_ADDED >> This event type does not need to be explicitly registered for, it is added >> by default to all robot. >> >> Austin >> >> >> On Thu, Oct 22, 2009 at 8:57 AM, Karan wrote: >> >>> >>> Hi, >>> Out of the seven actions events listed at >>> http://code.google.com/apis/wave/extensions/robots >>> , which one can be used if a robot wants to perform some action when >>> the robot itself is added to a wave for the first time? >>> >>> I want to avoid pinging the robot after adding it. >>> >>> >>> >> >> >> >> > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Wave API" group. To post to this group, send email to google-wave-api@googlegroups.com To unsubscribe from this group, send email to google-wave-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en -~--~~~~--~~--~--~---