Multiplayer online game

Hi Im tryng to create a multiplayer online game. I have a good understanding of java nio sockets but my flash xml sockets do not receive messages. My java server on the other hand accepts mesages from flash. Im using the simple .onData() method of XML sockets.

Does anyone know what may be the reason for that?

thanks