Okay -- the reason why it's added locally is that openWave.createWavelet(..)
adds the wavelet data immediately, rather than waiting for it to come from
the server.  This is fine, if perhaps a bit misleading.
If the server is receiving and processing the delta correctly (which,
according to the output you've posted, it is) then either the client is
not receiving the update, or it's not processing the update.  The former
could occur if you didn't add yourself correctly to the wavelet (but it
looks like you have), or if the wave hasn't been subscribed to properly
(i.e. with openWave(..)), or if there is a bug in the server causing it to
not be pushed (and I will investigate this as a last resort), or...
something else.  The latter could occur for any reason -- the client makes a
number of assumptions that a conversation root is present -- which is why I
asked what evidence you have that the wavelet update hasn't been received --
but just printing out wavelet names in that way should work.

In any case, I've pushed some changes that add logging to the client (and a
couple of other small things), this will hopefully help you investigate.
 Have for the "Opening wave" and "Received update" logs, both in the same
session that the wavelet was added, and in a different session (i.e.
restarting the client).

-- Ben


On Tue, Aug 25, 2009 at 11:28 PM, tobber harley <[email protected]>wrote:

>
> Hey Ben,
>
> ok I test a really simple scenario, I only want to add a new wavelet
> to my current wave.
> I don“t want to add or render any content of the wavelet.
>
> The code for creating the wavelet:
>
> // create a unique id for the wavelet.
> WaveletId waveletId = clientBackend.getIdGenerator
> ().newConversationWaveletId();
> // create the new wavelet.
> WaveletData newWavelet = openWave.createWavelet( waveletId );
> // adding me as participant.
> clientBackend.sendWaveletOperation( newWavelet,
>        new AddParticipant( clientBackend.getUserId() ) );
>
> then I iterate through all wavelets (of my current wave) and print the
> wavelet names.
>
> for( WaveletData data : fCurrentWave.getWavelets() ) {
>        System.out.println( data.getWaveletName() );
> }
>
> I can now see, that a new wavelet was (locally?) added, the java
> console shows something like this:
>
> (0) [WaveId:wave1.esentri.com!w+5ArWViMYDWvL]/
> [WaveletId:wave1.esentri.com!conv+D3q-Bh6I]    // <== my new wavelet
> (1) [WaveId:wave1.esentri.com!w+5ArWViMYDWvL]/
> [WaveletId:wave1.esentri.com!conv+root]
>
> But after restarting my client and iterating through the wavelets,
> only the root wavelet appears.
>
> I also checked the server logs and it seems to work, I get something
> like this:
>
> ---------------------------------------------------
> ........
>
> Aug 25, 2009 8:56:39 AM
> org.waveprotocol.wave.examples.fedone.waveserver.WaveServerImpl
> isLocalWavelet
> INFO: ### WS is local? [WaveId:wave1.esentri.com!w+5ArWViMYDWvL]/
> [WaveletId:wave1.esentri.com!conv+D3q-Bh6I] = true
> Aug 25, 2009 8:56:39 AM
> org.waveprotocol.wave.examples.fedone.waveserver.WaveServerImpl
> submitDelta
> INFO: ## WS: Got submit: [WaveId:wave1.esentri.com!w+5ArWViMYDWvL]/
> [WaveletId:wave1.esentri.com!conv+D3q-Bh6I] delta: delta {
>  hashed_version {
>    version: 0
>    history_hash: "wave://wave1.esentri.com/w+5ArWViMYDWvL/conv+D3q-
> Bh6I"
>  }
>  author: "[email protected]"
>  operation {
>    add_participant: "[email protected]"
>  }
> }
>
> ........
>
> Aug 25, 2009 8:56:39 AM
> org.waveprotocol.wave.examples.fedone.waveserver.WaveServerImpl
> isLocalWavelet
> INFO: ### WS is local? [WaveId:wave1.esentri.com!w+5ArWViMYDWvL]/
> [WaveletId:wave1.esentri.com!conv+D3q-Bh6I] = true
> Aug 25, 2009 8:56:39 AM
> org.waveprotocol.wave.examples.fedone.waveserver.WaveServerImpl
> submitDelta
> INFO: ## WS: Submit result: [WaveId:wave1.esentri.com!w+5ArWViMYDWvL]/
> [WaveletId:wave1.esentri.com!conv+D3q-Bh6I] appliedDelta:
> signed_original_delta {
>  delta {
>    hashed_version {
>      version: 0
>      history_hash: "wave://wave1.esentri.com/w+5ArWViMYDWvL/conv+D3q-
> Bh6I"
>    }
>    author: "[email protected]"
>    operation {
>      add_participant: "[email protected]"
>    }
>  }
>
> ........
> --------------------------------------------------
>
> Maybe I forgot something when creating the wavelet ??
>
> ---> Thank you for your great support!!!!!! <---
>
> Tobber
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Wave 
Protocol" 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/wave-protocol?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to