In message < >,
Linus wrote on 25 Feb 2005 02:49:35 -0800:
> Someone can tell me why running the code it returns the error:
> Unhandled exception type UnknownHostException
But that is not the real error you get. The real error message
actually tells you how to fix it. Either catch UnknownHostException in
your pacchetto class, or declare that you throw it. The compiler is even
so nice as to tell you the exact line number where you call
InetAddress.getByName() and prints that line out for you.
As an aside, and referring to
http://www.physci.org/codes/sscce.jsp ,
your example is neither short, nor self-contained, nor correct. Your
code does not compile as posted (apart from that particular error).
There is no SerializedObject type anywhere. Your code is also not
minimal, since all the stuff you're doing with those is not necessary to
reproduce the problem in the first place.
--
Cheers, Tilman
`Boy, life takes a long time to live...' -- Steven Wright