Are you using Azureus?
The Java process javaw.exe is connecting to the internet using an email port (POP3 port 110), this is a port that is monitored by avast's email scanner and it is expecting traffic that is using the email protocol and this would appear not to be so the traffic isn't properly identified and this is likely to cause a delay and the server timeout messages is displayed.
Whilst the process that launched javaw.exe has to be identified (and possibly your firewall logs might help), the only cases of a timeout associated with javaw.exe that I have seen in the forums they have also had Azureus installed.
You can extend the timeout delay in your email program (which is?) and avast, but I'm not sure that will help if the protocol is unrecognized, it may simply delay the display of the message?
As Tech said ensure that you update Sun's Java, what version are you using?