I made this fix, but now I'm getting a java exception when i try to
run the command
private void newWave() {
            if (isConnected()) {
              BlockingSuccessFailCallback<ProtocolSubmitResponse, String>
callback =
                  BlockingSuccessFailCallback.create();
              backend.createConversationWave(); ///
<========================= this line errors

              callback.await(1, TimeUnit.MINUTES);
            } else {
              errorNotConnected();
            }
          }

Exception in thread "main" java.lang.IllegalStateException:
java.io.IOException: An established connection was aborted by the
software in your host machine
        at
org.waveprotocol.wave.examples.fedone.rpc.SequencedProtoChannel.sendMessage(SequencedProtoChannel.java:
222)
        at
org.waveprotocol.wave.examples.fedone.rpc.SequencedProtoChannel.sendMessage(SequencedProtoChannel.java:
238)
        at
org.waveprotocol.wave.examples.fedone.rpc.ClientRpcChannel.callMethod(ClientRpcChannel.java:
145)
        at org.waveprotocol.wave.examples.fedone.waveserver.WaveClientRpc
$ProtocolWaveClientRpc$Stub.submit(WaveClientRpc.java:1807)
        at
org.waveprotocol.wave.examples.fedone.waveclient.common.ClientBackend.sendWaveletDelta(ClientBackend.java:
271)
        at
org.waveprotocol.wave.examples.fedone.waveclient.common.ClientBackend.sendWaveletOperation(ClientBackend.java:
246)
        at
org.waveprotocol.wave.examples.fedone.waveclient.common.ClientBackend.createConversationWave(ClientBackend.java:
220)
        at
org.waveprotocol.wave.examples.fedone.waveclient.common.ClientBackend.createConversationWave(ClientBackend.java:
207)
        at WaveComm.newWave(WaveComm.java:211)
        at WaveComm.<init>(WaveComm.java:99)
        at WaveComm.main(WaveComm.java:114)
Caused by: java.io.IOException: An established connection was aborted
by the software in your host machine
        at sun.nio.ch.SocketDispatcher.write0(Native Method)
        at sun.nio.ch.SocketDispatcher.write(Unknown Source)
        at sun.nio.ch.IOUtil.writeFromNativeBuffer(Unknown Source)
        at sun.nio.ch.IOUtil.write(Unknown Source)
        at sun.nio.ch.SocketChannelImpl.write(Unknown Source)
        at org.waveprotocol.wave.examples.fedone.rpc.SequencedProtoChannel
$2.write(SequencedProtoChannel.java:164)
        at java.io.OutputStream.write(Unknown Source)
        at
com.google.protobuf.CodedOutputStream.refreshBuffer(CodedOutputStream.java:
861)
        at com.google.protobuf.CodedOutputStream.flush(CodedOutputStream.java:
871)
        at
org.waveprotocol.wave.examples.fedone.rpc.SequencedProtoChannel.sendMessage(SequencedProtoChannel.java:
220)
        ... 10 more


On Mar 29, 5:01 pm, Tad Glines <[email protected]> wrote:
> In run-config.sh make sure that "WAVE_SERVER_HOSTNAME" is set to the
> wave server's IP address or hostname, and not "localhost". On linux
> you can run "netstat -l -n | grep 9876" if you see something like
> "127.0.0.1:9876" then the wave server will not accept connections from
> remote hosts. If instead it shows "<your wave server's IP
> address>:9876", then the wave server should accept connections from
> your remote machine.
>
> -Tad
>
> On Mon, Mar 29, 2010 at 11:51 AM, Devon <[email protected]> wrote:
> > Hello,
>
> > I'm trying to create a Java program that can act like the console
> > client to access my wave server from a remote computer.  My current
> > code, mostly taken from the ConsoleClient.java source, doesn't seem to
> > be connecting, and I'm not sure why.
>
> > Is it possible to use this same code to connect to a remove server, or
> > is there any way to do it at all?
>
> > It currently gets hung up when creating a new wave, it times out.
> > connect() doesn't throw any exceptions, but I can't tell if it's
> > actually connected or not.
>
> > Any help would be greatly appreciated.
>
> > --
> > 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 
> > athttp://groups.google.com/group/wave-protocol?hl=en.

-- 
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