yikuang / wave-protocol

Automatically exported from code.google.com/p/wave-protocol
0 stars 0 forks source link

Cannot Create New Waves on Fedora 10 #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install the Wave Server and OpenFire
2. Create some seemingly necessary symbolic links, and file moves
3. Run ./run-client.sh, connect to a Wave Server, and observe that the
Client bails out when trying to create a new Wave

What is the expected output? What do you see instead?
When creating the new Wave, the following output is produced:
> /new                                                                    

22-Jul-2009 12:11:00
org.waveprotocol.wave.examples.fedone.rpc.ClientRpcChannel callMethod     

INFO: Calling a new RPC (seq 2), method
waveserver.ProtocolWaveClientRpc.Submit for
java.nio.channels.SocketChannel[connected local=/94.196.35.204:36320
remote=open.house404.co.uk/94.196.35.204:5222]                            

22-Jul-2009 12:11:00
org.waveprotocol.wave.examples.fedone.rpc.SequencedProtoChannel sendMessage

INFO: Sending message (waveserver.ProtocolSubmitRequest, seq 2) to:
java.nio.channels.SocketChannel[connected local=/94.196.35.204:36320
remote=open.house404.co.uk/94.196.35.204:5222]                            

Exception in thread "main" java.lang.IllegalStateException:
java.io.IOException: Broken pipe                                          

        at
org.waveprotocol.wave.examples.fedone.rpc.SequencedProtoChannel.sendMessage(Sequ
encedProtoChannel.java:222)

        at
org.waveprotocol.wave.examples.fedone.rpc.SequencedProtoChannel.sendMessage(Sequ
encedProtoChannel.java:238)

        at
org.waveprotocol.wave.examples.fedone.rpc.ClientRpcChannel.callMethod(ClientRpcC
hannel.java:145)

        at
org.waveprotocol.wave.examples.fedone.waveserver.WaveClientRpc$ProtocolWaveClien
tRpc$Stub.submit(WaveClientRpc.java:1807)

        at
org.waveprotocol.wave.examples.fedone.waveclient.common.ClientBackend.sendWavele
tDelta(ClientBackend.java:305)

        at
org.waveprotocol.wave.examples.fedone.waveclient.common.ClientBackend.sendWavele
tOperation(ClientBackend.java:281)

        at
org.waveprotocol.wave.examples.fedone.waveclient.common.ClientBackend.createNewW
ave(ClientBackend.java:249)

        at
org.waveprotocol.wave.examples.fedone.waveclient.common.ClientBackend.createNewW
ave(ClientBackend.java:234)

        at
org.waveprotocol.wave.examples.fedone.waveclient.console.ConsoleClient.newWave(C
onsoleClient.java:353)

        at
org.waveprotocol.wave.examples.fedone.waveclient.console.ConsoleClient.doCommand
(ConsoleClient.java:205)

        at
org.waveprotocol.wave.examples.fedone.waveclient.console.ConsoleClient.run(Conso
leClient.java:128)

        at
org.waveprotocol.wave.examples.fedone.waveclient.console.ConsoleClient.main(Cons
oleClient.java:488)

Caused by: java.io.IOException: Broken pipe                               

        at sun.nio.ch.FileDispatcher.write0(Native Method)                

        at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)    

        at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:122)       

        at sun.nio.ch.IOUtil.write(IOUtil.java:93)                        

        at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:352) 

        at
org.waveprotocol.wave.examples.fedone.rpc.SequencedProtoChannel$2.write(Sequence
dProtoChannel.java:164)

        at java.io.OutputStream.write(OutputStream.java:116)              

        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(Sequ
encedProtoChannel.java:220)

        ... 11 more                                                     

As I have never successfully created a new Wave, I am unsure as to what I
should expect, although I believe that the above output should never be
produced under normal circumstances. 

What version of the product are you using? On what operating system?
Top of tree, Fedora 10.

Please provide any additional information below.

Output of java -version:
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.5) (fedora-18.b16.fc10-i386)
OpenJDK Client VM (build 14.0-b15, mixed mode)

Using OpenFire version 3.6.4.

Original issue reported on code.google.com by tyson....@gmail.com on 22 Jul 2009 at 1:24

GoogleCodeExporter commented 9 years ago
It appears that although a connection attempt is made, XML content is not being
transmitted by the client in a contiguous manner. Instead, individual 
characters of
the stream are transmitted in multiple packets, only to be interrupted by some
malformed fragments of "complete" XML streams. 

Attached is a packet trace in libpcap format of the traffic produced by the 
client,
exhibiting this presumably incorrect behaviour. 

Original comment by tyson....@gmail.com on 24 Jul 2009 at 3:56

Attachments:

GoogleCodeExporter commented 9 years ago
I had the same problem on Ubuntu and it turned out I was trying to connect to 
the
wrong port. Basically I was trying to connect to the XMMP server directly:

this is my configuration:

java -jar dist/fedone-0.2.jar \
  --client_frontend_hostname=127.0.0.1 \
  --client_frontend_port=9876 \
  --xmpp_component_name=wave \
  --xmpp_server_hostname=$XMPP_SERVER_HOSTNAME \
  --xmpp_server_ip=$XMPP_SERVER_IP \
  --xmpp_server_port=5275 \
  --xmpp_server_secret $XMPP_SERVER_SECRET \
  --xmpp_server_ping="" \
  --certificate_private_key=$PRIVATE_KEY_FILENAME \
  --certificate_files=$CERTIFICATE_FILENAME_LIST \
  --certificate_domain=$CERTIFICATE_DOMAIN_NAME \
  --waveserver_disable_verification=true

and I have to connect to 9876

Original comment by sorin7...@gmail.com on 9 Aug 2009 at 12:14

GoogleCodeExporter commented 9 years ago
I will close this soon, any thoughts?

Original comment by btkalman@gmail.com on 27 Aug 2009 at 8:26

GoogleCodeExporter commented 9 years ago
Closing.  File another bug if this occurs again.

Original comment by btkalman@gmail.com on 29 Aug 2009 at 2:08